Warnsdorff's algorithm

Warnsdorff's algorithm

Warnsdorff's algorithm is a heuristic method for solving the Knight's Tour. The algorithm was first described in "Des Rösselsprungs einfachste und allgemeinste Lösung" by H. C. Warnsdorff in 1823.

Warnsdorf's rule was to always choose the next square that had the fewest possible further knight's moves. This more generally can be applied to any graph, by always choosing the next node that has smallest degree. Pohl generalized this by adding a rule for breaking ties. Although the Hamiltonian path problem is NP-hard in general, on many graphs that occur in practice this linear-time heuristic is able to successfully locate a solution. The knight's tour is a special case.

External links

* [http://web.telia.com/~u85905224/knight/eWarnsd.htm Warnsdorff's rule]
*cite journal|last = Pohl|first = Ira|title = A method for finding Hamilton paths and Knight's tours|journal = Communications of the ACM|volume = 10|issue = 7|date = July 1967|pages = 446–449|url = http://portal.acm.org/citation.cfm?id=363463|doi = 10.1145/363427.363463
* [http://www.slac.stanford.edu/cgi-wrap/getdoc/slac-pub-0261.pdf Preprint of Pohl's paper (freely accessible)]


Wikimedia Foundation. 2010.

Игры ⚽ Поможем сделать НИР

Look at other dictionaries:

  • Min-conflicts algorithm — The min conflicts algorithm is a search algorithm to solve constraint satisfaction problems (CSP problems). It assigns random values to all the variables of a CSP. Then it selects randomly a variable, whose value conflicts with any constraint of… …   Wikipedia

  • Knight's tour — The Knight s Tour is a mathematical problem involving a knight on a chessboard. The knight is placed on the empty board and, moving according to the rules of chess, must visit each square exactly once. olutionsThere are a great many solutions to… …   Wikipedia

  • Springerproblem — Grafische Lösung Animierte Lösung Das Springerproblem i …   Deutsch Wikipedia

  • Warnsdorffregel — Grafische Lösung Animierte Lösung Das Springerproblem ist ein kombinatorisches Problem, das darin besteht, für einen Springer auf einem leeren Sc …   Deutsch Wikipedia

  • List of mathematics articles (W) — NOTOC Wad Wadge hierarchy Wagstaff prime Wald test Wald Wolfowitz runs test Wald s equation Waldhausen category Wall Sun Sun prime Wallenius noncentral hypergeometric distribution Wallis product Wallman compactification Wallpaper group Walrasian… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”