3 ms·
> > 256-bit ints > And now you're well over the border. Here's my plan. I'll wait a few decades until we have sufficiently-large and powerful quantum computer
by wizeman 4y ago
> > 256-bit ints
> And now you're well over the border.
Here's my plan. I'll wait a few decades until we have sufficiently-large and powerful quantum computers.
Those reduce the time complexity from 2^256 to 2^128 just by being capable of performing sufficiently large quantum computations.
I will precompute a table for 64-bit integers and store the results.
Then for every 256-bit computation of complexity 2^128, I will split the computation in two parts: the first 64 bits of complexity will use raw CPU power to compute, and the last 64 bits will look up the result in the pre-computed table.
Easy peasy. Hah! :)
- PaulHoule 4y agoGet frozen cryogenically and wake up inside a simulation Dyson sphere. (Who needs Venus?) That's what SBF was counting on.
- a1369209993 4y ago> the last 64 bits will look up the result in the pre-computed table. You need 2^64 different tables, one for each of the 2^64 different values of the first 64 bits. Also Grover search does not work that way.
- wizeman 4y ago> Also Grover search does not work that way. I'm curious, what do you mean by this? Do you mean that Grover's algorithm can't speed up algorithms that use disk storage, or do you mean something else?
- a1369209993 4y agoWell, yes (for all practical senses of "disk storage"), but the more general point is that Grover's algorithm applies after other improvements (if not instead of them, which is probably more common). If you have a way to reduce the complexity by a factor of 2^64, you get a classical (brute force) complexity of 2^192, which Grover's algorithm might be able to reduce to 2^96 quantum complexity, at best, assuming the classical optimization doesn't conflict with it. Realistically, the table thing doesn't work at all, so the problems with applying Grover's algorithm don't actually matter. (If you're just brute-forcing a int256_t for any value that makes your for-all predicate fail, Grover works fine to reduce the 2^256 classical operations to O(2^128)-ish quantum operations.)