That's not true, if P was equal to NP, then public key cryptography would definitely be broken (most definitions of current cryptographic methods require exponential breaking time to be considered secure, though your overall point still stands).
Obviously an algorithm for producing an equivalent polynomial-time algorithm given any nondeterministic polynomial-time algorithm would prove P = NP, but is there any reason to believe the proof would take this form, or if it did, that the algorithm generating algorithm would run in a reasonable amount of time, or produce efficient polynomial-time algorithms?
Even knowing p=np would not change anything that fast. As I understand it, it just tells that P will grow polynomial with the difficulty rising. It doesn't tell "it's easy" or "can be made with less compute". For breaking the RSA you would need factorization of the multiplication of two big prime numbers
For a concrete example, parsing an ambiguous context-free grammar is O(n³). Not only is this in P, 3 is about as small as you can hope for an exponent to be.
We find that exponent of 3 so onerous that we devote all our efforts to developing unambiguous grammars instead.
Various gross programming errors come from using an O(n²) algorithm - quadratic time is considered the practical worst case for sorting algorithms, n+1 database queries are bad because they're quadratic, returning-to-the-paint-pot ( https://martynplummer.wordpress.com/2015/10/16/shlemiel-the-... ) is bad because it's quadratic...
> Most of the discourse around "polynomial time" assumes that "polynomial time" means "linear".
This is not true. The discourse assumes not galactic/feasible before heat death of the universe. We want to avoid n^3 for random grammars we parse all the time. For cracking cryptography, even if it's onerous enough to require like a year of supercomputer time to crack a single one, there are high value targets that make it worth it
Replies (2)
Replies (1)
Replies (2)
Replies (1)
Obviously an algorithm for producing an equivalent polynomial-time algorithm given any nondeterministic polynomial-time algorithm would prove P = NP, but is there any reason to believe the proof would take this form, or if it did, that the algorithm generating algorithm would run in a reasonable amount of time, or produce efficient polynomial-time algorithms?
Replies (1)
Replies (1)
Replies (1)
We find that exponent of 3 so onerous that we devote all our efforts to developing unambiguous grammars instead.
Various gross programming errors come from using an O(n²) algorithm - quadratic time is considered the practical worst case for sorting algorithms, n+1 database queries are bad because they're quadratic, returning-to-the-paint-pot ( https://martynplummer.wordpress.com/2015/10/16/shlemiel-the-... ) is bad because it's quadratic...
Rockstar made the news by putting quadratic-time bugs into the loading screen for GTA Online: https://nee.lv/2021/02/28/How-I-cut-GTA-Online-loading-times...
Most of the discourse around "polynomial time" assumes that "polynomial time" means "linear".
Replies (1)
This is not true. The discourse assumes not galactic/feasible before heat death of the universe. We want to avoid n^3 for random grammars we parse all the time. For cracking cryptography, even if it's onerous enough to require like a year of supercomputer time to crack a single one, there are high value targets that make it worth it
Continue this thread (2 replies) →