Hi all, one for the maths enthusiasts out there. I work with lasers, and I’ve generated a series of points. I need to find a way to reorder them such that the line visits all points once and returns back to the start [otherwise known as the travelling salesman algorithm] (Travelling salesman problem - Wikipedia). If I can do this the laser will be able to cover more points without flickering and would be a real lifesaver. Anyone know of a way of doing this, starting from a CHOP with x and y channels for the coordinates, each sample being a point?

Thanks