logoalt Hacker News

avmichtoday at 5:51 AM2 repliesview on HN

We can likely use different number representations for faster results. E.g. numbers in the form of coefficients to prime factors can be multipled at O(n) time, right?


Replies

zeroonetwothreetoday at 6:16 AM

True but addition becomes a lot less efficient in this representation :)

show 1 reply
necovektoday at 5:53 AM

You mean like those guaranteed-always-compresses-by-at-least-one-bit algorithm patents gzip page made fun of?

In your case, doing prime factoring is where the cost would be, wouldn't it?

show 1 reply