






















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!























COMP 524 Programming Language Concepts Aaron Block April 10, 2007 Based on notes by N. Fisher, F. Hernandez-Campos, and D. Stotts
D←A,B
17 edge(a,b).edge(b,c).edge(c,d). edge(d,e).edge(b,e).edge(d,f). path(X,X). path(X,Y):-edge(Z,Y),path(X,Z). edge(a,b).edge(b,c).edge(c,d). edge(d,e).edge(b,e).edge(d,f). path(X,X). path(X,Y):-path(X,Z),edge(Z,Y). edge(a,b).edge(b,c).edge(c,d). edge(d,e).edge(b,e).edge(d,f). path(X,Y):-path(X,Z),edge(Z,Y). path(X,X).
19 ?-a=a. yes ?-a=b. no