Logo 
Search:

Artificial Intelligence Articles

Submit Article
Home » Articles » Artificial Intelligence » ProLogRSS Feeds

Prolog program of person hobbies

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

Prolog program of person hobbies.

Code for Prolog program of person hobbies in Artificial Intelligence

domains
    person = symbol
    hobby = symbol

predicates
    likes(person,hobby)
clauses
    likes(amit,racing).
    likes(amit,music).
    likes(amit,movies).
    likes(amit,reading).
    likes(amit,sleeping).
        
    likes(dipen,sleeping).
    likes(dipen,music).
    likes(dipen,movies).
    
    likes(kaushal,music).
    likes(kaushal,eating).
    likes(kaushal,sleeping).
    
    likes(pritesh,sleeping).
    likes(pritesh,eating).
    
    likes(kavan,music).
    likes(kavan,reading).
    likes(kavan,tension).
    
  
Share: 


Didn't find what you were looking for? Find more on Prolog program of person hobbies Or get search suggestion and latest updates.

Milind Mishra
Milind Mishra author of Prolog program of person hobbies 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!