# Divide and Conquer

> Source: https://modeladay.com/models/divide-and-conquer/
> Category: principle | Topics: systems, cognition, decision | Difficulty: 3/5

## Definition

Divide and conquer splits an input into smaller instances of the same problem, repeats the method until the smallest cases can be solved directly, and combines the results for the original input.

## Core Rule

Divide and conquer splits an input into smaller instances of the same problem, repeats the method until the smallest cases can be solved directly, and combines the results for the original input.

## Opening Context

Picture a book fair about to open, with four thousand registration cards still on the desk. The cards have to go in name order so people can find theirs when they arrive. One volunteer picks up a card at a time and slides it into the right place in the stack he's holding.

The first hundred go quickly, but then the stack grows and he spends longer finding each spot. People are nearly at the door, and several piles haven't been touched. Will he get through them in time?

Divide and conquer means breaking a big job into smaller jobs of the same kind, then combining the results by a clear rule. Let's follow the cards as the organizer hands them out and brings them back together.

## How It Works (Preview)

Before the volunteer picks up another card, see how much room you could give his hands. Split the stack into smaller stacks that still need the same kind of sorting. Keep splitting until you can sort each piece directly. Then use the same rule to bring the pieces back one level at a time.

Computers have been doing this for decades. John von Neumann is usually credited with describing merge sort in 1945. The program halves a list until each piece has one item, then merges those pieces in pairs. Plenty of sorting programs still work that way.

## When It Fails (Preview)

Some jobs only look independent while the pieces are on separate desks. Find out where they overlap before you divide them up.

## Full Lesson, Audio & Practice

Get the full Divide and Conquer 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/divide-and-conquer/

## Related Mental Models

- [Binary Search](https://modeladay.com/models/binary-search/)
- [Dynamic Programming](https://modeladay.com/models/dynamic-programming/)
- [Issue Tree](https://modeladay.com/models/issue-tree/)
