Karatsuba Multiplication: Three Recursive Products, Operation Counts and the Schoolbook Crossover
Multiply two large random numbers digit by digit with Karatsuba's trick of three half-size products instead of four. Set the number of digits, the cutoff where the algorithm falls back to schoolbook, and the relative cost of additions to see the recursion tree grow as Blender bricks, the counted multiplications and additions, the total work compared with schoolbook, and the crossover length. The product is checked against exact big-integer arithmetic.
Multiply two large random numbers digit by digit with Karatsuba's trick of three half-size products instead of four. Set the number of digits, the cutoff where the algorithm falls back to schoolbook, and the relative cost of additions to see the recursion tree grow as Blender bricks, the counted multiplications and additions, the total work compared with schoolbook, and the crossover length. The product is checked against exact big-integer arithmetic.
Multiply two large random numbers digit by digit with Karatsuba's trick of three half-size products instead of four. Set the number of digits, the cutoff where the algorithm falls back to schoolbook, and the relative cost of additions to see the recursion tree grow as Blender bricks, the counted multiplications and additions, the total work compared with schoolbook, and the crossover length. The product is checked against exact big-integer arithmetic.
3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install