Click here to Skip to main content
15,892,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi all,

I am currently developing a Windows Phone 7 Silverlight app.

In part of this application, the user needs to inspect all objects within a site, for example, all bits of playground equipment within a park.

Currently the user walks around the park (for example), and inspects the equipment in any order they wish. Whilst this is fine, we have had several requests for a route to be created.

To clarify, I would like to create a route, or order, that the user will visit each piece of equipment. Clearly it doesn't have to be 100% the most efficient order, but also it cannot be a daft order either. Each object and the user is pre-recorded using GPS.

I am looking for advice on how to create this. I have been reading about the various approaches that I could use, but I am hoping someone could give me a bit of a pointer. Further information follows below:

- The user must end up where they began (for example, at the entrance to the park).

- They need to visit each piece of equipment

- The average site will have approximately 20 objects within it

- I already have a method that I have written that can work out the distance between any two points, including the user, and all objects within the park, and the park gate

Thanks in advance!
Posted

1 solution

I'd say the Traveling Salesman approach would do nicely.
 
Share this answer
 
Comments
tommydudeheaduk 23-May-11 10:47am    
Thanks, this is what I also thought. However, there appear to be many different ways of solving the traveling salesman problem, and I am unsure of which would be suitable, or how to start... :/

Do you know of any examples that you would recommend that would be suitable?

Thanks again for your response!
Dave Kreskowiak 23-May-11 21:22pm    
Not that I recommend. This is where you try a few solutions out to see what's going to benefit you the best.

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