Author | Message |
---|---|
rabbott
Posts: 1649
|
Posted 17:15 Oct 27, 2012 |
Here is my breadth-first wolf, goat, cabbage code. Can you use it (or your own) to create the other searches? Last edited by rabbott at
17:15 Oct 27, 2012.
|
ummata
Posts: 68
|
Posted 20:43 Oct 28, 2012 |
My code is in the dropbox folder Amata/experiment. |
rkjc
Posts: 61
|
Posted 17:20 Nov 01, 2012 |
I've got a BFS 3-way and assorted versions of the 5-way searches in my dropbox. The BFS and DFS searches appear to be working just fine. I'm not as sure about the Dijkstra BFS search though and was wondering if anyone else had results I could compare it to.
|
rkjc
Posts: 61
|
Posted 18:29 Nov 01, 2012 |
I'm thinking I have a problem in my Dijkstra algorithms. I expected the DFS version (pull from the top of the openSet queue) to give the shortest route. It doesn't.
FarmerBoat 5-way version puzzle - Dijkstra Depth First Search |
rkjc
Posts: 61
|
Posted 23:33 Nov 01, 2012 |
Ahh Haa! The Dijkstra is not finding the shortest route, it is finding the cheapest route. |