next up previous
Next: Up: Previous:

Decision Problems

A decision problem is a problem whose solution set S = {no, yes} or {0, 1}.

Example: Path decision problem

Instance:
graph G
vertices u and v
non-negative integer k



Solution:
1, if path u $\leadsto$ v with length at most k
0, otherwise


next up previous
Next: Up: Previous: