12-Hardness Reductions
12-Hardness Reductions
Hardness reductions
In this lesson there is not much new to know by heart, the aim is to show you methods to do hardness reducitons.
"You must be able to reproduce these methods to do other hardness reducitons.
Independent Set
Since the problem is NP-hard on general graphs, one can look at smaller classes of graphs. For instance, for a fixed
graph H , we can look at H -free graphs. (Recall: "H -free graphs are graphs that do not have a copy of H as an induced
subgraph.)
However:
Proof. We do a reduction from I NDEPENDENT S ET on general graphs. Let I = (G, k) be an instance of I NDEPENDENT
S ET on general graphs. Let us build the graph G 0 from G by subdividing every edge twice. Let m be the number of
edges of G.
Consider an Independent Set S of G 0 . If there is an edge uv ∈ E (G) such that both u and v are in S. Since S is an
Independent Set in G 0 , we know that the two vertices that were added on the edge uv cannot be in S. We can remove
either u or v from S, say v, and replace it by one of the vertices added on uv. By doing this repeatedly, we can obtain
an Independent Set S 0 of G 0 with the same size as S, and such that S 0 does not countain two adjacent vertices of G.
Now we can assume for every edge uv or G, one of the two vertices added to uv is in S 0 , otherwise we can add them to
S 0 . Then if S had k + m vertices, the vertices of S 0 ∩ V (G) form an Independent Set of size at least k in G.
Reciprocally, if G has an Independent Set of size k, we can add one of the vertices added to each edge. This leads to an
Independent Set of G 0 of size k + m.
Therefore G has an Independent Set of size k if and only if G 0 has an Independent Set of size k + m. But any cycle of
G 0 is at least three times as long as a smallest cycle in G. Let g be the size of a cycle in H . By applying the previous
construction repeatedly, one may ensure that we obtain an instance I 0 equivalent to I where the smallest cycle in
the graph has size more than g . Hence the graph cannot contain H as an induced subgraph, and I 0 is an instance of
I NDEPENDENT S ET on H -free graphs.
1
Conditional complexity
In this section, we will consider problems where we do not actually know if the answer is always true on the considered
classes of graphs. However, we can still prove that, under the condition that the answer is not always true (that is, there
exists a counter-example), the problem is N P -hard. This method can also be applied for problems where we know
actual counter-examples.
We know that triangle-free planar graphs are 3-colorable. One may wonder, however, if forbidding other cycles can
also force graphs to be 3-colorable. The following was open for 30 years:
(∗)Is every {C 4 ,C 5 }-free planar graph 3-colorable ? The answer is no (a counter-example was found recently).
However, we have the following:
Theorem. (∗)Every {C 4 ,C 5 ,C 6 ,C 7 }-free planar graph is 3-colourable.
For i ≥ 4, let C i be the class of {C 4 , . . . ,C i }-free planar graphs. We will prove the following:
Theorem. (∗)For all i ≥ 4, either every graph in C i is 3-colourable, or it is NP-hard to decide if a gaph in C i is 3-
colourable.
Note that, for i = 6, it is still not known wether the problem is trivial or NP-hard, but we know that it is either trivial or
NP-hard.
2. Since H 0 has fewer edges than H , that is a smallest counter-exemple, H 0 has a 3-colouring h.
3. For every 3-colouring of H 0 , the vertices u and v have the same colour. If not, the 3-colouring of H 0 would also
be proper in H , and H is a counter-example and thus does not admit a proper 3-colouring.
Let us now do a NP-hardness reduction from 3-colouring on planar graphs. Consider and instance G of 3-colouring
on planar graphs. We will do the following construction on G:
• Replace w with a copy of H 0 , where u has all of the neighbours of w except w 0 , and v is adjacent to w 0 .
Let G 0 be the resulting graph. Let us show that G 0 has a 3-colouring if and only if G has a 3-colouring.
Let c be a 3-colouring of G. Consider the 3-colouring h of H , that exists by property 2. Note that by property 3,
h(u) = h(v). Up to renaming colours in h, we can also assume that h(u) = c(w). Now let c 0 (x) = c(x) if x ∈ G, and
c 0 (x) = h(x) if x ∈ H 0 . It is easy to check that c 0 is a proper 3-colouring of G 0 .
Let c 0 be a 3-colouring of G 0 . Note that the restriction of c 0 to H 0 is a proper 3-colouring of H 0 , and thus by property 3,
c 0 (u) = c 0 (v). Consider the restriction c of c 0 to G, where we add that c(w) = c 0 (v). It is easy to check that c is a proper
3-colouring of G.
Note now that G 0 is planar, since G and H 0 are planar, and we branched both graphs on two vertices in the same face
of H 0 and on a vertex of G. Moreover, since uv ∉ E (H 0 ), u and v have distance at least two in H 0 . Therefore every cycle
of G passing through the edge w w 0 is increased by at least 2 in G 0 . Applying this construction repeatedly on every edge
w w 0 of G, we can make sure that every cycle that uses edges of G have length more than i . Therefore the only small
cycle that remain in the graph are cycles of H 0 . By property 1, we know that those small cycles do not have length
between 4 and i .
Therefore we built an instance of 3-colouring equivalent to G that is planar and has no cycle with length between 4
and i . So the reduction is done, and 3-colouring is hard on C i .
Note that this kind of proof can be applied in many settings. If the property that we want to prove is not as symmet-
rical as the one considered there, for instance if we are trying to prove some partition property, we may have some
complications. Namely, there may be several possibilities for the colourings/partitions of the graph H 0 . In that case,
we must consider the different possibilities and do reductions for each of them (possibly nearly the same, possibly
different).
2
Polynomial time lower bounds due to ETH
(∗)For some problems, for instance k-Independent Set, we know that the problem is probably not FPT parametrised
by k. We say that such instances are W [1]-hard. If ETH is true, then the classes FPT and W [1]-hard are disjoint. From
this, and using some specific reductions that we will not see in this course, one can actually pove polynomial lower
bounds on the complexity of k-Independent Set. Namely, k-Independent Set cannot be solved in time n o(k) .
To prove that, the idea is to take some small (sublinear) function of n as a value of k, and use the W [1]-hard result that
would imply (under ETH) that the problem cannot be solved in time f (k)n O(1) .