Click here to Skip to main content
15,884,177 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi,

I am trying to write an algorithm to find a path (not necessarily the shortest one) between a given start and end point.

An user will enter the start location, the end location and the available time to travel. For each eadge of my graph I know the cost in time to traverse that edge and the gain in points of interest along that edge.

Until now I only found references to A Star routing algorithm or optimisations to it witch only compute the shortest path.

Could you please give me some hints on what algorithm should I use or some references to solutions of similar problems?

Thank you,
Radu-Stefan
Posted

1 solution

Routing algorithms try to minimize costs - measured by the distance or by the travel time. I'd naively try to translate your problem into such an optimization. I am not sure whether following idea works:
Assume a number of POIs per travel time (take the maximum or a value above it). When you now calculate the costs of your segments, use the difference between that value and the number of POIs encountered along that segment as a measure for "missed POIs". And then use the common algorithms for minimizing the number of missed POIs.
I fear that the constraint of the available time might not always be met.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900