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
Get step-by-step solutions from verified subject matter experts
