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

  1. Divide: Break the problem into smaller instances of the same problem.
  2. Conquer: Solve sub-problems recursively. If they are small enough (base case), solve them directly.
  3. 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 RMerge helper.
  • 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

AlgorithmRecurrenceBig-OStrategy
Binary SearchDecrease and Conquer
Merge SortBalanced splitting
Naive Mult.Simple splitting
KaratsubaOptimized splitting

Folder Contents

2 items under this folder.