Logo 
Search:

Artificial Intelligence Articles

Submit Article
Home » Articles » Artificial Intelligence » ProLogRSS Feeds

ProLog Program of parent and predecessor

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

Program of parent and predecessor.....

Code for ProLog Program of parent and predecessor in Artificial Intelligence

domains
   p_name, c_name = symbol

predicates
   parent(symbol, symbol)
   predecessor(p_name, c_name)


clauses
   parent(ellen, tom).
   parent(john, judy).
   parent(tom, ellen).
  
   predecessor(X, Y) :-
     parent(X, Z), predecessor(Z, Y).
  
Share: 


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

Milind Mishra
Milind Mishra author of ProLog Program of parent and predecessor 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!