Knuth's Algorithm X: Difference between revisions

Content deleted Content added
Rob Zako (talk | contribs)
Algorithm X is a backtracking algorithm, not a brute-force algorithm
Sunnan (talk | contribs)
it's older than 2000, c.f. Knuth's paper on dancing links among others (where k. refers to dlx being used in 1999). it's just knuth's name for "trial-and-error"
Line 1:
[[Donald Knuth]]'s '''Algorithm X''', first presented in November of 2000, is a [[recursion (computer science)|recursive]], [[Nondeterministic_algorithm|nondeterministic]], [[depth-first]], [[backtracking]] [[algorithm]] that finds all solutions to the [[exact cover]] problem represented by a matrix ''A'' consisting of 0s and 1s.
The goal is to select a subset of the rows so that the digit 1 appears in each column exactly once.