Overview
Algorithm X applies choosing a constraint column and recursively trying rows that satisfy it to handle exact cover search with a named, inspectable procedure.
Algorithm X uses choosing a constraint column and recursively trying rows that satisfy it for exact cover search.
Compact metadata for implementation and discovery.
Algorithm X applies choosing a constraint column and recursively trying rows that satisfy it to handle exact cover search with a named, inspectable procedure.
Quick facts
Runtime and memory behavior at a glance.
Best
O(1)
Average
O(n)
Worst
O(n)
Space
O(1)
Show choosing a constraint column and recursively trying rows that satisfy it on a small exact cover search example.
Algorithm X operates in O(n) time and O(1) space within the Exact Cover family. Often compared with Greedy Set Cover and Dancing Links.
What each reference supports for this entry.
Classic reference for exact cover search and Algorithm X-style backtracking.
Knuth paper connecting Algorithm X with efficient exact-cover search using linked-list updates.
Open sourceGood next jumps from the relationship graph, ranked for useful discovery.
Optimization · Core
Both address exact cover search, but they make different modeling or performance tradeoffs.
Compare with thisOptimization · Extended
Both address exact cover search, but they make different modeling or performance tradeoffs.
Compare with thisBoth address exact cover search, but they make different modeling or performance tradeoffs.
Algorithm X is often paired with Dancing Links in exact cover search workflows.
Both address exact cover search, but they make different modeling or performance tradeoffs.