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 dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by billpr37

  1. billpr37

    Einsteins problem in prolog

    You are right!!I get the correct solution. It was a mistyping in rule12 thank you!!
  2. billpr37

    Einsteins problem in prolog

    Thanks for the hint. I wrote this for example rule 14 rule14(L):-append(_,[office(_,publicrelations,_,_,_),office(blue,_,_,_,_)|_],L);append(_,[office(blue,_,_,_,_),office(_,publicrelations,_,_,_)|_],L).Is it correct? I dont get the desired results.
  3. billpr37

    Einsteins problem in prolog

    The public relations office is next to blue office.This is the last rule. How can i represent for example these rules "the green office is right from orange office","the employee who has blackberry is next from employee with windows 7 laptop" without position argument?I am a little confused.
  4. billpr37

    Einsteins problem in prolog

    I have develop the following code to solve einsteins problem.The version of my problem is:there are 5 offices and 5 employees.Each office has different color.Each employee works in different department ,he drinks different drink,he has different cellphone and pc. The problem has the following...

Part and Inventory Search

Back
Top