Algorithm for the min. distance over a set of points randomly distributed

Click For Summary

Discussion Overview

The discussion revolves around finding an algorithm to determine the minimum distance path that visits a set of randomly distributed points on an X-Y plane, with the requirement that each point must be visited at least once. The problem is related to the Traveling Salesman Problem (TSP) and explores various methods for solving it, including potential use of Markov chains.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant outlines the problem constraints, emphasizing the need to visit each point at least once and questioning the applicability of Dijkstra's algorithm for this scenario.
  • Another participant suggests researching the Traveling Salesman Problem (TSP) as it relates to the posed problem, noting its classification as NP Hard.
  • A participant mentions their intention to explore methods involving Markov chains for solving the problem, referencing a heuristic algorithm that combines TSP with Monte Carlo methods.
  • There is a mention of the TSP serving as a foundational problem that has implications for other combinatorial optimization problems.

Areas of Agreement / Disagreement

Participants do not reach a consensus on a specific algorithm to use, and multiple approaches are discussed, indicating that the discussion remains unresolved regarding the best method for solving the problem.

Contextual Notes

The discussion highlights the complexity of the problem and the potential for various methods, including heuristic approaches, but does not resolve the mathematical or algorithmic steps involved in applying these methods.

JorgeM
Messages
30
Reaction score
6
TL;DR
Hello there, I need to identify the best path for the minimun distance over a set of points randomly distributed over an X-Y plane.
The only restrictions are:
-There are N points randomly distributed over an X-Y plane and it is necesary to pass every point at least 1 time, in order to get the path of the minimun distance through all of them.
-If does not matter how many times you pass any of this points.
-You have to pass every point at least one time.
-The only known point is (0,0) as the first.

How may I solve this algorithm? I have been reading and I found something about Djikstra's algorithm But I am afraid it is only for getting the best path from the point A to the point B over a set of points without taking care of passing by all the points, or Am I wrong?

If you know any algorithm that could solve this problem, I would thank you for telling me its name.

Thanks for your advise.

Jorge M
 
Technology news on Phys.org
Do a Google search for: Traveling Salesman Problem
Also see an animation at: https://en.wikipedia.org/wiki/Travelling_salesman_problem

Although your problem is a relaxed version, Traveling Salesman is a classic problem and, IIRC, was only recently shown to be NP Hard, rather than the long-standing assumption of being NP Complete.

Have Fun!
Tom
 
Last edited:
  • Like
Likes   Reactions: JorgeM, DEvens and jim mcnamara
Tom.G said:
Do a Google search for: Traveling Salesman Problem
Also see an animation at: https://en.wikipedia.org/wiki/Travelling_salesman_problem

Although your problem is a relaxed version, Traveling Salesman is a classic problem and, IIRC, was only recently shown to be NP Hard, rather than the long-standing assumption of being NP Complete.

Have Fun!
Tom
I started to read a lot about the different methods for solving this problem. I think I'm going to use the one that requires Marcov's chains.
Thanks a lot
 
JorgeM said:
I started to read a lot about the different methods for solving this problem. I think I'm going to use the one that requires Marcov's chains.
Thanks a lot
A Google search combining 'TSP' and 'Markov chains' found several interesting papers including this heuristic algorithm paper from 1991 where Markov chains embed in the Monte Carlo search method.

It has often been the case that progress on the TSP has led to progress on other combinatorial optimization (CO) problems and on more general optimization problems. In this way, the TSP is a playground for the study of NP-complete problems. Though the present work concentrates on the TSP, a number of our ideas are general and apply to all optimization problems.
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
2K
Replies
29
Views
6K
Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
10
Views
4K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 0 ·
Replies
0
Views
2K
Replies
1
Views
2K
  • · Replies 15 ·
Replies
15
Views
4K