Content deleted Content added
m →Trémaux's algorithm: grammar/usage - 'fewest'='lowest number of' - no need for the double entry |
|||
Line 33:
== Trémaux's algorithm ==
[[File:Tremaux Maze Solving Algorithm.gif|thumb| Trémaux's algorithm. The large green dot shows the current position, the small blue dots show single marks on paths, and the red crosses show double marks. Once the exit is found, the route is traced through the singly-marked paths.]]
Trémaux's algorithm, invented by [[Charles Pierre Trémaux]],<ref>Public conference, December 2, 2010 – by professor
A path from a junction is either unvisited, marked once or marked twice. The algorithm works according to the following rules:
* Mark each path once, when you follow it. The marks need to be visible at both ends of the path. Therefore, if they are being made as physical marks, rather than stored as part of a computer algorithm, the same mark should be made at both ends of the path.
|