Re: Help with a breadth first search in prolog.



On Mar 18, 7:33 am, ajpowerran...@xxxxxxxxxxxxxx wrote:
On Mar 18, 11:17 am, Nick Wedd <n...@xxxxxxxxxxxxx> wrote:



In message
<cfb27fa3-bc66-4489-8964-9ff52ab4e...@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
ajpowerran...@xxxxxxxxxxxxxx writes

I am trying to do a task I found on breadth first searchs but am
stuck! The task is a maze, at each node is a sound level the higher
the sound the closer the the exit you are. I have written a lot of
code for this task so far which I will post if anyone actually replys
to this message (prolog seems to be a hard area to get help for
online!)

Would anyone be able to help me get the solution to the task?

Does your solution work if you leave out the bit about the sound level?

(You have asked "I have written a program with at least one bug in it,
please help me to find the bug". I am doing my best.)

Nick
/--
Nick Wedd n...@xxxxxxxxxxxxx

Thanks for the reply, I am new at prolog. The task is meant to sort
the nodes by noise level and then output the quickest path from the
start of the maze to the end, this is the error i get when i run the
code: uncaught exception: error(existence_error(procedure,path/
3),findall/3)

Perhaps you've written a subgoal involving findall/3
which invokes solutions to path/3, but that predicate
(at least with arity 3) does not exist??

Certainly check your code for occurrences of findall,
and see if one of these matches the error message.

regards, chip
.



Relevant Pages