Prolog programming language - artificial intelligence, Computer Engineering

Assignment Help:

Prolog Programming Language - Artificial intelligence:

Most of the programming languages are procedural: the programmer specifies exactly the correct instructions (algorithms) required to get an agent to function correctly. It wonders for many people that there is another way to write programs. Program is declarative programming when the user declares what the output to a function should look like given some information regarding the input. The agent then searches for an answer which fits the declaration, and returns any it finds.

As an instance, suppose a parent asking their child to run to the shop and buy some groceries. To do this in a declarative fashion,in simple manner, the parent needs to write shopping list. The parents have "programmed" their child to perform their work in the knowledge that the child has underlying search routines which will enable her orhim to get to the shop, find and buy the groceries, and later come home. To instruct their child in a procedural fashion, they would need to tell the child to go out of the front door, turn right, walk down the street, stop after 60 steps, and so on.

We see that declarative programming languages may have some advantages over procedural ones. Actually, it is often said that a Java program written to do the same as a Prolog program typically takes about 10 times the number of lines of code. Many Artificial Intelligence researchers try out an idea in Prolog before implementing it more completely in other languages; because Prolog may be used to perform searches in simple way (see later).

A well-known declarative language which is used many times by Artificial Intelligence researchers is Prolog, which is centred on first-order logic. For any specific declarative programming language, the 2 most important aspects are: how information is denoted, and the underlying search routines upon which the language is based. Robert Kowalski put this in the most succinct way:

Algorithm = Control +Logic

 


Related Discussions:- Prolog programming language - artificial intelligence

Non repudiation, What is non-repudiation? how can it be achieved in designi...

What is non-repudiation? how can it be achieved in designing e-cash based system?

Name some popular internet browsers, Name some Popular Internet Browsers ...

Name some Popular Internet Browsers There are many internet browers are available on internet. Some Popular Internet Browsers are: Internet Explorer, Netscape Navigato

How swapping increase overheads of the operating systems, Does swapping inc...

Does swapping increase the Operating Systems' overheads? Justify your answer. A process can be swapped out temporarily of memory to a backing store and after that brought back

Explain about the term business-to-customer, Explain about the term busines...

Explain about the term business-to-customer. B2C (business-to-customer): "Electronic commerce" is usually understood mostly as selling goods or services to people ("last

Define interrupts, Interrupts are signals which cause the CPU to suspend th...

Interrupts are signals which cause the CPU to suspend the currently executing program and transfer to a special program known as an interrupt handler. Interrupt handler determines

Explain process control block, Explain Process Control Block Process Co...

Explain Process Control Block Process Control Block (PCB): Information related with every process is stored in Process control Block. a) Process state b) Program counter c

Explain overlay structured program, Explain overlay structured program ? ...

Explain overlay structured program ? A program having overlays is termed as overlay structured program, here an overlay is a part of program that has similar load origin as som

Write shorts notes on remote procedure call, Write shorts notes on Remote P...

Write shorts notes on Remote Procedure Call (RPC) The facility whihc was created to help the programmers write client server software is termed as Remote Procedure Call. Within

What is dvd and dvd-rom, DVD is a new technology very same to compact discs...

DVD is a new technology very same to compact discs. A DVD looks just like an ordinary compact disc, though a DVD can hold up to 25 times as much as a CD!! That's 18 gigabytes!! Thi

Recent parallel programming models, A model for parallel programming is an ...

A model for parallel programming is an abstraction and is machine architecture independent. A model can be executed on several hardware and memory architectures. There are various

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd