Skip to content

Glossary: Algorithms Beyond the Basics in JavaScript

Backtracking

A way to list every possible answer by building it one choice at a time: choose, explore, then undo the choice. Priya's gift-box search uses it to try combinations of items.

Where the book teaches it

Related terms

Choice treePruningSubsetPermutation