Divide-and-conquer algorithm
Builds on AlgorithmRecurrence relation
Definition
Let be a set of problem instances with a size function . A divide-and-conquer algorithm on is a recursive algorithm given by:
- a direct method that solves every instance of size at most a constant ;
- a divide step that maps each instance with to finitely many instances of with ;
- a combine step that computes the solution of from the solutions of .
On an instance of size greater than , the algorithm divides, solves each recursively, and combines.
Remarks
Clause 2 makes the recursion terminate, since the sizes strictly decrease in . If dividing and combining cost and each subproblem has size about , the running time satisfies the recurrence .
Example: Karatsuba multiplication of two -digit numbers writes and with a power of the base of about half the length, and uses . This needs three recursive products of about half size instead of four, so and .
Non-example: a recursion that reduces an instance of size to an instance of the same size fails clause 2, and it need not terminate.
Reading path
To understand this page from the ground up, read these 3 pages in order. The foundations come first.
Show the path as a graph
- no evidence level
- Algorithm concept
- Recurrence relation concept
- Divide-and-conquer algorithm definition
Further reading
About this page
| Tag | ZYDZME1BH3 |
|---|---|
| URI | m2://ZYDZME1BH3 |
| Kind | definition |
| Writing | W0 stub |
| MSC | 68W40, 68W01 |
| Defines | Divide-and-conquer algorithm |
| Uses | Algorithm, Recurrence relation |
| Changed | 3 November 2026 |
Markdown · JSON · Edit on GitHub
What this page needs for W1
- an inventory row: the row of the inventory that the node accounts for (0 of 1)
- a source with a locator (0 of 1)
The writing levels say how complete the text of a page is. They do not measure its truth.
What links here
No page links to this page yet.