There are only three basic constructs in Prolog: facts, rules, and queries. A collection of facts and rules is called a knowledge base (or a database). If we have given multiple facts like...


There are only three basic constructs in Prolog: facts, rules, and queries. A collection of facts<br>and rules is called a knowledge base (or a database).<br>If we have given multiple facts like<br>male(harry).<br>female(jess).<br>parent_of(jack,jess).<br>Can you make the rules about?<br>1.<br>father_of(X,Y):-<br>2.<br>mother_of(X,Y):-<br>3.<br>grandfather_of(X,Y):-<br>4.<br>grandmother_of(X,Y):-<br>

Extracted text: There are only three basic constructs in Prolog: facts, rules, and queries. A collection of facts and rules is called a knowledge base (or a database). If we have given multiple facts like male(harry). female(jess). parent_of(jack,jess). Can you make the rules about? 1. father_of(X,Y):- 2. mother_of(X,Y):- 3. grandfather_of(X,Y):- 4. grandmother_of(X,Y):-

Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here