8 Reducibility
8 Reducibility
Reducibility
1 Reducibility
Definition Reduction: transforming one problem into another, such that the solution to the second problem
yields the solution to the first one.
solve A(. . .)
...
...
solve B(. . .)
...
...
return
• If B can be solved, then A can be solved.
• Or, negatively, if A is unsolvable, then B is unsolvable.
Notation: A ≤ B:
• A can be reduced to B.
• A is no harder than B.
Example
solve Ld (. . .)
...
...
solve AT M (. . .)
...
...
return
Ld ≤ AT M
Proof by reduction of AT M
Assume HALTT M decidable by some decider R. Then we can construct a decider S for AT M with
Algorithm 1.
Algorithm 2 M1 on x
if x 6= w then
reject
else
Run M on < w >
if M accepts w then
accept
else if M rejects w then
reject
end if
end if
∅, if w 6∈ L(M )
L(M1 ) =
{w}, if w ∈ L(M )
Now, assume ET M is decidable by some TM R. We can construct a decider S for AT M using
Algorithm 3.
2
Let R be a decider TM that decides REGU LART M , and let S be a decider for AT M .
is undecidable.
L(M ) ⊆ Σ∗
T rivial properties
L(M ) ⊇ ∅
Example