logoalt Hacker News

tavavex • today at 12:26 AM • 5 replies • view on HN

My mind struggles to imagine what a world where P=NP would look like. Is there any speculative writing about this? Even if said polynomial time to prove something isn't practical, it would still probably have far-reaching consequences.


Replies

skissane • today at 12:54 AM

> My mind struggles to imagine what a world where P=NP would look like.

I think a world with an O(n^1000) algorithm for an NP-complete problem would look pretty similar to our own.

➕ show 1 reply
margalabargala • today at 12:31 AM

It depends.

If P=NP with a trivial algorithm? Unplug every internet connected device you own and live like it's the 70s again for at least a year.

If P=NP but the algorithm has constants such that it is worse than brute force on equations where the number of variables has fewer than a million digits? Nothing tangibly changes.

➕ show 1 reply
hnfong • today at 6:24 AM

Here's some speculative writing:

If P=NP, then once you know what the desired solution looks like, your solution isn't far away.

"Ask, and it shall be given you; seek, and ye shall find; knock, and it shall be opened unto you" -- Matthew 7:7

In fact, once you realize the "trouble" with NP problems is that they're discrete and combinatorial, meaning that there's no general way to "get closer" to a solution, unlike more continuous problems where you can simply look at the slopes and find a (local) minima easily -- these days we call this gradient descent.

AI breakthroughs in the past decade were in a large part due to the realization that gradient descent goes a very long way if you get enough data and compute.

If P=NP then perhaps even combinatoric problems would get a similar boost.

NooneAtAll5 • today at 1:15 AM

> Is there any speculative writing about this?

look up "The golden ticket : P, NP, and the search for the impossible" book