Taken from Wikipedia but all definitions I have seen are similar to this:
"NP is the set of decision problems where the "yes"-instances can be accepted in polynomial time by a non-deterministic Turing machine."
Why is NP restricted to only decision problems? Is it?
Lets take subset sum as an example:
(type 1) Decision problem - Is there a subset B of A that sums up to k?
(type 2) "Normal" problem - what is the subset B of A that sums up to k?
I write "Normal" on type 2 there because that feels like what you usually do when you solve such a problem.
Am I right in understanding, using the definition of NP, that type 1 is in NP while type 2 is not?
It feels like the definition would work equally well in the way it is sometimes written informally
"All problems whose solutions can be checked in polynomial time".
(I found a similar question but it didn't really seem to answer this question)