The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
+4 votes
1k views

Given the following set of prolog clauses:

father(X,Y) :

parent(X,Y),

male(X),

parent(Sally, Bob),

parent(Jim, Bob),

parent(Alice, Jane),

male(Bob),

male(Jim),

female(Salley),

female(Alice).

How many atoms are matched to the variable 'X' before the query father(X, Jane) reports a Result?

  1. 1
  2. 2
  3. 3
  4. 4
asked in Others by Veteran (105k points)
recategorized by | 1k views
0

https://gateoverflow.in/?qa=blob&qa_blobid=16807665573314711362

Please do comment if found any thing incorrect.

1 Answer

0 votes
No options is correct/
answered by (71 points)
0
Can u please explain how to do this

Related questions



Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

42,455 questions
48,493 answers
154,720 comments
63,089 users