Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

1) Declare your own predicates, clauses and write a complete prolog program to implement the rule given below. friends ( P1,P2):- likes (P1,G), likes (P2,G),

image text in transcribed
1) Declare your own predicates, clauses and write a complete prolog program to implement the rule given below. friends ( P1,P2):- likes (P1,G), likes (P2,G), P1P2. (Hint: find all friends.) CPCS-331 Artificial Intelligence Department of Computer Science Lab Manual by, Muhammad Shuaib Qureshi 4 Lab:03 Compoundqueries whmuliplevariab 2) Assume the following "likes" facts knowledge base likes (ali, football). likes (ali, tennis). likes (ahmad, tennis). likes (ahmad, handball). likes (samir, handball). likes (samir, swimming). likes (khaled, horseriding)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image
Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_step_2

Step: 3

blur-text-image_step3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students explore these related Databases questions