Remix.run Logo
▲ eru a day ago

> Let's assume the worst case: We prove P=NP, and it's a constructive proof that turns out to have a almost trivial algorithm.

It's doesn't need to be a constructive proof: we already have constructed the optimal algorithms for solving NP hard problems. So in a sense, any proof immediately gives you a construction via this well known result.

(These optimal algorithms are known and proven to be optimal, but no one knows their runtime. And, yes, the constant factors are abysmal.)

▲bluGill a day ago | parent [-]

NP it's normally used to mean a level below NP hard though.

▲eru a day ago | parent [-]

Sorry, what do you mean? These things have formal definitions, but I'm also aware that informal meanings are handy.

(Eg how you informally mean NP minus P when you just say 'NP' problems.)

▲bluGill 16 hours ago | parent [-]

I haven't looked at the formal definitions in a long time. As I recall P=NP refers to NP complete, not NP hard.

▲eru 4 hours ago | parent [-]

I think you are right. Sorry, I'm always mixing up NP-hard and NP-complete.

If I looked up the definitions right: NP-hard problems can be outside of NP, they just have to be able to help you solve all NP problems. NP-complete problems need to be in NP.

So the halting problem is NP-hard, but harder than NP-complete.

As an additional wrinkle: all of these definitions are for decision problems, ie where the answer is just a single bit. But it's usually relatively easy to adapt everything so that you can extract more than a single bit. (Eg by running lots of slightly altered problems and piecing the answer together from that.)

To give a silly example: we say that sorting is in P, but the output of sorting a list is a whole permutation, not just a single bit.