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 (101k points)
recategorized by | 1k views

1 Answer

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


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

39,541 questions
46,682 answers
139,871 comments
57,688 users