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):-

Algebra: Structure And Method, Book 1
(REV)00th Edition
ISBN:9780395977224
Author:Richard G. Brown, Mary P. Dolciani, Robert H. Sorgenfrey, William L. Cole
Publisher:Richard G. Brown, Mary P. Dolciani, Robert H. Sorgenfrey, William L. Cole
Chapter2: Working With Real Numbers
Section2.3: Rules For Addition
Problem 7P
icon
Related questions
Question
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):-
Transcribed Image 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):-
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Recommended textbooks for you
Algebra: Structure And Method, Book 1
Algebra: Structure And Method, Book 1
Algebra
ISBN:
9780395977224
Author:
Richard G. Brown, Mary P. Dolciani, Robert H. Sorgenfrey, William L. Cole
Publisher:
McDougal Littell
Algebra for College Students
Algebra for College Students
Algebra
ISBN:
9781285195780
Author:
Jerome E. Kaufmann, Karen L. Schwitters
Publisher:
Cengage Learning
Intermediate Algebra
Intermediate Algebra
Algebra
ISBN:
9781285195728
Author:
Jerome E. Kaufmann, Karen L. Schwitters
Publisher:
Cengage Learning
College Algebra (MindTap Course List)
College Algebra (MindTap Course List)
Algebra
ISBN:
9781305652231
Author:
R. David Gustafson, Jeff Hughes
Publisher:
Cengage Learning
Glencoe Algebra 1, Student Edition, 9780079039897…
Glencoe Algebra 1, Student Edition, 9780079039897…
Algebra
ISBN:
9780079039897
Author:
Carter
Publisher:
McGraw Hill
Calculus For The Life Sciences
Calculus For The Life Sciences
Calculus
ISBN:
9780321964038
Author:
GREENWELL, Raymond N., RITCHEY, Nathan P., Lial, Margaret L.
Publisher:
Pearson Addison Wesley,