All books

Professional

Apps About Coach Log in Start reading

Computer Science · Glossary

What is Exhaustive search?

Also known as: brute force

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

An exhaustive search, or brute force, solves a problem by generating every candidate solution and testing each.

The include/exclude tree for \a, b, c\: each level decides one item; the eight leaves (shaded) are the subsets, in the order the recursive generator yields them. The tree has 24 - 1 = 15 nodes.
The include/exclude tree for {a,b,c}\{a, b, c\}: each level decides one item; the eight leaves (shaded) are the subsets, in the order the recursive generator yields them. The tree has 24−1=152^4 - 1 = 15 nodes.
Read in context →