← back to legend
Physical / electrical concepts

Maze routing (Lee's algorithm)

1961 method: flood outward from the start pin cell by cell until you hit the target, then trace back. Always finds a path if one exists; slow on big boards.

How it looks

Drawing: a routing grid, not a part of CORE3588
partpart11112222222333333334444444555555566666677778889991010101111121213131414141515151616161717171718181818181919191919AB
Lee's method is a procedure, not a physical object, so this is a drawing: the finished ripple (numbers = steps from A, 83 squares filled) and the shortest path it found (amber). A real router does the same on a grid of tens of thousands of squares per layer, about 0.025 to 0.1 mm each (a lattice).

How it works

partpart11112222222111122222223333333344444445555555666666777788811112222222333333334444444555555566666677778889991010101111121213131414141515151616161717171718181818181919191919ABA and B are two pads to join. Grey blocks are parts the copper must avoid.each number = steps from Awave reached B in 19 steps after filling 83 squarestrace back: always step to a square one number lowerthe shortest possible path: 19 squares long

Where it fits

Lee is the oldest way to find one path for one connection. A* search finds the same path while looking at far fewer squares, and a cost function lets the path prefer fewer vias or bends, not only fewer steps.

It routes one connection at a time, so the order matters (net ordering) and stuck nets need rip-up and reroute or negotiation.

← back to legend