ABSTRACT

Standard integer multiplication (the grade-school method) operates in time. By utilizing the Divide and Conquer paradigm and clever algebraic identities, Karatsuba’s Algorithm reduces the number of recursive multiplications required, breaking the quadratic barrier.

Grade-School Multiplication ()

The traditional method relies on computing partial products for each digit and then summing them.

  • Mechanism: Each of the digits of the first number is multiplied by each of the digits of the second number.
  • Cost: This results in single-digit multiplications and work in additions (accounting for carries).

The Divide and Conquer Approach

To multiply two -digit numbers and , we split them into their high-order () and low-order () halves:

The product is expanded as:

1. Naive Divide and Conquer

If we compute the four products () directly:

  • Recurrence:
  • Analysis: By Master Theorem (), since , the runtime is .
  • Verdict: No asymptotic improvement over the grade-school method.

Karatsuba’s Algorithm ()

Anatolii Karatsuba discovered that we don’t need all four products separately. We only need the sum of the middle terms .

The Algebraic Trick

Instead of four multiplications, we perform three:

The middle term is then derived via subtraction:

Recurrence Runtime

Because we reduced the number of recursive calls from to :

Using Master Theorem:

  • Since (Case 3), the complexity is . → Result: .

Comparison of Methods

MethodRecurrenceComplexityEfficiency
Grade-SchoolN/ABaseline
Naive D&CNo gain
KaratsubaSignificantly Faster