Write simple facts for the statements using Prolog.
OBJECTIVE: Write a simple fact for the following:
Clauses
likes(ram , mango).
girl(seema).
red(rose).
likes(bill , cindy).
owns(john ,gold).
Goal queries
?-likes(ram, What).
What= mango
?-likes(Who,cindy).
Who= cindy
?-red(What).
What= rose
?-owns(Who, What).
Who= john What= gold.
OUTCOME: Students will understand how to write simple facts using a prolog.
Artificial Intelligence Lab, AKTU manual, 4th year, Computer Science and Engineering, Information Technology, Prolog, programming
Artificial Intelligence Lab (RCS752)
Artificial Intelligence Lab Manual AKTU
Artificial Intelligence Lab Manual using Prolog PDF
Artificial Intelligence Lab Notes Download