All books

Professional

Apps About Coach Log in Start reading

Computer Science · Glossary

What is Partial solution, tree of partial solutions, backtracking?

Also known as: partial solution · tree of partial solutions · backtracking

Definition 20.2 University Computer Science — Year 1 · Chapter 20 — Exhaustive Search and Backtracking

A partial solution is a sequence of choices that a complete solution may extend. The tree of partial solutions has the empty sequence as its root, and as children of a node its extensions by one choice. Backtracking explores this tree depth first, abandoning a node, and its whole subtree, as soon as the partial solution cannot be extended into a valid one.

Read in context →