Program For Family Tree In Prolog
I am working on creating a family tree in prolog. Where I am running into trouble is when I call on sister or brother. The results I get are correct, where julie is the sister of mike, julie is the sister of amanda, amanda is the sister of mike and amanda is the sister of julie. Here are some facts for a simple prolog knowledge base. It gives facts about a small family tree, with part of four generations. Here is a graphical representation of the tree. The two parents are above the children, and a line connects parents, while a circle and line descends to each child. Males are given in all capitol letters. Export your family tree in Gramps, and analyze it in Prolog. Facts and rules. Family tree In this session you will learn how to write a Prolog program, and how to call Prolog predicates. We will start by a simple example – the genealogy tree.
- Prolog Family Relationships
- Prolog Predicates Family Tree
- Prolog Examples Code
- Computer Program For Family Tree