Logic Programming Flashcards
What is the foundation of logic programming?
What is the most widely used logic programming?
Prolog
How can a programmer compute in Prolog?
Give an example of Prolog syntax.
How are databases constructed in Prolog?
Prolog Notes:
Example: Constant Query
Example: Variable Query
Example: Multiple Predicates Query
Example : Assigning one predicate in terms of another predicate
Example: Notations
Example: Sibling Query
How does the interpreter work when searching data?
It is also possible in theory to work forward from the facts trying to see if any of the things you can prove from them are what you were looking for - that can be very time-consuming.
Fancier logic languages use both kinds of chaining, with heuristics or hints from the user to bound the searches.
Example: Resolution Principle
Prolog Unification Rules