alg. Long Multiplication. (grade school) algorithm
- Complexity: Time .
alg. Karatsuba Multiplication. Recursive algorithm to compute
- Idea: To get …
- Let be digits of , and observe:
-
- Recurse Compute …(1)
- Recurse Compute …(2)
- To compute the middle term, instead of computing we do:
- Recursively compute …(3)
- (3) subtract (1) and (2) to get middle term
- Let be digits of , and observe:
- Complexity
- Time:
- Span: (by parallelzing all 3 recursive calls)
alg. Lattice Multiplication. Developed for longer integer hand-calculation.