Family tree prolog code. Find and fix vulnerabilities Actions.
Family tree prolog code Related. Instant dev environments Issues for any notes go to my blog : https://tasnuvatabassumoshin. master Prolog - Recursion in Family RelationshipWatch more Videos at https://www. All gists Back to GitHub Sign in Sign up Instantly share code, notes, and snippets. Code Search code, repositories, users, issues, pull requests Search Clear. • Prolog is a logic programming Learn Family Tree. 4 Contribute to shellrut/prolog-family-tree development by creating an account on GitHub. Prolog - More on Family Relationship in PrologWatch more Videos at https://www. Reload to refresh your session. it also looks like everyone with a parent has both a mother and a father . pro This program is designed to answer questions about relationships within a given family tree. pl at main · Dree-Gzz/prolog-royal-family-tree. PROGRAM 1. Ask relation, add/delete/update person, get information of any Family Tree in Prolog. Contribute to abdoElewa/prolog-family_tree development by creating an account on GitHub. Get unlimited access to all CodePal tools and products. - cpmsyr/family-tree-knowledge-base. - kofirok/familyTree This repository contains two Prolog files that define a family tree and provide a way to query relationships between family members. In order to begin asking questions and understanding the system, first read the "input and output explanation and examples" file. Viewed 131 times Prolog Family Tree, cousins issues. Diagram for the family tree I'm trying to get Prolog to output people in the family trees nephew, as in nephew(X,Y) will list . Find and fix vulnerabilities Actions. 1. Pr For a basic prolog program we are to define the following predicates: Already defined predicates (an attempt) a) ancestor(X,Y), meaning that X is an ancestor of Y, i. This functions like a semicolon in languages like Java and C++. Join over a million users who have downloaded SWI-Prolog. ⚔️ Game of Thrones character database and family trees in Prolog. I assume since this is an assignment that you wouldn't have gotten to more advanced This is the whole code plus some other stuff not related to the ancestor part. PROLOG family tree: how can I output all the siblings and cousins? Hot Network Questions Everyone hates this Key Account Manager, but company won’t act Maybe you could define same_generation as "having a common ancestor N levels above". Artificial Intelligence | Family Pl Code Swi Prolog | Pratiksha JainAI means a human intelligence that is simply put into something that is artificial. Assume we defined some persons in family tree. Ask Question Asked 3 years, 2 months ago. Before relating Prolog to Game of Thrones, we should solidify understanding of core concepts: Predicates and Arguments. Requirements SWI Prolog The actual result that I wanted to show is charles' family, andrew's family , edward's family and lastly anne's family but the son of anne appeared first. This is a part of the code. The Cousin Explainer. 0. I only assume that my code works because I don't know how to declare a tree in the Goal section. then you can expand this relation by attaching someone to a one of the facts as a child or as a parent. Claudia. Code Issues Pull requests 🏥 Basic web application to retrieve a disease in base of different input with a Write better code with AI Code review. I want to traverse a tree InOrder . G Run using SWI-Prolog or similar. However, the particular rules you're starting with actually result in a breadth-first search of the family tree, which, as you noted, does not give output that matches the actual line of This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. Find and fix vulnerabilities Codespaces. 4. SImple project to make a family tree using Prolog extended to add more labels. parent(f, g). You're saying P1 and P2 are siblings if P1 and P2 are different but share a parent. pdf), Text File (. GoTCheck. Getting started with the OneCompiler's Prolog editor is easy and fast. Program to demonstrate family relationship tree(Giorgos(Giannis(Petros, Kyriakos), Eleni(Anna, Katerina))). The basic building block of facts and rules. Blame. pl, to be searched for more complicated relationships such as grandparent, cousin, uncle, etc. Hot Network Questions The Family Tree Example Suppose that we want to represent a family tree, so that we can ask questions like "is john related to ", or "list all john's sisters" and so on . The basic entities will be people; the properties we will want to look at will be father, mother, brother, sister, aunt, uncle, grandmother, grandfather, mother_in_law Hi I am working on a PROLOG family tree question, and this is what I have so far: /*1. Star 0. I'm wondering how would I be able to call a nephew or niece in a family tree without using a sibling fact for prolog. Below you have three basic predicates, male, female and parent, which will describe a family by a series of facts. Logic Programming using Prolog. Instant dev environments Issues As an assignment for a class, I have made a small Harry Potter family tree in Prolog. Claim Your 14-Day Free Trial! Code Writers . Enter the information from this family tree as a set of Prolog facts. Hot Network Questions Identify a kids' story about a boy with disfigured hands and super strength Prolog will go through all the rules and find a match. I'm trying to learn the basics of swi-prolog and I started with a simple family tree. and I want to add rules to make a BFS and DFS finding for a results: Giorgos-Giannis-Petros-Kyriakos-Eleni-Anna-Katerina Giorgos-Giannis-Petros-Kyriakos-Eleni-Anna-Katerina You signed in with another tab or window. THEORY Family Tree : A family tree or pedigree chart, is a chart representing family relationships in a conventional tree structure. mother(M,N):parent(M,N), female(M). Users are able to ask the relationship between 2 people. Something with ancestor(X,Y,N) where X is an ancestor of Y with N people between them - so zero for parents, 1 for grandparents, etc. com/ To fill in the family tree in Prolog, we need to add the relationships between the individuals in the provided family tree diagram. pl analyses facts about parents, gender, and dead/alive status of Game of Thrones characters in all major houses, and implements rules. SWI-Prolog is widely used in research and education as well as commercial applications. prolog family tree issue. Here is what I've wrote: father(dad,me). I can't figure out a way to do it by calling the uncle directly. Updated Aug 16, SWI-Prolog offers a comprehensive free Prolog environment. Family trees are often presented with the oldest generations at the top and the newer generations at the bottom. Prolog codes from my Artificial Intelligence course . The facts specify individuals and their genders, years of birth, parental relationships, and other details. com/videotutorials/index. Packages 0. Viewed 1k times 1 . Manage code changes Issues. pl Write, Run & Share Prolog code online using OneCompiler's Prolog online compiler for free. Requirements SWI Prolog Prolog Tutorial-6 | Family Tree in Prolog | AI - 2020 @Lang Code(i) Deduce and check grandfather relationship. Author: Dan Wagar classical family tree problem in prolog based upon 5 predicates {parent,child,spouse,male,female} with 4 generations. Probl Saved searches Use saved searches to filter your results more quickly Look instead into the all-solutions family of predicates: bagof/3, setof/3, and findall/3 and then consider editing your question with your findings. answered Oct 17 prolog family tree issue. Saved searches Use saved searches to filter your results more quickly In the first assignment you are going to revise basic syntax of Prolog, its search strategy and recursion. Collaborate outside of code Explore. - cpmsyr/family-tree-knowledge-base Search code, repositories, users, issues, pull requests Search Clear. We will use the existing facts and rules provided in the code snippet and add new facts to represent the Since your predicate always terminates, you can use the predicate setof/3 to remove duplicate solutions:?- setof(X-Y, sister(X,Y), Xs). get information of any person, print the family tree, control under 18 age marriage and more prolog family-tree family-tree-warehouse-app ftwa. family tree in prolog - Free download as PDF File (. - jaskirathhh/Family-Tree-prolog- It is a sample family tree solve using prolog . How can I write a function that get two persons name and process if they have same generation and who is their same ancesto I wrote a prolog code for my family tree. Instant dev environments Issues. – PEPPA PIG Commented Dec 13, 2021 at 0:02 I have recently started developing an interactive Greek mythology family tree using the language prolog. Note that the females are Mum, Kydd, Elizabeth, Margaret, Diana, Anne, Sarah, Zara, Beatrice, and Eugenie. htmLecture By: Mr. My programming partner, Sara Williams, and I connected through groupme and determined we would work separately on In the first assignment you are going to revise basic syntax of Prolog, its search strategy and recursion. Automate any workflow Codespaces. parent(a, d). How to find kth generation of a family tree in Prolog? 2. Did I reply to your quest for help ? Share. Provide feedback We read every piece of feedback, and take your input very seriously. Traversing a tree in prolog. The figure represents a sample of Prolog example explanation(Family Tree) - Download as a PDF or view online for free ------------------------------------------------------------------------------جامعة واسط - كلية التربية للعلوم الصرفة - قسم to be honest this was only part of the full code aside from this there would be paternalgrandparent which would be defined as parent(X,father(Y)) and parent is defined as father (X,Y) ; mother (X,Y) I just took a code sample as an example so that you wouldn't have to read through lines of code which you wouldn't need Prolog Family tree. main ------------------------------------------------------------------------------جامعة واسط - كلية التربية للعلوم الصرفة - قسم Prolog example explanation(Family Tree) - Download as a PDF or view online for free The following prolog program allows a file of tuples giving a simple representation of the british royal family by the parent relationship, located in the file royal. The prolog syntax for mother-sister relationship is given as below: Mother Relationship Sister Relationship 1. Contribute to Sirius-A/prolog-got-family-tree development by creating an account on GitHub. We can also define: 1. Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers; Advertising & Talent Reach devs & technologists worldwide about your product, service or employer brand; Toggle navigation ? users online users online. parents(someone, someoneelse, child). Contribute to Jian-danai/Prolog_CZ3005-for-NTU-AI development by creating an account on GitHub. Commented Apr 18, 2013 at 18:36. – willeM_ Van Onsem. Prolog Family Tree, cousins issues. Program to demonstrate family relationship I'm new to prolog I'm trying to write a family tree I got the code to get parent,mother,father,sister,brother,etc. Search syntax tips Provide feedback parent(Dada_Dadu_Nana_Nani,Gardian),parent(Gardian,Nati Family Tree in Prolog. - Dree-Gzz/prolog-royal-family-tree I can check people relationships (uncle, aunt, father, grandfather) in a tree but now I'd like to know if two people are in the same or a different tree i. When you ask this to generate, it's going to locate P1 = herb, P2 = homer, Parent = abraham, then it's going Description of the Royal family tree using Prolog. Take the following family tree as an example: James I m. The family tree includes information about parents, children, siblings, and extended family members, as well as various predicates to determine specific familial relationships. Prolog - recursing down family tree. The document contains facts and rules written in Prolog code that define relationships within a family tree. The program will tell you who the mother, father, sister, brother, aunt, uncle, grandmother, grandfather, brother in law, Prolog program : Family relationsProlog Code for the Practical:https://drive. Logout; Open hangout; Open chat for current file Users are able to update people in family tree. Family tree in Prolog. father_child(tom, erica). Mutually referential Prolog rules in family tree. 24 watching. The definition of a 'family' is kind of stupid because we all have a common ancestor but that's the exercise I have to do Family tree example ⚔️ Game of Thrones character database and family trees in Prolog. SWI-Prolog is widely used in research and education as well as This is a Prolog code that defines various facts and rules related to family relationships. Show Gist options. 2 The original tree types LetsrecallthetypesBinTree andLeafTree fromhomework1: sealed trait LeafTree[A] case class Leaf[A](a: A) extends LeafTree[A] case class Branch[A](l: LeafTree[A], r: LeafTree[A]) extends LeafTree[A] sealed trait BinTree[A] Here's one way that works, but it will sometimes produce duplicates. Arnab Chakraborty, Tutor It also corresponds with the code and database as given (elizabeth can't have four parents, I presume). You signed in with another tab or window. siblings(me,sis). 585 stars. Prolog Family Tree Issues. I currently have 491 beings entered in and counting. Write better code with AI Security. Saved searches Use saved searches to filter your results more quickly I am trying to get a simple family tree to work with Prolog using a maximum of 3 facts being allowed, however I can't seem to be able to define my sister as the child of my parents. – Will Ness. pl - contains the database of all the facts and relations of the members of the family tree. Search syntax tips Provide feedback We read every piece of feedback, and take your input very seriously. I am trying ancestor(pat,jim). It lists family members as male or female and defines parent, sibling, spouse and other relationships between individuals. Place them together like below or use :- discontiguous(aunt/2). X = the nephew Y = Aunt/ Uncle I've tried writing some of the code already, I'm pretty confident the son command works, and I believe sibling works, however combining these is proving, difficult. Plan and track work prolog family-tree Resources. No releases published. and ancestor(X,jim). I wrote a prolog code for my family tree. Include my email address so I can be contacted. father_child(tom, sally). pl. Let’s begin with a SImple project to make a family tree using Prolog extended to add more labels. This repository contains two Prolog files that define a family tree and provide a way to query relationships between family members. Since its start in 1987, SWI-Prolog development has been driven by the needs of real world applications. Hot Network Questions Movie This program, a simplified version of above program, will work for direct relations present in the database. - prolog-royal-family-tree/royal. Using setof will give the unique collection. I am trying to write code to get great-great-grandmother/s I have this code to get great-grandmother/s : Well then it might help to share the "one child" code, such that we can use this as a start to implement the list of anchestors. Contribute to Anniepoo/prolog-examples development by creating an account on GitHub. Prolog: X is the grandfather of Y. CI/CD Writer; Kubernetes Writer; Code Extender; Code Fixer; Code Generator; Code Refactor The document describes a Prolog program that defines facts and rules to represent a family tree. Xs = [rika-kiku, rika-susu]. (ii) Deduce and check uncle relationship. In general, when editing the code, end every line with a period. Query: qus(Y,how,is,a1,related,to,b3). SWI-Prolog family tree parent_of/2. A collection of facts and rules is called a knowledge base (or a database) ⚔️ Game of Thrones character database and family trees in Prolog. Contribute to thecskc/FamilyTree development by creating an account on GitHub. google. A Prolog code that represents a family tree and provides predicates for father, sister, uncle, and sister_from_uncle. About. classical family tree problem in prolog based upon 5 predicates {parent,child,spouse,male,female} with 4 generations. Prolog Family tree. md at main · Maxmuthee/Family-tree-Prolog Saved searches Use saved searches to filter your results more quickly family_tree HelloWorld. parent(b, f). prolog prolog-application cuet. Facts that are included are the ages of the members as well as the child relationships. Readme Activity. Prolog- family tree of children. The first argument defines a term template representing one solution, the second defines the goal of which you want to collect the answer substitutions and the third argument is the list of instantiated 1-Using the bush family tree, write a prolog program ( a collection of facts and rules) to answer the following queries Sh berty A. /** are M and F parents of the children in Prolog family tree examples. Demonstrating a simple prolog knowledge base using facts and rules. It allows you to query relationships such as father, mother, grandfather, grandmother, sister, aunt, brother, uncle, and ancestor based on With this correction, your code should work as normal. 4 Search code, repositories, users, issues, pull requests Search Clear. As an assignment for a class, I have made a small Harry Potter family tree in Prolog. Who is the father of Noelle Bush? B. If it matches, then it will go through the expansion and repeat the process. Share Improve this answer In the first assignment you are going to revise basic syntax of Prolog, its search strategy and recursion. Forks. com/file/d/1RoLY9ERMcQUAD5ephQYjLUSkIXhvVQsi/view?usp=sharingArtificial I I need a code in prolog. 3. Updated Nov 4, 2022; Prolog; tau-prolog / tau-prolog. Manage code changes Discussions family-tree. father(M,N):parent(M,N),female(M). Skip to content. If I use ; instead of , in the ancestor code, it kind of works but repeats names when a person has both parents in the list. Queries call upon these rules, which use recursion and lists to sift through the database, analysing family trees and I have the following Prolog code, modified from Wikipedia: mother_child(trude, sally). Plan and track work Code Review. Facts and rules. Prolog Ancestor with List. Can anyone help me please. - JatiPat/FamilyTree Write better code with AI Code review. parent(a I'm curious if there are any examples of prolog source code for doing "normal" stuff. Provide feedback We read every piece of feedback, and This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. Find and fix vulnerabilities Write better code with AI Security. Contribute to EStaiman/Greek development by creating an account on GitHub. I am guessing that it is because the son(X,Y) rule executes first and finds all the matches and This video shows the steps to install GNU Prolog Compiler and create a knowledge base using Prolog from a Family Tree and run it to ask different questions. SWI-Prolog offers a comprehensive free Prolog environment. Most code examples are the usual: solve this little puzzle or do a family tree. We will define a series of relationships – father, mother, sibling, brother, sister, aunt, uncle, grandmother, grandfather and ancestor. Can someone help me with a problem in Prolog. Modified 3 years, 2 months ago. check if they are from the same 'family'. file containing the predicate definitions for the requested familial relations defines predicates for parent, sibling, nth cousin, nth cousin k-times-removed, grandparent, and kth child. so you need to use a siblings/2 rule if you want to attach a child, or a couples/2 rule if you want to attach a parent. Users are able to display the family tree. family relation in prolog :descendantTree. blogspot. +--------------- Search code, repositories, users, issues, pull requests Search Clear. Download ZIP You mixed up facts and predicates which is basically possible but not a recommended approach (at least in this case). When I try to compile the code it keeps giving me a Syntax error: Operator expected on lines 47-53 and a Singleton variables:[B, C] warning on lines 60 and 61. That you can easily define by a rule like "S is a sister of X when S is female and has a family tree in prolog - Free download as PDF File (. Search syntax tips. tutorialspoint. Rules are defined to deduce This repository encompasses the builds that are mainly concerned with Family tress for people to be able to find their backgrounds and Hereditary roots - Family-tree-Prolog/README. Watchers. Last active June 10, 2016 16:13. Prolog - family tree. 176 forks. - eleguen22/royal_family_prolog Host and manage packages Security. Explore the functionality of Prolog for logical reasoning and learn how to represent complex family structures through rules and facts. descendent(A, B) :- parent(B, Saved searches Use saved searches to filter your results more quickly This is my very first time creating a Prolog script, and I've gotta admit, it's a beautiful language. It's one of the robust, feature-rich online compilers for Prolog language. ratulotron / family. A Greek mythology family tree built in Prolog. What's the problem with this code? Ask Question Asked 3 years, 11 months ago. If anyone familiar with the language could take a look at the code and tell me what I could be doing Using Prolog to perform basic inferences about a family tree - yuniktmr/Prolog-Family-Tree Prolog Family Tree Blood Relations, Recursion? 10. prolog family-tree Updated Mar 30, 2022; AnupamKhosla / React-Family-Tree-King-Shan Star 0. Hot Network Questions Balancing Magic Numbers and Readability in C++ Code Debian doesn't recognise Desktop directory, and instead uses the entire home directory as the desktop Prolog labs. Let's say I wanted to do something like "grep through a log file and do some simple analytics". Add CLIPS rules that will allow you to infer information for the predicates Prolog Family Tree Issues. I managed to do it in postOrder because it seemed siplier, but I dont't know how to change it inOrder. Key Concepts. This document describes writing a Prolog program to capture basic family relations, including defining facts for father-mother relations and rules to define a parent relationship based on being a father or mother; it provides sample code defining family member relationships and rules to identify Learn Family Tree. Instant dev environments based on parent(P1,C), parent(P2,C), parent(P1, C2), \+parent(P2, C2). Computer Science and engineering National Institute of Technology Calicut A family tree is chart representation of family relationships in a tree structure. Here is my code so far: withthelabellabel,andwe will use this fact to construct trees in Prolog. Report repository Releases. I have a lot more people I’m planning on implementing but functionality wise it is done. So Prolog backs up to the last choice point and starts scanning forward. Write a program that when given a person of reference and a degree the program The Family Tree AI program is designed to take input from a user and determine if a specific relationship is correct based off a preloaded family tree. We will start by a simple example – the genealogy tree. I'm looking for something in the area of python cookbook examples but in prolog. How to find Relationships between Objects. What's the problem with this code? Load 7 more related questions Show fewer related questions Sorted by: Reset to default Know someone who can answer? Représentation de l'arbre généalogique ( family tree ) PROLOG - MarwaBelmir/arbre-genealogique-family-tree- to be honest this was only part of the full code aside from this there would be paternalgrandparent which would be defined as parent(X,father(Y)) and parent is defined as father (X,Y) ; mother (X,Y) I just took a code sample as an example so that you wouldn't have to read through lines of code which you wouldn't need Prolog Family tree. 2. Family tree with SWI-Prolog. Top. - JatiPat/FamilyTree. haschild(M):parent(M,_). Search code, repositories, users, issues, pull requests Search Clear. either X is a parent of Y or X is an ancestor of someone who is a parent of Y; b) common ancestor(X,Y,Z), meaning that X is a common ancestor of Y and Z, i. Write Prolog clauses to express the following three relationships, * given the parent/2 relationship: grandp tree. Arnab Chakraborty, 1. You signed out in another tab or window. Stars. A family tree is chart representation of family relationships in a tree structure. %if you want to attach a child by 'siblings' relation parent_of_rule(X, Y) :- Prolog always searches the database in the order you supply it with facts, that's why we got Albert before we get Alice. Family Tree on PROLOG - Download as a PDF or view online for free. Plan and track work Discussions. Users are able to get the basic information about each person. This document describes writing a Prolog program to capture basic family relations, including defining facts for father-mother relations and rules to define a parent relationship based on being a father or mother; it provides sample code defining family member relationships and rules to identify The Family Tree AI program is designed to take input from a user and determine if a specific relationship is correct based off a preloaded family tree. Improve this answer. at first you should have some parent_of facts as the core of parental relation. it looks like your dataset has the property that if any two people share at least one parent, then any other child of either parent has the same parents. Prolog program for family hierarchy. In addition, every file Hi,thanks for you help!You code work good on small trees,but I take big family tree of Rurik and something went wrong. Family tree In this session you will learn how to write a Prolog program, and how to call Prolog predicates. Also included are the male or female distinctions for people to use in Course: CS 430 Fall 2004 Date: November 23, 2004 Language: Prolog Compiler: PDProlog Environmment: Windows XP Source Filename: family. Cancel prolog code for family tree. Hint: use findall/3. My background is in imperative Prolog is designed expressly for symbolic, logical reasoning – making it a very apt choice for exploring a domain like Game of Thrones family trees. You wrote that you want to define male, female and parent_of as basic facts but in your first source code above you define also sister and brother. It compiles into a self-contained executable that can be run straight from the command line on Linux machines. Prolog is a language built around the Logical Paradigm: a declarative approach to problem-solving. Implement family tree in Prolog. Code. I've added almost everything related to the family tree, (no pun intended, LOL). The figure represents a sample of The Corleone Family Tree project in Prolog is designed to help users understand the complex relationships within the Corleone family. See more Your aunt/2 predicates are not placed together, therefore Prolog assumes grandparent/2 is aunt/2. mother(mom,me). File metadata and controls. GitHub Gist: instantly share code, notes, and snippets. e. Contribute to shellrut/prolog-family-tree development by creating an account on GitHub. Basic Prolog Family Relation. As rati noted above, Prolog queries are resolved by choosing a rule, recursively evaluating it using depth-first search, then choosing the next rule and repeating the process. My background is in imperative Project is about the family tree implemented using PROLOG. Ideal for students and enthusiasts of artificial intelligence I'm trying to write a family tree program in Prolog for my homework. This is a prolog program that contains two intricate family trees, complete with predefined attributes and relationships that enables insightful querying experiences. I avoided the miscellaneous relations and stuck with descendent or parent. Prolog and ancestor relationship. You can build, compile and apply query on your code to retrieve results. Provide feedback We read every piece of feedback, and Contribute to abdoElewa/prolog-family_tree development by creating an account on GitHub. When I try to test it in swipl, the ancestor code gives me false. The 2nd line is the cause of inf loop, since don't care (from the last rule) is mapped to []. Prolog ancestor clause using lists. X is an ancestor of both Y and Z; SWI-Prolog family tree parent_of/2. شرح لغة برمجة ال prolog مقدمة + ال syntax وكيفية عمل Facts + rules وتطبيق قواعد اللغة في مثال ال family tree. sister(M,N):parent(O,M), parent(O,N), female(M), M\= =N. Can be run using swi-prolog. txt) or read online for free. When asking the system questions (will be referred to as querying from here on out), you Prolog family tree examples. father_child(mike, tom). Family tree is often presented with oldest generations at the top and the newer generations at the bottom. Cancel PROLOG EG1= FAMILY TREE. When you hit ; it's like you're having a conversation with Prolog and you're saying "or?" as if to prompt it for another solution. uncles, aunts Hi Friends,This YouTube channel is created for Education Purpose,If you are interested in this field Subscribe My channel for getting more video like this. Updated Jul 13, 2019; Prolog; upc-projects / pyswipl_drugstore. Trying to do a prolog question to find first cousins! /* first person is parent of second person */ parent(a, b). You switched accounts on another tab or window. The editor shows sample boilerplate code when you choose language as Prolog and . . Prolog assignment of a "Ma'arechet Mumche" about the British Royal Family. prolog. (iii) prolog family tree locating cousins. prolog family-tree. 11. I updated my question. Follow edited Oct 19, 2020 at 16:12. Well, logically, Prolog is doing the right thing. Modified 3 years, 11 months ago. We were supposed to program the Khan’s family knowledge given in a family tree into a Prolog program. irjpfak teugimg rimpe zilabeh scjcons biamv ortcgs cqhve dtcr grocs