Professional Documents
Culture Documents
Amal Fahad
What is prolog?
Prolog is a logic programming language. It has important role in artificial intelligence.
Prolog is intended primarily as a declarative programming language. In prolog, logic is expressed as relations
(called as Facts and Rules). Formulation or Computation is carried out by running a query over these relations.
Prolog Elements :
Facts − The fact is predicate that is true, for example, if we say, “Tom is the son of Jack”, then this is a fact.
Questions − to run a prolog program, we need some questions, and those questions can be answered by the given facts and rules.
The Facts and Rules The Queries