I have a set of points and a distance function applicable to each pair of points. I would like to connect ALL the points together, with the minimum total distance. Do you know about an existing algorithm I could use for that ?
Each point can be linked to several points, so this is not the usual “salesman itinerary” problem 🙂
Thanks !
What you want is a Minimum spanning tree.
The two most common algorithms to generate one are: