Logo 
Search:

Artificial Intelligence Articles

Submit Article
Home » Articles » Artificial Intelligence » ProLogRSS Feeds

ProLog Program of Backtracking through fail

Posted By: Milind Mishra     Category: Artificial Intelligence     Views: 3674

Program of Backtracking through fail........

Code for ProLog Program of Backtracking through fail in Artificial Intelligence

domains
   name = symbol

predicates
   father(name, name)
   everybody
   % enumerate_fathers
   % enumerate_fathers(integer)

clauses
   father(leonard, katherine).
   father(carl, jason).
   father(carl, marilyn).
   everybody :- 
      father(X, Y),
      write(X, " is ", Y, "'s father\n"),
      % write(X, " is ", Y, "'s father\n"),
      fail.
 
  
Share: 


Didn't find what you were looking for? Find more on ProLog Program of Backtracking through fail Or get search suggestion and latest updates.

Milind Mishra
Milind Mishra author of ProLog Program of Backtracking through fail is from India.
 
View All Articles

 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!