Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Kirdneh

    Prolog "little" issue

    I do not get this... So what I want as output is: ?- descendent(person3, person4, X). X = c(c(person4)). so if person3 is a descendent of person4 I can count all the c() to know how much generations are between the two persons. with my code I only know if a person is descendent of another...
  2. Kirdneh

    Prolog "little" issue

    Hi, I am learning prolog and I am not able to fullfill the following excercise: 1. I have a list of facts: f(name0). m(name1). -> these are persons, f(x) means female, m(x) means male. child_of(x,y). -->x is a child of y. 2. I want to now if x is and descendent of y: descendent(x,y) :-...

Part and Inventory Search

Back
Top