Question: Section - 1 : Prolog 1 . The family tree below shows a part of the family tree in the Mahabharat. Model the family tree
Section: Prolog
The family tree below shows a part of the family tree in the Mahabharat. Model the family tree similar to the example discussed in class. In particular, define the following predicates:
parent X YX is the parent of Y
Similarly, ancestormathrmXmathrmY brother mathrmXmathrmY stepBrother mathrmXmathrmY sister mathrmXmathrmY stepSister mathrmXmathrmY mother mathrmXmathrmY stepMother mathrmXmathrmY father mathrmXmathrmY stepFathermathrmXmathrmY grandFather X Y grandMothermathrmXmathrmY maternalUncle mathrmXmathrmY mother's brother, maternalAunt mathrmXmathrmY mother's sister, maternalUncleWifeX Y mother's brother's wife, maternalAuntHusbandXY mother's sister's husband, paternalUncleXY father's brother, paternalAuntXY father's sister, paternalUncleWifeXY father's brother's wife, paternalAuntHusbandXY father's sister's husband.
In addition define any extra predicates that you require to express the relations correctly.
Key to the Symbols
Blue
Male Pandavas Note: In each case write Prolog programs for the predicates given in the problem. Clearly specify the meaning of any supplementary or helping predicates you need.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
