by eru · 1w ago · 0 comments
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.
No comments yet.