Knuth's Algorithm X: Difference between revisions

Content deleted Content added
Undid revision 628697599 by 152.3.136.242 (talk)
Erroneous algorithm. Got correct algorithm from http://www.ams.org/samplings/feature-column/fcarc-kanoodle
Line 5:
:{| border="1" cellpadding="5" cellspacing="0"
|
# If the matrix ''A'' ishas emptyno rows, the problemcurrent partial solution is solvedinvalid; terminate successfullyunsuccessfully.
# If the matrix ''A'' has no columns, the current partial solution is a valid solution; terminate successfully.
# Otherwise choose a column ''c'' ([[deterministic algorithm|deterministically]]).
# Choose a row ''r'' such that ''A''<sub>''r'', ''c''</sub> = 1 ([[nondeterministic algorithm|nondeterministically]]).