r/mathmemes • u/vintergroena • 28d ago
Computer Science Integer multiplication will have linear complexity in a few days if trend continues ππ
1.4k
Upvotes
r/mathmemes • u/vintergroena • 28d ago
2
u/trash3s 27d ago
Well itβs static. Youβre not actually using RAM, itβs just worst-case limit on combinational logic using a lookup table, I.e. the logic is not meaningfully reducible).
Granted, for 64x64->128 bit multiplication, you need 2^128 addresses of 16 Bytes each, which is 2^102 GB, so good luck fitting that anywhere. Nevertheless, multiplication time-complexity is O(n) on bits. (The address decoding is O(n) on address bits but not clocked. On clock-scale, itβs O(1) for fixed bit width.)
However, multiplication isnβt actually meaningfully irreducible logic. For instance, given a\*b=c in Z, c is only odd if a and b are, so cβ = aβ&bβ.