Question: Consider the following relation: arc(a,b). arc(b,b). arc(b,c). Select all possible answers to the following question (finding some of them might require typing a semicolon and

Consider the following relation:

arc(a,b). arc(b,b). arc(b,c).

Select all possible answers to the following question (finding some of them might require typing a semicolon and backtracking):

?-arc(X, Y), arc(Y,Z).

X = a, Y = Z, Z = b

X = a, Y = b, Z = c ;

X = Y, Y = Z, Z = b

X = Y, Y = b, Z = c

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!