Prolog

Prolog Environment Commands

Examples

12/01 Exercises

  1. Construct a Prolog genealogy database that covers 3 generations of your family. You may use the following facts in your database: male(x), female(x), and parent(x, y) where x is the parent of y.
  2. Define your own Prolog predicate that determines whether an element is a member of a list.