Overview
Constraint satisfaction backtracking tries candidate values, checks constraints early, and backtracks when a partial assignment cannot lead to a solution.
Solves constraint problems by assigning variables recursively and undoing inconsistent choices.
Compact metadata for implementation and discovery.
Constraint satisfaction backtracking tries candidate values, checks constraints early, and backtracks when a partial assignment cannot lead to a solution.
Quick facts
Runtime and memory behavior at a glance.
Best
O(1)
Average
O(d^n)
Worst
O(d^n)
Space
O(n)
valid(partial_assignment, constraints) = trueAllows recursion to continue only when all checked constraints are satisfied.
Plot candidate points, objective values, and improvement steps across iterations.
Constraint Satisfaction Backtracking should be used with the assumptions and tradeoffs of constraint Search in mind.
What each reference supports for this entry.
Reference text for search, local search, beam search, and constraint-satisfaction backtracking.
Open sourceGood next jumps from the relationship graph, ranked for useful discovery.
Graph Traversal · Foundation
Backtracking typically explores assignments through depth-first recursive search.
Compare with thisBoth prune a search tree using constraints or bounds.
Backtracking typically explores assignments through depth-first recursive search.