I think perhaps I was viewing this incorrectly. After looking at it a bit more, I believe the program is simply path finding. I also think I was incorrect in saying the nodes were bidirectional as now I don't believe they are.
So, it now appears to me that perhaps all it's doing is attempting...
I've never done anything in Prolog, and I'm terribly ignorant of what even the simplest of Prolog programs are doing.
I'm presented with such a Prolog program such as this:
edge(a,b).
edge(b,c).
edge(c,d).
edge(b,e).
edge(a,e).
path(X,Y):- edge(X,Y).
path(X,Z):- edge(X,Y), path(Y,Z).
For the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.