Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A* search refactor on finding the shortest routes in prolog

Status
Not open for further replies.

misoijnr

Programmer
Nov 17, 2010
32
0
0
BE
Hi, i have come up with the codes below search.pl preprocess.pl and preprocess1.pl and i have data in luven.pl

I have used A* algorith to search for routes between two nodes.

Can someone refactor for me and come up with a simpler way of doing it, since i find mine cluttered.
The codes are in the links below
how it works:
Preprocess gets data from luven.pl and processes to get nodes,
search.pl uses A8 to search between the shortest routes


amsterdam.pl

cheers,
play with it
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top