This is related to the P-NP problem, but it's not a decision problem, so it's a bit different.
This doesn't really matter. The reason we formally define complexity classes based on decision problems is simply because they are simpler to work with. But any functional problem with output size k is equivalent to log(k) instances of a decision problem. So for the interesting complexity classes functional problems and decision problems can in practice be used interchangeably, and also often are when we are being less formal.
View all comments
Show parent comment
3
u/poizan42 Feb 26 '17 edited Feb 26 '17
This doesn't really matter. The reason we formally define complexity classes based on decision problems is simply because they are simpler to work with. But any functional problem with output size k is equivalent to log(k) instances of a decision problem. So for the interesting complexity classes functional problems and decision problems can in practice be used interchangeably, and also often are when we are being less formal.