ECE 606, Fall 2019, Assignment 10: Zhijie Wang, Student ID Number: 20856733 Zhijie - Wang@uwaterloo - Ca November 19, 2019
ECE 606, Fall 2019, Assignment 10: Zhijie Wang, Student ID Number: 20856733 Zhijie - Wang@uwaterloo - Ca November 19, 2019
[email protected]
November 19, 2019
1. Proof. Suppose s ≤k t and let m1 be the polynomial time reduction function such that x ∈ s if and only
if m1 (s) ∈ t. Similarly, suppose t ≤k u and let m2 be the polynomial time reduction function such that
x ∈ t if and only if m2 (x) ∈ u. Then we can compute m2 ◦ m1 in polynomial time, and x ins if and only
if m2 (m1 (x)) ∈ u.
Therefore, s ≤k u, which means ≤k is transitive.
2. Proof. By construction. We propose the following mapping m. Given an instance < G =< VG , EG >
, H =< VH , EH >> of Iso, we first check if |VG | = |VH | and |EG | = |EH |, then m directly maps < G, H >
as the instance of SubIso, else, removed a vertex from G as G0 , then m maps < G, H > to < G, G0 >.
We first observe that m is computable in time polynomial in the size of G and H.
For the “only if” direction, suppose G and H is isomorphic, then, G and H must have the same size of
vertexes and edges, < G, H > must be a true instance of SubIso.
For the “if” direction, suppose G and H is not isomorphic, then, we do a case analysis. 1) If G and H
has the same size, for the purpose of contradiction, H has a subgraph which is isomorphic to G, then G is
also isomorphic to H because they have the same vertexes and edges numbers, which is a contradiction.
2) If G and H don’t have the same size, for the purpose of contradiction, G0 has a subgraph which is
isomorphic to G, then the size of G0 must not less than G, which is a contradiction.
Therefore, Iso ≤k SubIso.
3. (a) Since HamPath ≤k HamPathStartEnd, if we can prove HamPathStartEnd ≤k HamCycle,
then, HamPath ≤k HamCycle.
Proof. By construction. We propose the following mapping m. Given an instance < G =< V, E >
, a, b > of HamPathStartEnd, introduce two new vertexes x, y ∈ / V . Let V 0 = V ∪ {x, y}, then
introduce three new edges < x, a >, < b, y >, < x, y >. Let G =< V, E 0 >. The function m maps
0
1
Therefore, HamCycle ≤k HamPathStartEnd, HamCycle ≤k HamPath.
4. Proof. First, we define a decision problem UNSAT: given a boolean formula in propositional logic, is it
unsatisfiable?
Then, for every input f of UNSAT, we can simply maps it to ¬f , therefore, SAT ≤c UNSAT because
SAT can be polynomial-time if UNSAT is polynomial-time.
Hence, a formula f is unsatisfiable if and only if ¬f is tautology, therefore, UNSAT can be polynomial-time
if Taut is polynomial-time, UNSAT ≤c Taut.
Finally, SAT ≤c UNSAT ≤c Taut, then, SAT ≤c Taut.