Prolog programming language - artificial intelligence, Computer Engineering

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

 

Posted Date: 10/2/2012 7:08:48 AM | Location : United States







Related Discussions:- Prolog programming language - artificial intelligence, Assignment Help, Ask Question on Prolog programming language - artificial intelligence, Get Answer, Expert's Help, Prolog programming language - artificial intelligence Discussions

Write discussion on Prolog programming language - artificial intelligence
Your posts are moderated
Related Questions
Creation Deductive Inferences : Here we have shown how knowledge can be represented in first-order logic or how rule-based expert systems expressed in logic can be constructed

Explain the use of structures with pointers C permits a pointer to a structure variable. In fact a pointer to a structure is same to a pointer to any other variable. The pointe

Q. What is a good resolution? In fact it relies on your hardware. Hence it's the maximum your hardware can allow you.  But one odd-looking resolution that has become popular is

Problem 1 (a) List and describe the characteristics of mainframes, minicomputers and microcomputers. (b) Briefly describe what is meant by electronic commerce and what b

How would you kill a process? The "kill" command takes the PID as one argument; this signifies which process to terminate. The PID of a process can be got using "ps" command

When Workday opened in 2005, the company had no idea it would be regarded as the most successful IPO of 2012. The introduction of cloud computing into the HR and financial systems

an asyncronous sequential circuit is described by the the exitatio function and the output function y=x1x2''+(x1=x2'')y output function z=y a)draw the logic diagram of the circuit.

Q. How do the registers help in instruction execution? We will discuss this in following steps: Step 1: First step of instruction execution is to fetch instruction which

How to create user interfaces for lists? The R/3 system automatically, obtains a graphical user interface (GUI) for your lists that offers the basic functions for list process

Explain the working of Static RAM - Computer Memory? SRAM devices tender extremely fast access times (approximately four times faster than DRAM) but are much more expensive to