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!

Permutations & Paths

Status
Not open for further replies.

WebMonkeys

Programmer
Jan 11, 2004
1
GB
Hello

I have a set of predicates that will generate the route, given a 'shopping list.' I want to be able to find the shortest route to get the items in this list.

At the moment, my program is generating all of the possible permuations of the shopping list, working out the route for every one of those permutations, and then works out the shortest of these routes.

This works, it works ok. But for large shopping lists, it will take a very very long time to determine the shortest path.

Does anyone have any ideas about how I may solve this speed problem?

Thank you
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top