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

Click For Summary
The discussion centers on solving a pathfinding problem involving N points on an X-Y plane, where the goal is to pass through each point at least once while minimizing the total distance traveled. The only known starting point is (0,0). Participants suggest that the problem resembles the Traveling Salesman Problem (TSP), which is a well-known NP-hard problem in combinatorial optimization. While Dijkstra's algorithm is mentioned, it is clarified that it is not suitable for this scenario since it focuses on finding the shortest path between two points rather than covering multiple points. One participant expresses interest in using Markov chains as a potential method for solving the problem, referencing relevant literature that explores heuristic algorithms combining TSP with Monte Carlo methods. The TSP is highlighted as a foundational problem that has implications for broader optimization challenges.
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 throught 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 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.
 
Learn If you want to write code for Python Machine learning, AI Statistics/data analysis Scientific research Web application servers Some microcontrollers JavaScript/Node JS/TypeScript Web sites Web application servers C# Games (Unity) Consumer applications (Windows) Business applications C++ Games (Unreal Engine) Operating systems, device drivers Microcontrollers/embedded systems Consumer applications (Linux) Some more tips: Do not learn C++ (or any other dialect of C) as a...

Similar threads

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