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.
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
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.
- 01 · Split Use one rule to split the input into smaller instances.
- 02 · Solve base cases Solve inputs directly once they are small enough, then return the results.
- +1 more mechanism steps & animation in the app
When it fails & limits
Some jobs only look independent while the pieces are on separate desks. Find out where they overlap before you divide them up.
Unlock the full Divide and Conquer lesson in ConceptFlow
You’ve read the core idea and opening case. Get the ConceptFlow app to continue through the full breakdown, failure modes, 5-minute audio lesson, and decision practice.
- ▸5-minute English & Mandarin audio lesson
- ▸5 more deep-dive case & mechanism insights
- ▸All 5 failure boundaries & counter-examples
- ▸4-point decision checklist + 6-step practice
Tap a store button on mobile, or scan with your phone camera on desktop.