Lee algorithm
{{Short description|Algorithm based on breadth-first search to solve mazes}}
{{Main|Routing (electronic design automation)}}
The Lee algorithm is one possible solution for maze routing problems based on breadth-first search.
It always gives an optimal solution, if one exists, but is slow and requires considerable memory.
Algorithm
1) Initialization
- Select start point, mark with 0
- i := 0
2) Wave expansion
- REPEAT
- Mark all unlabeled neighbors of points marked with i with i+1
- i := i+1
UNTIL ((target reached) or (no points can be marked))
3) Backtrace
- go to the target point
REPEAT
- go to next node that has a lower mark than the current node
- add this node to path
UNTIL (start point reached)
4) Clearance
- Block the path for future wirings
- Delete all marks
Of course the wave expansion marks only points in the routable area of the chip, not in the blocks or already wired parts, and to minimize segmentation you should keep in one direction as long as possible.
External links
- http://www.eecs.northwestern.edu/~haizhou/357/lec6.pdf
References
- {{Citation
|first= Wayne
|last= Wolf
|title= Modern VLSI Design
|year= 2002
|pages= 518ff
|publisher= Prentice Hall
|isbn= 0-13-061970-1
}}
- {{Citation
|last=Lee
|first= C. Y.
|title= An Algorithm for Path Connections and Its Applications
|journal= IRE Transactions on Electronic Computers
|volume= EC-10
|issue= 3
|pages= 346–365
|year= 1961
|doi=10.1109/TEC.1961.5219222|s2cid= 40700386
}}
- {{Citation
|last=Rubin
|first= F
|title= The Lee Path Connection Algorithm
|journal= IRE Transactions on Electronic Computers
|volume= C-23
|issue= 9
|pages= 907–914
|year= 1974
|doi=10.1109/T-C.1974.224054|s2cid= 32651989
}}
{{DEFAULTSORT:Lee Algorithm}}
Category:Electronic engineering
Category:Electronic design automation
Category:Electronics optimization
Remzi Osmanli
{{Electronics-stub}}