Decision Problems are Polynomial Time Equivalent to their Reporting Problems
Example: Subset sum
- Decision Problem: Determine if a subset sum exists.
- Reporting Problem: Determine if a subset sum exists and report one if it does.
Using decision to report
- Let subset-sum(A,b) return true if some subset of A adds up to b. Otherwise it returns false.