top | item 39562309

(no title)

r34 | 2 years ago

As a complete amateur I was wondering if it could be possible to use that property of light ("to always choose the most optimal route") to solve the traveling salesman problem (and the whole class of those problems as a consequence). Maybe not with an algorithmic approach, but rather some smart implementation of the machine itself.

discuss

order

shiandow|2 years ago

If somehow you can ensure that light can only reach a point by travelling through all other points then yes.

It's basically the same way you could use light to solve a maze, just flood the exit with light and walk in the direction which is brightest. Works better for mirror mazes.

pvg|2 years ago

Google up 'soap film steiner tree' for a fun, well-known variant of this.

nkozyra|2 years ago

This sounds a bit like LIDAR implementations, I assume you mean something similar at a smaller scale, where physical obstacles provide a "path" representation of a problem space?

r34|2 years ago

Yup, something like that came to my mind first: create a physical representation (like a map) of the graph you want to solve and use physics to determine the shortest path. Once you have it you could easily compute the winning path's length etc.