I need to find an algorithm, independently from the language , that allow to order a sequence of points.
I try to explain. I have a sequence of points, of which i know the X,Y coordinates in a cartesian 2D space, like in the attached figure.
In this sequence the human eye can easily find a route, starting from one of the point. As following crumbs!
How can I order the points in this way? In other words how can I teach to a computer to recognaise a sequentiality in a series of points?
Of course just the human can see the points; the computer see only a table with the coordinates of each point.
Any suggestion? Please help
Thanks a lot.
Attached File(s)

points.bmp (576.05K)
Number of downloads: 124