next up previous
Next: Adding Loop Detection Up: No Title Previous: node2path in Action

Looping Behaviour

First, observe that to simulate depth first search we simply modify the definition of agenda_putl/3 (this puts a list of expanded items onto the agenda) from

agenda_putl(A,L,Anew) :- append(A,L,Anew).

to

agenda_putl(A,L,Anew) :- append(L,A,Anew).

The algorithm loops

Checkpoint. Verify both of these assertions.



Mike Rosner
Fri Mar 5 16:50:53 MET 1999