Facets of Reductions
[cpsc/reduction-facets]
Facets of Reductions [cpsc/reduction-facets]
Reductions are helpful!
Method: find a way to map:
- yes-instances of to yes-instances of
- no-instances of to no-instances of
- Notation:
- Logic: if is easy, is easy
- Contrapositive: if is hard, is hard
- Theorem.
-
If and , then .
- There is a polytime Turing machine N that decides .
- There is a polytime reduction from to .
- Proof.
-
We want a Turing machine that decides in polynomial time.
- On input : compute and then simulate on input . Accept iff accepts.
- If .
- If .
Question. If we know reduces to and is in , is in ?
Answer. Yes, is a subset of . Mind the direction!
When we talked about Turing machines, we had a notion of what it meant to be hard: undecidability. But now we’re talking about NP. So which problems in NP are hard?
Maybe , and so all problems in NP are easy.