Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8527477
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T08:34:05+00:00 2026-06-11T08:34:05+00:00

I have a map with a destination (the red dot below), and a number

  • 0

I have a map with a destination (the red dot below), and a number of points of interest (the yellow, green and blue dots).

map1

I’m trying to find a path to the destination, but the starting point is undefined – I just want it to pass as many of the points of interest as possible, without the route being to circuitous.

For example the following (pink line) would be a good route in this case:

map2

The yellow dot is the POI furthest away from the destination (not useful in this case), the green ones are the four next furthest away.

Can anyone suggest an algorithm which would be suitable for this?

Is this a suitable problem to turn into a graph? The “not too circuitous” requirement seems to suggest that, but how would I reconcile that with wanting to pass as many POIs as possible along the way?

Edit: To clarify the “not too circuitous” requirement. I just want it to be a plausible route, for example turning a maximum of 90 degrees for the sum of all the corners. The POIs will always be nearby the destination so length isn’t really an issue.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T08:34:06+00:00Added an answer on June 11, 2026 at 8:34 am

    The problem can definetly be reduced to a graph G=(V,E) where V are all your POI, and E in this case is V x V (edge between all vertices). You also need to produce a weight function w:E->R such that w(u,v) = distance between u and v

    The problem is actually a variation of the Traveling Salesman Problem, so it is NP-Hard (So there is no known polynomial solution) – but have a look around, there are many heuristics for this problems.

    Also – if you do not expect many POIs (say 20-30) – a dynamic programming solution can be used to find the optimal path between all points.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have one very general object that I want to map to a destination
I have made the same Google map web page with more than two destination
I have map.resources :posts and I want to be able to serve post bodies
I have map with multiple different colors markers with some info window. Everything works
I want to display google map in Android ,i have map API even map
I have a Map and a List . The List should be sorted based
I have a map of the UK broken down into various geographic regions. I
I have a map that i want to update from a separate thread. Im
I have a map with various markers and i need to be able to
I have image map that can I move, but this map will be so

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.