ABSTRACT
Divide and Conquer is a recursive paradigm that breaks a problem into independent sub-problems, solves them recursively, and combines the results. It is the primary strategy for breaking the “quadratic barrier” () in fundamental algorithms.
The Three Pillars of D&C
- Divide: Break the problem into smaller instances of the same problem.
- Conquer: Solve sub-problems recursively. If they are small enough (base case), solve them directly.
- Combine: Merge the sub-problem solutions into the final answer.
Knowledge Map
Merge Sort
- Concept: An sorting algorithm that halves the input and merges sorted results.
- Key Logic: Uses a linear-time
RMergehelper. - Formal Verification: Requires Strong Induction for the main sort (due to shrinkage) and Regular Induction for the merge helper.
Fast Multiplication
- Concept: Moving beyond the “grade-school” multiplication method.
- The Karatsuba Breakthrough: Reduces the number of recursive multiplications from 4 to 3 using algebraic identities.
- Complexity: Achieves via the Master Theorem Case 3 ().
Complexity Overview
| Algorithm | Recurrence | Big-O | Strategy |
|---|---|---|---|
| Binary Search | Decrease and Conquer | ||
| Merge Sort | Balanced splitting | ||
| Naive Mult. | Simple splitting | ||
| Karatsuba | Optimized splitting |
Related Toolkits
- Recursive Proofs: Understanding why D&C requires Strong Induction.
- Master Theorem: The standard tool for solving D&C recurrences.