Polynomial-Time Reductions
Context: FIT2014_MOC · [[Mapping Reductions|]] with a clock attached — the same translator discipline, now used to transport tractability instead of decidability, and the tool that will define NP-completeness
Quick Revision
- 🎯 Objective: a polynomial-time computable with for every ➔ written , read ” is no harder than , up to polynomial cost”.
- 📦 Core Components: the function | the iff chain certifying it | the time bound on computing it — all three are marked, and the third is the one added since Lecture 21.
- ⚡ Key Constraint: every is a , but not conversely — passes through the subset construction and is exponential. Adding the clock genuinely shrinks the relation.
📝 Core
A polynomial-time reduction from to is a polynomial-time mapping reduction: a function , computable in time for fixed , such that for all , . Notation: .
- Aliases, all one thing ➔ polynomial-time mapping reduction · polynomial-time many-one reduction · polynomial transformation · Karp reduction.
- What changed from Lecture 21 ➔ nothing about the logic; is still a total translator that preserves the Yes/No answer and never decides anything. Only the cost of computing is now constrained.
- The output-length lemma ➔ a TM can emit at most one symbol per step, so computable in time forces . This is the hinge of both proofs below — a reduction cannot hand the next machine a super-polynomially large instance.
🔧 Worked reductions
Each is stated as the function, then the iff chain, then the cost. All three parts are marked; a bare function earns nothing.
- ➔ , the complement graph (edges non-edges), untouched.
- Cost ➔ complementing is one pass over the vertex pairs ⟹ .
- ➔ where ; the graph is unchanged, only the parameter moves.
- Why the arithmetic ➔ complementing the set complements the size: a cover of size leaves an independent set of size , which is why the / bounds in Standard NP Problems and Certificates flip together with .
- Cost ➔ one subtraction ⟹ including copying the graph.
- ➔ pad each clause with a fresh variable used nowhere else: replace the -th clause by
- Why it preserves satisfiability ➔ whatever is set to, one of the two clauses loses its padding literal and reduces to ⟹ the pair is satisfiable iff is, and freshness stops interfering with any other clause.
- Cost ➔ one new variable and one extra clause per clause ⟹ linear.
- ➔ — supply the half-total as the target .
- Why ➔ a subset summing to half the total leaves its complement summing to the same amount, which is the definition of a partition. Cost ➔ one addition pass, .
- ➔ case split on sizes: output unchanged when ; otherwise output the fixed pair the slide gives as a diagram. Comparing two vertex counts is , so either branch is polynomial. (The second branch is a picture in the handout — construction not verifiable from the provided material; the slide then asks whether the reduction runs the other way round.)
Slide 5 exercise: which Lecture-21 mapping reductions are also polynomial-time? (the slide leaves the Yes/No column blank — reasoning worked here)
Worked answer
Lecture-21 reduction Poly-time? Reason Yes sort the word; , output length Yes single left-to-right scan with a guard; Yes one pass over states and transitions plus a new sink ; linear in No needs complementation, hence subset construction — states in the worst case
- Key move: the last row is the whole lesson — decidability transferred, tractability did not. Every construction that determinises or complements an NFA must be checked for blow-up before the word polynomial is used.
- Further reductions set as exercises (slide 12 — statements only, no constructions given) ➔ · · · · · · .
🧮 Proof Blueprint — the properties of
Reflexive. (identity). Transitive. . Transfer. . Corollary. .
Strategy ➔ both theorems compose two polynomial bounds; the only non-obvious ingredient is that the intermediate string is itself only polynomially long.
Derivation — transitivity
is a mapping reduction from to (Lecture 21); only the timing is new. Say costs and costs for large inputs. The output-length lemma gives , so
- Key move: without the bound on the second stage is measured in the wrong variable and the proof collapses — polynomial in its own input says nothing until that input is known to be small.
Derivation — the transfer theorem
Let reduce to and let be a polynomial-time decider for , say . Decider for on input : compute ; run on ; echo the answer — correct because . With of time and hence ,
- Corollary (contrapositive, free): — the form used to spread intractability, exactly as spreads undecidability.
- Same shape, harder currency: the transfer theorem spent only halting; this one spends halting within a polynomial, so the exponents multiply and must both be constants.
- The two set exercises ➔ ① if then for any — the caveats are the same trivial cases as for : and are excluded, since a constant-valued needs both a Yes-target and a No-target in . ② — same proof with “decider” replaced by “verifier”, the certificate passed straight through.
⚠️ Common Mistakes
- 💡 Forgetting to bound ➔ the single technical step examiners look for. ” is polynomial and is polynomial, so the composite is” is incomplete until the intermediate instance is shown to be polynomially small.
- 💡 Reducing the wrong way ➔ pushes hardness up and easiness down: it licenses "" and "", never the reverse.
- 💡 Reusing an construction without re-timing it ➔ is a valid mapping reduction and not a polynomial one. Recheck every determinisation and complementation.
- 💡 Proving one direction of the iff ➔ leaves the reduction free to map a No-instance onto a Yes-instance, and the composite decider then accepts too much.
- 💡 Treating as symmetric ➔ it is reflexive and transitive (a preorder). says nothing about the converse — which the slide poses as an open question precisely because it does not follow.
- 💡 Padding with a re-used variable ➔ in each clause needs its own fresh ; sharing one variable couples clauses and breaks the iff.
🧠 Active Recall
Why does the transfer theorem need the lemma "a TM outputs at most one symbol per step"?
Answer
- Short answer: because ‘s running time is polynomial in the length of its own input, which is — not . The lemma converts ‘s time bound into a length bound , so costs .
- Why: A reduction could otherwise hand over an exponentially large instance ➔ then even a linear-time would take exponential time overall and would fail. The identical lemma bounds the certificate search in Verifiers, Certificates and the Class NP.
was a legitimate mapping reduction. Why is it not a polynomial-time reduction, and what does that show about versus ?
Answer
- Short answer: it builds an FA for the symmetric difference , and complementation requires a deterministic automaton — the subset construction can blow states up to .
- Why: is strictly finer than ➔ every polynomial-time reduction is a mapping reduction, but the clock rejects constructions that are merely computable. That is exactly what is needed to separate decidable languages by difficulty, something is far too coarse to do.
Prove , stating what is marked.
Answer
- Short answer: with ; computable in ; and .
- Why: is a vertex cover is independent ➔ “every edge meets ” and “no edge lies inside ” are the same sentence. So a cover of size exists iff an independent set of size does; the function, the iff chain, and the cost are the three marked components.