Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using Prolog, Describe the following rules (0.25 marks) is_mother(Mum):-mother(Mum,Child). ANSWER: is_father(Dad):-father(Dad,Child). ANSWER: is_son(Son):-parent(Par,Son),male(Son). ANSWER: sister_of(Sis,Pers):- parent(Par,Sis),parent(Par,Pers), female(Sis),not(Sis,Pers). ANSWER: granpa_of(Gpa,X):-parent(Par,X),father(Gpa,Par). ANSWER: sibling(S1,S2):- parent(Par,S1),parent(Par,S2),not(S1,S2). ANSWER:

Using Prolog, Describe the following rules (0.25 marks)

is_mother(Mum):-mother(Mum,Child).

ANSWER:

is_father(Dad):-father(Dad,Child).

ANSWER:

is_son(Son):-parent(Par,Son),male(Son).

ANSWER:

sister_of(Sis,Pers):- parent(Par,Sis),parent(Par,Pers), female(Sis),not(Sis,Pers).

ANSWER:

granpa_of(Gpa,X):-parent(Par,X),father(Gpa,Par).

ANSWER:

sibling(S1,S2):- parent(Par,S1),parent(Par,S2),not(S1,S2).

ANSWER:

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

blur-text-image

Ace Your Homework with AI

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

Get Started

Students also viewed these Databases questions

Question

Why are interface standards important?

Answered: 1 week ago

Question

Define Administration and Management

Answered: 1 week ago

Question

Define organisational structure

Answered: 1 week ago

Question

Define line and staff authority

Answered: 1 week ago

Question

Define the process of communication

Answered: 1 week ago

Question

Explain the importance of effective communication

Answered: 1 week ago

Question

3. What should a contract of employment contain?

Answered: 1 week ago

Question

1. What does the term employment relationship mean?

Answered: 1 week ago