Imagine a wide floor scattered with square pillars. You stand at one spot and want to reach the door by the shortest walk possible, without passing through any pillar. Which way do you go?
There is a wonderfully physical answer. Tie a string from your start to the goal and pull it taut. It snaps against the corners of the pillars in its way, and what remains is the shortest obstacle-free route. The taut string never curves in open space — it travels in straight segments and only ever bends at a corner of an obstacle.
That single observation is the whole secret. Because the optimal path only turns at corners, we never have to consider the infinitely many points of the floor — just the start, the goal, and the obstacle corners. A continuous geometry problem collapses into a small, finite graph we can search quickly and exactly.
Comments
Loading comments...