Prolog
Prolog A logic programming language, widely used in artificial intelligence. The basic element of Prolog programs is the structure, which expresses a simple relationship among individuals (constants or variables). Examples of structures are: sister(mary, jane). ancestor(adam, X). Words that start with a lower-case letter are constants and words that start with a capital letter are variables, so mary, jane, and adam are constants and X is a variable. Prolog programs consist of clauses, where each is either a simple assertion or an implication. The former consists of a single structure, while the latter takes the form: “A if B1 and B2 and … and Bn”, where the conclusion A and the conditions Bn are all structures. An example of an implication is grandfather(X, Y) :- father(X, Z), parent(Z, Y). which means “X is a grandfather of Y if X is the father of Z and Z is a parent of Y”.
A Prolog program is invoked by presenting a query in the form of a conjunction of structures, as infriend(fred, X), father(john, X). Execution of the program then determines (if possible) a set of values for the variables in the query such that the truth of the query then follows from the assertions and implications in the program. The above example tries to find all the sons of john that are friends of fred.
Prolog was used as the basis of the Japanese fifth generation project.
A Prolog program is invoked by presenting a query in the form of a conjunction of structures, as infriend(fred, X), father(john, X). Execution of the program then determines (if possible) a set of values for the variables in the query such that the truth of the query then follows from the assertions and implications in the program. The above example tries to find all the sons of john that are friends of fred.
Prolog was used as the basis of the Japanese fifth generation project.
PROLOG
PROLOG (or Prolog) (ˈprəʊlɒg) Computing programming in logic (a programming language)
More From encyclopedia.com
George Boole , Boole, George
Boole, George
(b. Lioncoln, England, 1815; d. Cork, Ireland, 1864)
mathematics.
George Boole was the son of John Boole, a cobbler whose… Garrett Birkhoff , Birkhoff was the son of mathematician George David Birkhoff and Margaret Grafius Birkhoff. George Birkhoff, the father, was the first American mathem… Diophantus Of Alexandria , Diophantus of Alexandria
Diophantus of Alexandria
(fl. ad. 250)
mathematics.
We know virtually nothing about the life of Diophantus. The dating of hi… Domain , Domain
The domain of a relation is the set that contains all the first elements, x, from the ordered pairs (x,y) that make up the relation. In mathem… Lysithea , Lysithea (Jupiter X) One of the lesser satellites of Jupiter, with a diameter of 24km. Intervening Variable , intervening variable A variable, used in the process of explaining an observed relationship between an independent and dependent variable(s), such th…
About this article
Prolog
All Sources -
You Might Also Like
NEARBY TERMS
Prolog