# Brute Force

> Source: https://modeladay.com/models/brute-force/
> Category: principle | Topics: decision, science | Difficulty: 3/5

## Definition

Brute force skips cleverness: list every candidate, check each one, and stop when you find the answer or confirm there is none. If the candidates are finite, it always delivers a result you can verify. The cost grows with the number of candidates, and combinations can quickly swell beyond what you could ever test.

## Core Rule

Brute force skips cleverness: list every candidate, check each one, and stop when you find the answer or confirm there is none. If the candidates are finite, it always delivers a result you can verify. The cost grows with the number of candidates, and combinations can quickly swell beyond what you could ever test.

## Opening Context

Say you have a train to catch tomorrow, and tonight you realize you've forgotten your suitcase code. It's a three digit lock, so you could spend half an hour looking for a shortcut online. Or you could start at zero zero zero and tug the latch after every number.

You put a thumb on the dial and wonder if this is a silly way to spend your evening. But could you open the suitcase in the time it takes to look up a better method?

This is brute force, or exhaustive search: list all the possible answers and test them one at a time. We'll work out how long that would take here, then see what happens when the list gets away from you.

## How It Works (Preview)

Before you turn the first dial, think about what you'll know at the end. If the list is finite and you can check every entry, you'll either find an answer or rule out every possibility. You can check the result without relying on a flash of inspiration.

The latch gives you an answer with each tug. For a different problem, check whether each candidate is as easy to test. If even one test takes a long time, a short list can become an expensive afternoon.

## When It Fails (Preview)

Even when you can list the possibilities, stop to work out what the search will cost. There are three ways the bill can come as a surprise.

## Full Lesson, Audio & Practice

Get the full Brute Force breakdown, 5-minute audio lesson, interactive mechanism animation, and decision checklist in the ConceptFlow app:
- iOS App Store: https://apps.apple.com/app/conceptflow-mental-models/id6756862333
- Google Play: https://play.google.com/store/apps/details?id=com.juxianyp.conceptflow
- Web page: https://modeladay.com/models/brute-force/

## Related Mental Models

- [Heuristic](https://modeladay.com/models/heuristic/)
- [Permutations and Combinations](https://modeladay.com/models/permutations-and-combinations/)
- [Divide and Conquer](https://modeladay.com/models/divide-and-conquer/)
