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. MrOpyuse

    Family structure queries

    Solved it! Just had to make sure that Person and Person1 where members of one of the familys then use length on child. Thanks for the family tip that was very helpful to getting me thinking the right way.
  2. MrOpyuse

    Family structure queries

    aq44(Person,Person1,Children,Children1):- Family = family(Husband,Wife,Child), Family1 = family(Husband1,Wife1,Child1), Person = person(Name,Surname,_,_), Person1 = person(Name,Surname,_,_), exists(Person), exists(Person1), Person \=Person1, Person1 \=Person, Person @<Person1. This...
  3. MrOpyuse

    Family structure queries

    Thanks for that. What I don't understand is if they are both searching for the same thing how does nameing them different make them different. Does Family act as teh first family in the knowledge base and Family1 the second and so on. Do I then just use member(Person,Family)...
  4. MrOpyuse

    Family structure queries

    aq4(Person,Person1):- Person = person(Name,Surname,_,_), Person1 = person(Name,Surname,_,_), exists(Person), exists(Person1), Person \=Person1. I've managed to create this which returns only persons with the same name. However it duplicates its anwers and I still can't find the number of...
  5. MrOpyuse

    Family structure queries

    Hello, I'm new to prolog and are used to programming with java and .net. I can't think the way it wants me to. I'm working off a family structure tutorial an example of the familys lay out is below. family( person(pat,marx,date(10,march,1944),unemployed)...

Part and Inventory Search

Back
Top