SlideShare a Scribd company logo
Treewidth 2: Applications
Saket Saurabh
The Institute of Mathematical Sciences, India

ASPAK 2014, March 3-8
Introduction and definition DONE
Part I: Algorithms for bounded treewidth graphs. DONE
Part II: Graph-theoretic properties of treewidth.
Part III: Applications for general graphs.
Part IV: Algorithm for finding treewidth
Part V: Irrelevant Vertices – Planar Vertex Deletion.
Applications
Algorithms for graphs of bounded treewidth find many
applications, for example in

Graph Minors
Exact Algorithms
Approximation Schemes
Parameterized Algorithms
Kernelization
Databases
CSP’s
Application I: Parameterized Algorithms

Extended Monadic Second Order Logic (EMSO) A logical language
on graphs consisting of the following:
Logical connectives ∧, ∨, →, ¬, =, =
quantifiers ∀, ∃ over vertex/edge variables
predicate adj(u, v ): vertices u and v are adjacent
predicate inc(e, v ): edge e is incident to vertex v
∈, ⊆ for vertex/edge sets
Example: The formula
∃C ⊆ V ∀v ∈ C ∃u1 , u2 ∈ C (u1 = u2 ∧ adj(u1 , v ) ∧ adj(u2 , v )) is
true . . .if graph G (V , E ) has a cycle.
Application I: Parameterized Algorithms

Extended Monadic Second Order Logic (EMSO) A logical language
on graphs consisting of the following:
Logical connectives ∧, ∨, →, ¬, =, =
quantifiers ∀, ∃ over vertex/edge variables
predicate adj(u, v ): vertices u and v are adjacent
predicate inc(e, v ): edge e is incident to vertex v
∈, ⊆ for vertex/edge sets
Example: The formula
∃C ⊆ V ∀v ∈ C ∃u1 , u2 ∈ C (u1 = u2 ∧ adj(u1 , v ) ∧ adj(u2 , v )) is
true . . .if graph G (V , E ) has a cycle.
Application I: Parameterized Algorithms

Extended Monadic Second Order Logic (EMSO) A logical language
on graphs consisting of the following:
Logical connectives ∧, ∨, →, ¬, =, =
quantifiers ∀, ∃ over vertex/edge variables
predicate adj(u, v ): vertices u and v are adjacent
predicate inc(e, v ): edge e is incident to vertex v
∈, ⊆ for vertex/edge sets
Example: The formula
∃C ⊆ V ∀v ∈ C ∃u1 , u2 ∈ C (u1 = u2 ∧ adj(u1 , v ) ∧ adj(u2 , v )) is
true . . .if graph G (V , E ) has a cycle.
Courcelle’s Theorem

Courcelle’s Theorem: If a graph property can be expressed in
EMSO with formula ϕ of size |ϕ|, then for every fixed w ≥ 1, there
is an algorithm running in time f (|ϕ|, w ) · n for testing this
property on graphs having treewidth at most w .
Independent Set, Dominating Set, q Coloring, Max Cut, Odd Cycle
Transversal, Hamiltonian Cycle, Partition into Triangles, Feedback
Vertex Set, Vertex Disjoint Cycle Packing and million other
problems are FPT parameterized by the treewidth.
Courcelle’s Theorem

Courcelle’s Theorem: If a graph property can be expressed in
EMSO with formula ϕ of size |ϕ|, then for every fixed w ≥ 1, there
is an algorithm running in time f (|ϕ|, w ) · n for testing this
property on graphs having treewidth at most w .
Independent Set, Dominating Set, q Coloring, Max Cut, Odd Cycle
Transversal, Hamiltonian Cycle, Partition into Triangles, Feedback
Vertex Set, Vertex Disjoint Cycle Packing and million other
problems are FPT parameterized by the treewidth.
Properties of treewidth

Fact: treewidth ≤ 2 if and only if graph
is subgraph of a series-parallel graph
Properties of treewidth

Fact: treewidth ≤ 2 if and only if graph
is subgraph of a series-parallel graph
Fact: For every k ≥ 2, the treewidth of
the k × k grid is exactly k.
Properties of treewidth

Fact: treewidth ≤ 2 if and only if graph
is subgraph of a series-parallel graph
Fact: For every k ≥ 2, the treewidth of
the k × k grid is exactly k.
Fact: Treewidth does not increase if we delete edges, delete
vertices, or contract edges.
=⇒ If F is a minor of G , then the treewidth of F is at most the
treewidth of G .
Properties of treewidth

Fact: treewidth ≤ 2 if and only if graph
is subgraph of a series-parallel graph
Fact: For every k ≥ 2, the treewidth of
the k × k grid is exactly k.
Fact: Treewidth does not increase if we delete edges, delete
vertices, or contract edges.
=⇒ If F is a minor of G , then the treewidth of F is at most the
treewidth of G .
The treewidth of the k-clique is k − 1.
Obstruction to Treewidth

Figure : Example of a 6 × 6-grid

6

and a triangulated grid Γ4 .

Another, extremely useful obstructions to small treewidth, are
grid-minors. Let t be a positive integer. The t × t-grid t is a
graph with vertex set {(x, y ) | x, y ∈ {1, 2, . . . , t}}. Thus t has
exactly t 2 vertices. Two different vertices (x, y ) and (x , y ) are
adjacent if and only if |x − x | + |y − y | ≤ 1. The border of t is
the set of vertices with coordinates (1, y ), (t, y ), (t, 1), and (x, t),
where x, y ∈ {1, 2, . . . , t}
As we already have seen, if a graph contains large grid as a minor,
its treewidth is also large.
As we already have seen, if a graph contains large grid as a minor,
its treewidth is also large.
What is much more surprising, is that the converse is also true,
every graph of large treewidth contains a large grid as a minor.
Excluded Grid Theorem

Fact: [Excluded Grid Theorem] If the treewidth of G is at least
2
k 4k (k+2) , then G has a k × k grid minor.
[Robertson and Seymour ]
Excluded Grid Theorem

Fact: [Excluded Grid Theorem] If the treewidth of G is at least
2
k 4k (k+2) , then G has a k × k grid minor.
[Robertson and Seymour ]
It was open for many years whether a polynomial relationship could
be established between the treewidth of a graph G and the size of
its largest grid minor.
Excluded Grid Theorem

Fact: [Excluded Grid Theorem] If the treewidth of G is at least
2
k 4k (k+2) , then G has a k × k grid minor.
[Robertson and Seymour ]
It was open for many years whether a polynomial relationship could
be established between the treewidth of a graph G and the size of
its largest grid minor.

Theorem (Excluded Grid Theorem, Chekuri and Chuzhoy)
Let t ≥ 0 be an integer. There exists a universal constant c, such
that every graph of treewidth at least c · t 99 contains t as a
minor.
Excluded Grid Theorem

Fact: [Excluded Grid Theorem] If the treewidth of G is at least
2
k 4k (k+2) , then G has a k × k grid minor.
[Robertson and Seymour ]
Excluded Grid Theorem

Fact: [Excluded Grid Theorem] If the treewidth of G is at least
2
k 4k (k+2) , then G has a k × k grid minor.
[Robertson and Seymour ]
It was open for many years whether a polynomial relationship could
be established between the treewidth of a graph G and the size of
its largest grid minor.
Excluded Grid Theorem

Fact: [Excluded Grid Theorem] If the treewidth of G is at least
2
k 4k (k+2) , then G has a k × k grid minor.
[Robertson and Seymour ]
It was open for many years whether a polynomial relationship could
be established between the treewidth of a graph G and the size of
its largest grid minor.

Theorem (Excluded Grid Theorem, Chekuri and Chuzhoy)
Let t ≥ 0 be an integer. There exists a universal constant c, such
that every graph of treewidth at least c · t 99 contains t as a
minor.
Excluded Grid Theorem A : Planar Graph

Much better relations. We have two theorems:

Theorem (Planar Excluded Grid Theorem)
Let t ≥ 0 be an integer. Every planar graph G of treewidth at
least 9 t, contains t as a minor. Furthermore, there exists a
2
polynomial-time algorithm that for a given planar graph G either
outputs a tree decomposition of G of width 9 t or constructs a
2
minor model of t in G .
Excluded Grid Theorem : Planar Graph

One more Excluded Grid Theorem, this time not for minors but
just for edge contractions.

Figure : Example of a 6 × 6-grid

6

and a triangulated grid Γ4 .
Excluded Grid Theorem : Planar Graph
One more Excluded Grid Theorem, this time not for minors but
just for edge contractions.

Figure : Example of a 6 × 6-grid

6

and a triangulated grid Γ4 .

For an integer t > 0 the graph Γt is obtained from the grid t by
adding for every 1 ≤ x, y ≤ t − 1, the edge (x, y ), (x + 1, y + 1),
and making the vertex (t, t) adjacent to all vertices with x ∈ {1, t}
and y ∈ {1, t}.
Excluded Grid Theorem : Planar Graph

Figure : Example of a 6 × 6-grid

6

and a triangulated grid Γ4 .

Theorem
For any connected planar graph G and integer t ≥ 0, if
tw(G ) ≥ 9(t + 1), then G contains Γt as a contraction.
Furthermore there exists a polynomial-time algorithm that given G
either outputs a tree decomposition of G of width 9(t + 1) or a set
of edges whose contraction result in Γt .
Excluded Grid Theorem : Planar Graph

One more Excluded Grid Theorem, this time not for minors but
just for edge contractions.

Theorem
For any connected planar graph G and integer t ≥ 0, if
tw(G ) ≥ 9(t + 1), then G contains Γt as a contraction.
Furthermore there exists a polynomial-time algorithm that given G
either outputs a tree decomposition of G of width 9(t + 1) or a set
of edges whose contraction result in Γt .
Excluded Grid Theorem : Planar Graph

One more Excluded Grid Theorem, this time not for minors but
just for edge contractions.

Theorem
For any connected planar graph G and integer t ≥ 0, if
tw(G ) ≥ 9(t + 1), then G contains Γt as a contraction.
Furthermore there exists a polynomial-time algorithm that given G
either outputs a tree decomposition of G of width 9(t + 1) or a set
of edges whose contraction result in Γt .

Can we have such theorems for general
graphs?
Outerplanar graphs

Definition: A planar graph is outerplanar if it has a planar
embedding where every vertex is on the infinite face.
Outerplanar graphs

Definition: A planar graph is outerplanar if it has a planar
embedding where every vertex is on the infinite face.

Fact: Every outerplanar graph has treewidth at most 2.
=⇒ Every outerplanar graph is series-parallel.
k-outerplanar graphs
Given a planar embedding, we can define layers by iteratively
removing the vertices on the infinite face.
Definition: A planar graph is k-outerplanar if it has a planar
embedding having at most k layers.

1

1

2

1

2
1
2
3

2

3

2

3

3

3

3

3

2

2
2

2
2

1

1

Fact: Every k-outerplanar graph has treewidth at most 3k + 1.
k-outerplanar graphs
Given a planar embedding, we can define layers by iteratively
removing the vertices on the infinite face.
Definition: A planar graph is k-outerplanar if it has a planar
embedding having at most k layers.

1

1

2

1

2
1
2
3

2

3

2

3

3

3

3

3

2

2
2

2
2

1

1

Fact: Every k-outerplanar graph has treewidth at most 3k + 1.
k-outerplanar graphs
Given a planar embedding, we can define layers by iteratively
removing the vertices on the infinite face.
Definition: A planar graph is k-outerplanar if it has a planar
embedding having at most k layers.

2

2

2
3
2

3

2

3

3

3

3

3

2

2
2

2
2

Fact: Every k-outerplanar graph has treewidth at most 3k + 1.
k-outerplanar graphs
Given a planar embedding, we can define layers by iteratively
removing the vertices on the infinite face.
Definition: A planar graph is k-outerplanar if it has a planar
embedding having at most k layers.

2

2

2
3
2

3

2

3

3

3

3

3

2

2
2

2
2

Fact: Every k-outerplanar graph has treewidth at most 3k + 1.
k-outerplanar graphs
Given a planar embedding, we can define layers by iteratively
removing the vertices on the infinite face.
Definition: A planar graph is k-outerplanar if it has a planar
embedding having at most k layers.

3
3

3

3

3

3

3

Fact: Every k-outerplanar graph has treewidth at most 3k + 1.
Shifting Techniques
Building Blocks of the Technique

r
For vertex v of a graph G and integer r ≥ 1, we denote by Gv the
subgraph of G induced by vertices within distance r from v in G .
Building Blocks of the Technique

r
For vertex v of a graph G and integer r ≥ 1, we denote by Gv the
subgraph of G induced by vertices within distance r from v in G .

Lemma
Let G be a planar graph, v ∈ V (G ) and r ≥ 1. Then
r
tw(Gv ) ≤ 18(r + 1).

Proof.
On board.
Building Blocks of the Technique
r
For vertex v of a graph G and integer r ≥ 1, we denote by Gv the
subgraph of G induced by vertices within distance r from v in G .

Lemma
Let G be a planar graph, v ∈ V (G ) and r ≥ 1. Then
r
tw(Gv ) ≤ 18(r + 1).

Proof.
On board.
18(r + 1) in the above proof can be made 3r + 1.

Lemma
Let v be a vertex of a planar graph G and let Li , be the vertices of
G at distance i, 0 ≤ i ≤ n, from v . Then for any i, j ≥ 0, the
treewidth of the subgraph Gi,i+j induced by vertices in
Li ∪ Li+1 ∪ · · · ∪ Li+ j does not exceed 3j + 1.

Proof.
On board.
Intuition
The idea behind the shifting technique is as follows.
Pick a vertex v of planar graph G and run breadth-first search
(BFS) from v .
For any i, j ≥ 0, the treewidth of the subgraph Gi,i+j induced
by vertices in levels i, i + 1, . . . , i + j of BFS does not exceed
3j + 1.
Now for an appropriate choice of parameters, we can find
a“shift” of “windows”, i.e. a disjoint set of a small number of
consecutive levels of BFS, “covering” the solution. Because
every window is of small treewidth, we can employ the
dynamic programing or the power of Courcelle’s theorem to
solve the problem.
We will see two examples.
Intuition
The idea behind the shifting technique is as follows.
Pick a vertex v of planar graph G and run breadth-first search
(BFS) from v .
For any i, j ≥ 0, the treewidth of the subgraph Gi,i+j induced
by vertices in levels i, i + 1, . . . , i + j of BFS does not exceed
3j + 1.
Now for an appropriate choice of parameters, we can find
a“shift” of “windows”, i.e. a disjoint set of a small number of
consecutive levels of BFS, “covering” the solution. Because
every window is of small treewidth, we can employ the
dynamic programing or the power of Courcelle’s theorem to
solve the problem.
We will see two examples.
Intuition
The idea behind the shifting technique is as follows.
Pick a vertex v of planar graph G and run breadth-first search
(BFS) from v .
For any i, j ≥ 0, the treewidth of the subgraph Gi,i+j induced
by vertices in levels i, i + 1, . . . , i + j of BFS does not exceed
3j + 1.
Now for an appropriate choice of parameters, we can find
a“shift” of “windows”, i.e. a disjoint set of a small number of
consecutive levels of BFS, “covering” the solution. Because
every window is of small treewidth, we can employ the
dynamic programing or the power of Courcelle’s theorem to
solve the problem.
We will see two examples.
Intuition
The idea behind the shifting technique is as follows.
Pick a vertex v of planar graph G and run breadth-first search
(BFS) from v .
For any i, j ≥ 0, the treewidth of the subgraph Gi,i+j induced
by vertices in levels i, i + 1, . . . , i + j of BFS does not exceed
3j + 1.
Now for an appropriate choice of parameters, we can find
a“shift” of “windows”, i.e. a disjoint set of a small number of
consecutive levels of BFS, “covering” the solution. Because
every window is of small treewidth, we can employ the
dynamic programing or the power of Courcelle’s theorem to
solve the problem.
We will see two examples.
Subgraph Isomorphism

Subgraph Isomorphism: given graphs H and G , find a copy of
H in G as subgraph. Parameter k := |V (H)|.
EMSO formula of size k O(1) for Subgraph Isomorphism exists.
This now using Courcelle’s Theorem implies that we have
f (k, w ) · n time algorithm for Subgraph Isomorphism on
graphs of treewidth w .
Subgraph Isomorphism

Subgraph Isomorphism: given graphs H and G , find a copy of
H in G as subgraph. Parameter k := |V (H)|.
EMSO formula of size k O(1) for Subgraph Isomorphism exists.
This now using Courcelle’s Theorem implies that we have
f (k, w ) · n time algorithm for Subgraph Isomorphism on
graphs of treewidth w .
Subgraph Isomorphism

Subgraph Isomorphism: given graphs H and G , find a copy of
H in G as subgraph. Parameter k := |V (H)|.
EMSO formula of size k O(1) for Subgraph Isomorphism exists.
This now using Courcelle’s Theorem implies that we have
f (k, w ) · n time algorithm for Subgraph Isomorphism on
graphs of treewidth w .
Baker’s shifting strategy
Subgraph Isomorphism for planar graphs: given planar graphs H and
G , find a copy of H in G as subgraph. Parameter k := |V (H)|.
Layers of the planar
graph:
(as in the definition of
k-outerplanar):
For a fixed 0 ≤ s < k + 1, delete every layer Li with i = s
(mod k + 1)
The resulting graph is k-outerplanar, hence it has treewidth at most
3k + 1.
Using the f (k, w ) · n time algorithm for Subgraph Isomorphism,
the problem can be solved in time f (k, 3k + 1) · n.
We do this for every 0 ≤ s < k + 1: for at least one value of s, we
do not delete any of the k vertices of the solution =⇒ we find a
copy of H in G if there is one.
Subgraph Isomorphism for planar graphs is FPT parameterized
by k := |V (H)|.
Baker’s shifting strategy
Subgraph Isomorphism for planar graphs: given planar graphs H and
G , find a copy of H in G as subgraph. Parameter k := |V (H)|.
Layers of the planar
graph:
(as in the definition of
k-outerplanar):
For a fixed 0 ≤ s < k + 1, delete every layer Li with i = s
(mod k + 1)
The resulting graph is k-outerplanar, hence it has treewidth at most
3k + 1.
Using the f (k, w ) · n time algorithm for Subgraph Isomorphism,
the problem can be solved in time f (k, 3k + 1) · n.
We do this for every 0 ≤ s < k + 1: for at least one value of s, we
do not delete any of the k vertices of the solution =⇒ we find a
copy of H in G if there is one.
Subgraph Isomorphism for planar graphs is FPT parameterized
by k := |V (H)|.
Baker’s shifting strategy
Subgraph Isomorphism for planar graphs: given planar graphs H and
G , find a copy of H in G as subgraph. Parameter k := |V (H)|.
Layers of the planar
graph:
(as in the definition of
k-outerplanar):
For a fixed 0 ≤ s < k + 1, delete every layer Li with i = s
(mod k + 1)
The resulting graph is k-outerplanar, hence it has treewidth at most
3k + 1.
Using the f (k, w ) · n time algorithm for Subgraph Isomorphism,
the problem can be solved in time f (k, 3k + 1) · n.
We do this for every 0 ≤ s < k + 1: for at least one value of s, we
do not delete any of the k vertices of the solution =⇒ we find a
copy of H in G if there is one.
Subgraph Isomorphism for planar graphs is FPT parameterized
by k := |V (H)|.
Baker’s shifting strategy
Subgraph Isomorphism for planar graphs: given planar graphs H and
G , find a copy of H in G as subgraph. Parameter k := |V (H)|.
Layers of the planar
graph:
(as in the definition of
k-outerplanar):
For a fixed 0 ≤ s < k + 1, delete every layer Li with i = s
(mod k + 1)
The resulting graph is k-outerplanar, hence it has treewidth at most
3k + 1.
Using the f (k, w ) · n time algorithm for Subgraph Isomorphism,
the problem can be solved in time f (k, 3k + 1) · n.
We do this for every 0 ≤ s < k + 1: for at least one value of s, we
do not delete any of the k vertices of the solution =⇒ we find a
copy of H in G if there is one.
Subgraph Isomorphism for planar graphs is FPT parameterized
by k := |V (H)|.
Baker’s shifting strategy
Subgraph Isomorphism for planar graphs: given planar graphs H and
G , find a copy of H in G as subgraph. Parameter k := |V (H)|.
Layers of the planar
graph:
(as in the definition of
k-outerplanar):
For a fixed 0 ≤ s < k + 1, delete every layer Li with i = s
(mod k + 1)
The resulting graph is k-outerplanar, hence it has treewidth at most
3k + 1.
Using the f (k, w ) · n time algorithm for Subgraph Isomorphism,
the problem can be solved in time f (k, 3k + 1) · n.
We do this for every 0 ≤ s < k + 1: for at least one value of s, we
do not delete any of the k vertices of the solution =⇒ we find a
copy of H in G if there is one.
Subgraph Isomorphism for planar graphs is FPT parameterized
by k := |V (H)|.
Baker’s shifting strategy
Subgraph Isomorphism for planar graphs: given planar graphs H and
G , find a copy of H in G as subgraph. Parameter k := |V (H)|.
Layers of the planar
graph:
(as in the definition of
k-outerplanar):
For a fixed 0 ≤ s < k + 1, delete every layer Li with i = s
(mod k + 1)
The resulting graph is k-outerplanar, hence it has treewidth at most
3k + 1.
Using the f (k, w ) · n time algorithm for Subgraph Isomorphism,
the problem can be solved in time f (k, 3k + 1) · n.
We do this for every 0 ≤ s < k + 1: for at least one value of s, we
do not delete any of the k vertices of the solution =⇒ we find a
copy of H in G if there is one.
Subgraph Isomorphism for planar graphs is FPT parameterized
by k := |V (H)|.
Baker’s shifting strategy
Subgraph Isomorphism for planar graphs: given planar graphs H and
G , find a copy of H in G as subgraph. Parameter k := |V (H)|.
Layers of the planar
graph:
(as in the definition of
k-outerplanar):
For a fixed 0 ≤ s < k + 1, delete every layer Li with i = s
(mod k + 1)
The resulting graph is k-outerplanar, hence it has treewidth at most
3k + 1.
Using the f (k, w ) · n time algorithm for Subgraph Isomorphism,
the problem can be solved in time f (k, 3k + 1) · n.
We do this for every 0 ≤ s < k + 1: for at least one value of s, we
do not delete any of the k vertices of the solution =⇒ we find a
copy of H in G if there is one.
Subgraph Isomorphism for planar graphs is FPT parameterized
by k := |V (H)|.
Baker’s shifting strategy
Subgraph Isomorphism for planar graphs: given planar graphs H and
G , find a copy of H in G as subgraph. Parameter k := |V (H)|.
Layers of the planar
graph:
(as in the definition of
k-outerplanar):
For a fixed 0 ≤ s < k + 1, delete every layer Li with i = s
(mod k + 1)
The resulting graph is k-outerplanar, hence it has treewidth at most
3k + 1.
Using the f (k, w ) · n time algorithm for Subgraph Isomorphism,
the problem can be solved in time f (k, 3k + 1) · n.
We do this for every 0 ≤ s < k + 1: for at least one value of s, we
do not delete any of the k vertices of the solution =⇒ we find a
copy of H in G if there is one.
Subgraph Isomorphism for planar graphs is FPT parameterized
by k := |V (H)|.
Baker’s shifting strategy
Subgraph Isomorphism for planar graphs: given planar graphs H and
G , find a copy of H in G as subgraph. Parameter k := |V (H)|.
Layers of the planar
graph:
(as in the definition of
k-outerplanar):
For a fixed 0 ≤ s < k + 1, delete every layer Li with i = s
(mod k + 1)
The resulting graph is k-outerplanar, hence it has treewidth at most
3k + 1.
Using the f (k, w ) · n time algorithm for Subgraph Isomorphism,
the problem can be solved in time f (k, 3k + 1) · n.
We do this for every 0 ≤ s < k + 1: for at least one value of s, we
do not delete any of the k vertices of the solution =⇒ we find a
copy of H in G if there is one.
Subgraph Isomorphism for planar graphs is FPT parameterized
by k := |V (H)|.
Baker’s shifting strategy
Subgraph Isomorphism for planar graphs: given planar graphs H and
G , find a copy of H in G as subgraph. Parameter k := |V (H)|.
Layers of the planar
graph:
(as in the definition of
k-outerplanar):
For a fixed 0 ≤ s < k + 1, delete every layer Li with i = s
(mod k + 1)
The resulting graph is k-outerplanar, hence it has treewidth at most
3k + 1.
Using the f (k, w ) · n time algorithm for Subgraph Isomorphism,
the problem can be solved in time f (k, 3k + 1) · n.
We do this for every 0 ≤ s < k + 1: for at least one value of s, we
do not delete any of the k vertices of the solution =⇒ we find a
copy of H in G if there is one.
Subgraph Isomorphism for planar graphs is FPT parameterized
by k := |V (H)|.
Bisection

For a given n-vertex graph G , weight function w : V (G ) → N and
integer k, the task is to decide if there is a partition of V (G ) into
sets V1 and V2 of weights w (V (G ))/2 and w (V (G )/2 and
such that the number of edges between V1 and V2 is at most k. In
other words, we are looking for a balanced partition (V1 , V2 ) with
a (V1 , V2 )-cut at most k.
Bisection
For a given n-vertex graph G , weight function w : V (G ) → N and
integer k, the task is to decide if there is a partition of V (G ) into
sets V1 and V2 of weights w (V (G ))/2 and w (V (G )/2 and
such that the number of edges between V1 and V2 is at most k. In
other words, we are looking for a balanced partition (V1 , V2 ) with
a (V1 , V2 )-cut at most k.

Lemma
Bisection is solvable in time 2t · nO(1) on an n-vertex given
together with its tree decomposition of width t.

Theorem
Bisection on planar graphs is solvable in time 2O(k) · nO(1) .

Proof.
On board.
Approximation schemes
Definition: A polynomial-time approximation scheme (PTAS) for a
problem P is an algorithm that takes an instance of P and a
rational number ε > 0,
always finds a (1 + ε)-approximate solution,
the running time is polynomial in n for every fixed ε > 0.
2

Typical running times: 21/ε · n, n1/ε , (n/ε)2 , n1/ε .
Some classical problems that have a PTAS:
Independent Set for planar graphs
TSP in the Euclidean plane
Steiner Tree in planar graphs
Knapsack
Baker’s shifting strategy for EPTAS
Fact: There is a 2O(1/ε) · n time PTAS for Independent Set for
planar graphs.

Let D := 1/ε. For a fixed 0 ≤ s < D, delete every layer Li
with i = s (mod D)
The resulting graph is D-outerplanar, hence it has treewidth
at most 3D + 1 = O(1/ε).
Using the O(2w · n) time algorithm for Independent Set,
the problem can be solved in time 2O(1/ε) · n.
We do this for every 0 ≤ s < D: for at least one value of s,
we delete at most 1/D = ε fraction of the solution =⇒ we
get a (1 − ε)-approximate solution.
Bidimensionality

More Related Content

PDF
Dynamic Programming Over Graphs of Bounded Treewidth
PDF
Bidimensionality
PDF
Important Cuts
PDF
Paths and Polynomials
PDF
Iterative Compression
PDF
Important Cuts and (p,q)-clustering
PDF
The Exponential Time Hypothesis
PDF
The Total Strong Split Domination Number of Graphs
Dynamic Programming Over Graphs of Bounded Treewidth
Bidimensionality
Important Cuts
Paths and Polynomials
Iterative Compression
Important Cuts and (p,q)-clustering
The Exponential Time Hypothesis
The Total Strong Split Domination Number of Graphs

What's hot (20)

PDF
Kernelization Basics
PDF
Internal workshop jub talk jan 2013
PPT
minimum spanning trees Algorithm
PDF
Strong (Weak) Triple Connected Domination Number of a Fuzzy Graph
PDF
Minimum spanning tree
PDF
A T(1)-type theorem for entangled multilinear Calderon-Zygmund operators
PPT
01 knapsack using backtracking
PDF
A common fixed point of integral type contraction in generalized metric spacess
PDF
Higher-Order (F, α, β, ρ, d) –Convexity for Multiobjective Programming Problem
PDF
Density theorems for Euclidean point configurations
PPTX
Minimum spanning Tree
PDF
A Generalization of QN-Maps
PPT
Threshold network models
PPTX
Minimum spanning tree algorithms by ibrahim_alfayoumi
PDF
On maximal and variational Fourier restriction
PDF
Trilinear embedding for divergence-form operators
PDF
Patch Matching with Polynomial Exponential Families and Projective Divergences
PDF
Program on Quasi-Monte Carlo and High-Dimensional Sampling Methods for Appli...
PDF
Norm-variation of bilinear averages
PDF
1452 86301000013 m
Kernelization Basics
Internal workshop jub talk jan 2013
minimum spanning trees Algorithm
Strong (Weak) Triple Connected Domination Number of a Fuzzy Graph
Minimum spanning tree
A T(1)-type theorem for entangled multilinear Calderon-Zygmund operators
01 knapsack using backtracking
A common fixed point of integral type contraction in generalized metric spacess
Higher-Order (F, α, β, ρ, d) –Convexity for Multiobjective Programming Problem
Density theorems for Euclidean point configurations
Minimum spanning Tree
A Generalization of QN-Maps
Threshold network models
Minimum spanning tree algorithms by ibrahim_alfayoumi
On maximal and variational Fourier restriction
Trilinear embedding for divergence-form operators
Patch Matching with Polynomial Exponential Families and Projective Divergences
Program on Quasi-Monte Carlo and High-Dimensional Sampling Methods for Appli...
Norm-variation of bilinear averages
1452 86301000013 m
Ad

Viewers also liked (13)

PDF
Color Coding
PDF
Cut and Count
PDF
Matroid Basics
PDF
Representative Sets
PDF
Kernel Lower Bounds
PDF
Fixed-Parameter Intractability
PDF
Efficient Simplification: The (im)possibilities
PDF
Steiner Tree Parameterized by Treewidth
PDF
EKR for Matchings
PDF
Separators with Non-Hereditary Properties
PDF
A Kernel for Planar F-deletion: The Connected Case
PDF
Kernels for Planar F-Deletion (Restricted Variants)
PDF
From FVS to F-Deletion
Color Coding
Cut and Count
Matroid Basics
Representative Sets
Kernel Lower Bounds
Fixed-Parameter Intractability
Efficient Simplification: The (im)possibilities
Steiner Tree Parameterized by Treewidth
EKR for Matchings
Separators with Non-Hereditary Properties
A Kernel for Planar F-deletion: The Connected Case
Kernels for Planar F-Deletion (Restricted Variants)
From FVS to F-Deletion
Ad

Similar to Treewidth and Applications (20)

PDF
ON ALGORITHMIC PROBLEMS CONCERNING GRAPHS OF HIGHER DEGREE OF SYMMETRY
PDF
On algorithmic problems concerning graphs of higher degree of symmetry
PDF
Network Theory
PDF
Total Dominating Color Transversal Number of Graphs And Graph Operations
PDF
On Algorithmic Problems Concerning Graphs of Higher Degree of Symmetry
PPT
Mathematics classes and pptPPT-Graphs.ppt
PPT
PPT-graph-Graphs-theory-notes-introduction
PDF
Trees amd properties slide for presentaton
PDF
EVEN GRACEFUL LABELLING OF A CLASS OF TREES
PPT
Greedy Approach in Design Analysis and Algorithms
PDF
Complex analysis notes
PDF
The Gaussian Hardy-Littlewood Maximal Function
PDF
Merrk
PDF
X4102188192
PDF
Algorithm chapter 9
PDF
A Quest for Subexponential Time Parameterized Algorithms for Planar-k-Path: F...
PPTX
Graph Theory Basics, Connecting the Dots in Mathematics
PPT
ADA - Minimum Spanning Tree Prim Kruskal and Dijkstra
PDF
4. [22 25]characterization of connected vertex magic total labeling graphs in...
PDF
4. [22 25]characterization of connected vertex magic total labeling graphs in...
ON ALGORITHMIC PROBLEMS CONCERNING GRAPHS OF HIGHER DEGREE OF SYMMETRY
On algorithmic problems concerning graphs of higher degree of symmetry
Network Theory
Total Dominating Color Transversal Number of Graphs And Graph Operations
On Algorithmic Problems Concerning Graphs of Higher Degree of Symmetry
Mathematics classes and pptPPT-Graphs.ppt
PPT-graph-Graphs-theory-notes-introduction
Trees amd properties slide for presentaton
EVEN GRACEFUL LABELLING OF A CLASS OF TREES
Greedy Approach in Design Analysis and Algorithms
Complex analysis notes
The Gaussian Hardy-Littlewood Maximal Function
Merrk
X4102188192
Algorithm chapter 9
A Quest for Subexponential Time Parameterized Algorithms for Planar-k-Path: F...
Graph Theory Basics, Connecting the Dots in Mathematics
ADA - Minimum Spanning Tree Prim Kruskal and Dijkstra
4. [22 25]characterization of connected vertex magic total labeling graphs in...
4. [22 25]characterization of connected vertex magic total labeling graphs in...

Recently uploaded (20)

PDF
A systematic review of self-coping strategies used by university students to ...
PDF
Practical Manual AGRO-233 Principles and Practices of Natural Farming
PDF
What if we spent less time fighting change, and more time building what’s rig...
PDF
RMMM.pdf make it easy to upload and study
PDF
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
PPTX
Cell Structure & Organelles in detailed.
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPTX
master seminar digital applications in india
PPTX
UV-Visible spectroscopy..pptx UV-Visible Spectroscopy – Electronic Transition...
PPTX
History, Philosophy and sociology of education (1).pptx
PDF
LNK 2025 (2).pdf MWEHEHEHEHEHEHEHEHEHEHE
PDF
Weekly quiz Compilation Jan -July 25.pdf
PDF
Updated Idioms and Phrasal Verbs in English subject
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
Classroom Observation Tools for Teachers
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
LDMMIA Reiki Yoga Finals Review Spring Summer
A systematic review of self-coping strategies used by university students to ...
Practical Manual AGRO-233 Principles and Practices of Natural Farming
What if we spent less time fighting change, and more time building what’s rig...
RMMM.pdf make it easy to upload and study
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
Cell Structure & Organelles in detailed.
Microbial diseases, their pathogenesis and prophylaxis
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
master seminar digital applications in india
UV-Visible spectroscopy..pptx UV-Visible Spectroscopy – Electronic Transition...
History, Philosophy and sociology of education (1).pptx
LNK 2025 (2).pdf MWEHEHEHEHEHEHEHEHEHEHE
Weekly quiz Compilation Jan -July 25.pdf
Updated Idioms and Phrasal Verbs in English subject
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Classroom Observation Tools for Teachers
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
LDMMIA Reiki Yoga Finals Review Spring Summer

Treewidth and Applications

  • 1. Treewidth 2: Applications Saket Saurabh The Institute of Mathematical Sciences, India ASPAK 2014, March 3-8
  • 2. Introduction and definition DONE Part I: Algorithms for bounded treewidth graphs. DONE Part II: Graph-theoretic properties of treewidth. Part III: Applications for general graphs. Part IV: Algorithm for finding treewidth Part V: Irrelevant Vertices – Planar Vertex Deletion.
  • 3. Applications Algorithms for graphs of bounded treewidth find many applications, for example in Graph Minors Exact Algorithms Approximation Schemes Parameterized Algorithms Kernelization Databases CSP’s
  • 4. Application I: Parameterized Algorithms Extended Monadic Second Order Logic (EMSO) A logical language on graphs consisting of the following: Logical connectives ∧, ∨, →, ¬, =, = quantifiers ∀, ∃ over vertex/edge variables predicate adj(u, v ): vertices u and v are adjacent predicate inc(e, v ): edge e is incident to vertex v ∈, ⊆ for vertex/edge sets Example: The formula ∃C ⊆ V ∀v ∈ C ∃u1 , u2 ∈ C (u1 = u2 ∧ adj(u1 , v ) ∧ adj(u2 , v )) is true . . .if graph G (V , E ) has a cycle.
  • 5. Application I: Parameterized Algorithms Extended Monadic Second Order Logic (EMSO) A logical language on graphs consisting of the following: Logical connectives ∧, ∨, →, ¬, =, = quantifiers ∀, ∃ over vertex/edge variables predicate adj(u, v ): vertices u and v are adjacent predicate inc(e, v ): edge e is incident to vertex v ∈, ⊆ for vertex/edge sets Example: The formula ∃C ⊆ V ∀v ∈ C ∃u1 , u2 ∈ C (u1 = u2 ∧ adj(u1 , v ) ∧ adj(u2 , v )) is true . . .if graph G (V , E ) has a cycle.
  • 6. Application I: Parameterized Algorithms Extended Monadic Second Order Logic (EMSO) A logical language on graphs consisting of the following: Logical connectives ∧, ∨, →, ¬, =, = quantifiers ∀, ∃ over vertex/edge variables predicate adj(u, v ): vertices u and v are adjacent predicate inc(e, v ): edge e is incident to vertex v ∈, ⊆ for vertex/edge sets Example: The formula ∃C ⊆ V ∀v ∈ C ∃u1 , u2 ∈ C (u1 = u2 ∧ adj(u1 , v ) ∧ adj(u2 , v )) is true . . .if graph G (V , E ) has a cycle.
  • 7. Courcelle’s Theorem Courcelle’s Theorem: If a graph property can be expressed in EMSO with formula ϕ of size |ϕ|, then for every fixed w ≥ 1, there is an algorithm running in time f (|ϕ|, w ) · n for testing this property on graphs having treewidth at most w . Independent Set, Dominating Set, q Coloring, Max Cut, Odd Cycle Transversal, Hamiltonian Cycle, Partition into Triangles, Feedback Vertex Set, Vertex Disjoint Cycle Packing and million other problems are FPT parameterized by the treewidth.
  • 8. Courcelle’s Theorem Courcelle’s Theorem: If a graph property can be expressed in EMSO with formula ϕ of size |ϕ|, then for every fixed w ≥ 1, there is an algorithm running in time f (|ϕ|, w ) · n for testing this property on graphs having treewidth at most w . Independent Set, Dominating Set, q Coloring, Max Cut, Odd Cycle Transversal, Hamiltonian Cycle, Partition into Triangles, Feedback Vertex Set, Vertex Disjoint Cycle Packing and million other problems are FPT parameterized by the treewidth.
  • 9. Properties of treewidth Fact: treewidth ≤ 2 if and only if graph is subgraph of a series-parallel graph
  • 10. Properties of treewidth Fact: treewidth ≤ 2 if and only if graph is subgraph of a series-parallel graph Fact: For every k ≥ 2, the treewidth of the k × k grid is exactly k.
  • 11. Properties of treewidth Fact: treewidth ≤ 2 if and only if graph is subgraph of a series-parallel graph Fact: For every k ≥ 2, the treewidth of the k × k grid is exactly k. Fact: Treewidth does not increase if we delete edges, delete vertices, or contract edges. =⇒ If F is a minor of G , then the treewidth of F is at most the treewidth of G .
  • 12. Properties of treewidth Fact: treewidth ≤ 2 if and only if graph is subgraph of a series-parallel graph Fact: For every k ≥ 2, the treewidth of the k × k grid is exactly k. Fact: Treewidth does not increase if we delete edges, delete vertices, or contract edges. =⇒ If F is a minor of G , then the treewidth of F is at most the treewidth of G . The treewidth of the k-clique is k − 1.
  • 13. Obstruction to Treewidth Figure : Example of a 6 × 6-grid 6 and a triangulated grid Γ4 . Another, extremely useful obstructions to small treewidth, are grid-minors. Let t be a positive integer. The t × t-grid t is a graph with vertex set {(x, y ) | x, y ∈ {1, 2, . . . , t}}. Thus t has exactly t 2 vertices. Two different vertices (x, y ) and (x , y ) are adjacent if and only if |x − x | + |y − y | ≤ 1. The border of t is the set of vertices with coordinates (1, y ), (t, y ), (t, 1), and (x, t), where x, y ∈ {1, 2, . . . , t}
  • 14. As we already have seen, if a graph contains large grid as a minor, its treewidth is also large.
  • 15. As we already have seen, if a graph contains large grid as a minor, its treewidth is also large. What is much more surprising, is that the converse is also true, every graph of large treewidth contains a large grid as a minor.
  • 16. Excluded Grid Theorem Fact: [Excluded Grid Theorem] If the treewidth of G is at least 2 k 4k (k+2) , then G has a k × k grid minor. [Robertson and Seymour ]
  • 17. Excluded Grid Theorem Fact: [Excluded Grid Theorem] If the treewidth of G is at least 2 k 4k (k+2) , then G has a k × k grid minor. [Robertson and Seymour ] It was open for many years whether a polynomial relationship could be established between the treewidth of a graph G and the size of its largest grid minor.
  • 18. Excluded Grid Theorem Fact: [Excluded Grid Theorem] If the treewidth of G is at least 2 k 4k (k+2) , then G has a k × k grid minor. [Robertson and Seymour ] It was open for many years whether a polynomial relationship could be established between the treewidth of a graph G and the size of its largest grid minor. Theorem (Excluded Grid Theorem, Chekuri and Chuzhoy) Let t ≥ 0 be an integer. There exists a universal constant c, such that every graph of treewidth at least c · t 99 contains t as a minor.
  • 19. Excluded Grid Theorem Fact: [Excluded Grid Theorem] If the treewidth of G is at least 2 k 4k (k+2) , then G has a k × k grid minor. [Robertson and Seymour ]
  • 20. Excluded Grid Theorem Fact: [Excluded Grid Theorem] If the treewidth of G is at least 2 k 4k (k+2) , then G has a k × k grid minor. [Robertson and Seymour ] It was open for many years whether a polynomial relationship could be established between the treewidth of a graph G and the size of its largest grid minor.
  • 21. Excluded Grid Theorem Fact: [Excluded Grid Theorem] If the treewidth of G is at least 2 k 4k (k+2) , then G has a k × k grid minor. [Robertson and Seymour ] It was open for many years whether a polynomial relationship could be established between the treewidth of a graph G and the size of its largest grid minor. Theorem (Excluded Grid Theorem, Chekuri and Chuzhoy) Let t ≥ 0 be an integer. There exists a universal constant c, such that every graph of treewidth at least c · t 99 contains t as a minor.
  • 22. Excluded Grid Theorem A : Planar Graph Much better relations. We have two theorems: Theorem (Planar Excluded Grid Theorem) Let t ≥ 0 be an integer. Every planar graph G of treewidth at least 9 t, contains t as a minor. Furthermore, there exists a 2 polynomial-time algorithm that for a given planar graph G either outputs a tree decomposition of G of width 9 t or constructs a 2 minor model of t in G .
  • 23. Excluded Grid Theorem : Planar Graph One more Excluded Grid Theorem, this time not for minors but just for edge contractions. Figure : Example of a 6 × 6-grid 6 and a triangulated grid Γ4 .
  • 24. Excluded Grid Theorem : Planar Graph One more Excluded Grid Theorem, this time not for minors but just for edge contractions. Figure : Example of a 6 × 6-grid 6 and a triangulated grid Γ4 . For an integer t > 0 the graph Γt is obtained from the grid t by adding for every 1 ≤ x, y ≤ t − 1, the edge (x, y ), (x + 1, y + 1), and making the vertex (t, t) adjacent to all vertices with x ∈ {1, t} and y ∈ {1, t}.
  • 25. Excluded Grid Theorem : Planar Graph Figure : Example of a 6 × 6-grid 6 and a triangulated grid Γ4 . Theorem For any connected planar graph G and integer t ≥ 0, if tw(G ) ≥ 9(t + 1), then G contains Γt as a contraction. Furthermore there exists a polynomial-time algorithm that given G either outputs a tree decomposition of G of width 9(t + 1) or a set of edges whose contraction result in Γt .
  • 26. Excluded Grid Theorem : Planar Graph One more Excluded Grid Theorem, this time not for minors but just for edge contractions. Theorem For any connected planar graph G and integer t ≥ 0, if tw(G ) ≥ 9(t + 1), then G contains Γt as a contraction. Furthermore there exists a polynomial-time algorithm that given G either outputs a tree decomposition of G of width 9(t + 1) or a set of edges whose contraction result in Γt .
  • 27. Excluded Grid Theorem : Planar Graph One more Excluded Grid Theorem, this time not for minors but just for edge contractions. Theorem For any connected planar graph G and integer t ≥ 0, if tw(G ) ≥ 9(t + 1), then G contains Γt as a contraction. Furthermore there exists a polynomial-time algorithm that given G either outputs a tree decomposition of G of width 9(t + 1) or a set of edges whose contraction result in Γt . Can we have such theorems for general graphs?
  • 28. Outerplanar graphs Definition: A planar graph is outerplanar if it has a planar embedding where every vertex is on the infinite face.
  • 29. Outerplanar graphs Definition: A planar graph is outerplanar if it has a planar embedding where every vertex is on the infinite face. Fact: Every outerplanar graph has treewidth at most 2. =⇒ Every outerplanar graph is series-parallel.
  • 30. k-outerplanar graphs Given a planar embedding, we can define layers by iteratively removing the vertices on the infinite face. Definition: A planar graph is k-outerplanar if it has a planar embedding having at most k layers. 1 1 2 1 2 1 2 3 2 3 2 3 3 3 3 3 2 2 2 2 2 1 1 Fact: Every k-outerplanar graph has treewidth at most 3k + 1.
  • 31. k-outerplanar graphs Given a planar embedding, we can define layers by iteratively removing the vertices on the infinite face. Definition: A planar graph is k-outerplanar if it has a planar embedding having at most k layers. 1 1 2 1 2 1 2 3 2 3 2 3 3 3 3 3 2 2 2 2 2 1 1 Fact: Every k-outerplanar graph has treewidth at most 3k + 1.
  • 32. k-outerplanar graphs Given a planar embedding, we can define layers by iteratively removing the vertices on the infinite face. Definition: A planar graph is k-outerplanar if it has a planar embedding having at most k layers. 2 2 2 3 2 3 2 3 3 3 3 3 2 2 2 2 2 Fact: Every k-outerplanar graph has treewidth at most 3k + 1.
  • 33. k-outerplanar graphs Given a planar embedding, we can define layers by iteratively removing the vertices on the infinite face. Definition: A planar graph is k-outerplanar if it has a planar embedding having at most k layers. 2 2 2 3 2 3 2 3 3 3 3 3 2 2 2 2 2 Fact: Every k-outerplanar graph has treewidth at most 3k + 1.
  • 34. k-outerplanar graphs Given a planar embedding, we can define layers by iteratively removing the vertices on the infinite face. Definition: A planar graph is k-outerplanar if it has a planar embedding having at most k layers. 3 3 3 3 3 3 3 Fact: Every k-outerplanar graph has treewidth at most 3k + 1.
  • 36. Building Blocks of the Technique r For vertex v of a graph G and integer r ≥ 1, we denote by Gv the subgraph of G induced by vertices within distance r from v in G .
  • 37. Building Blocks of the Technique r For vertex v of a graph G and integer r ≥ 1, we denote by Gv the subgraph of G induced by vertices within distance r from v in G . Lemma Let G be a planar graph, v ∈ V (G ) and r ≥ 1. Then r tw(Gv ) ≤ 18(r + 1). Proof. On board.
  • 38. Building Blocks of the Technique r For vertex v of a graph G and integer r ≥ 1, we denote by Gv the subgraph of G induced by vertices within distance r from v in G . Lemma Let G be a planar graph, v ∈ V (G ) and r ≥ 1. Then r tw(Gv ) ≤ 18(r + 1). Proof. On board. 18(r + 1) in the above proof can be made 3r + 1. Lemma Let v be a vertex of a planar graph G and let Li , be the vertices of G at distance i, 0 ≤ i ≤ n, from v . Then for any i, j ≥ 0, the treewidth of the subgraph Gi,i+j induced by vertices in Li ∪ Li+1 ∪ · · · ∪ Li+ j does not exceed 3j + 1. Proof. On board.
  • 39. Intuition The idea behind the shifting technique is as follows. Pick a vertex v of planar graph G and run breadth-first search (BFS) from v . For any i, j ≥ 0, the treewidth of the subgraph Gi,i+j induced by vertices in levels i, i + 1, . . . , i + j of BFS does not exceed 3j + 1. Now for an appropriate choice of parameters, we can find a“shift” of “windows”, i.e. a disjoint set of a small number of consecutive levels of BFS, “covering” the solution. Because every window is of small treewidth, we can employ the dynamic programing or the power of Courcelle’s theorem to solve the problem. We will see two examples.
  • 40. Intuition The idea behind the shifting technique is as follows. Pick a vertex v of planar graph G and run breadth-first search (BFS) from v . For any i, j ≥ 0, the treewidth of the subgraph Gi,i+j induced by vertices in levels i, i + 1, . . . , i + j of BFS does not exceed 3j + 1. Now for an appropriate choice of parameters, we can find a“shift” of “windows”, i.e. a disjoint set of a small number of consecutive levels of BFS, “covering” the solution. Because every window is of small treewidth, we can employ the dynamic programing or the power of Courcelle’s theorem to solve the problem. We will see two examples.
  • 41. Intuition The idea behind the shifting technique is as follows. Pick a vertex v of planar graph G and run breadth-first search (BFS) from v . For any i, j ≥ 0, the treewidth of the subgraph Gi,i+j induced by vertices in levels i, i + 1, . . . , i + j of BFS does not exceed 3j + 1. Now for an appropriate choice of parameters, we can find a“shift” of “windows”, i.e. a disjoint set of a small number of consecutive levels of BFS, “covering” the solution. Because every window is of small treewidth, we can employ the dynamic programing or the power of Courcelle’s theorem to solve the problem. We will see two examples.
  • 42. Intuition The idea behind the shifting technique is as follows. Pick a vertex v of planar graph G and run breadth-first search (BFS) from v . For any i, j ≥ 0, the treewidth of the subgraph Gi,i+j induced by vertices in levels i, i + 1, . . . , i + j of BFS does not exceed 3j + 1. Now for an appropriate choice of parameters, we can find a“shift” of “windows”, i.e. a disjoint set of a small number of consecutive levels of BFS, “covering” the solution. Because every window is of small treewidth, we can employ the dynamic programing or the power of Courcelle’s theorem to solve the problem. We will see two examples.
  • 43. Subgraph Isomorphism Subgraph Isomorphism: given graphs H and G , find a copy of H in G as subgraph. Parameter k := |V (H)|. EMSO formula of size k O(1) for Subgraph Isomorphism exists. This now using Courcelle’s Theorem implies that we have f (k, w ) · n time algorithm for Subgraph Isomorphism on graphs of treewidth w .
  • 44. Subgraph Isomorphism Subgraph Isomorphism: given graphs H and G , find a copy of H in G as subgraph. Parameter k := |V (H)|. EMSO formula of size k O(1) for Subgraph Isomorphism exists. This now using Courcelle’s Theorem implies that we have f (k, w ) · n time algorithm for Subgraph Isomorphism on graphs of treewidth w .
  • 45. Subgraph Isomorphism Subgraph Isomorphism: given graphs H and G , find a copy of H in G as subgraph. Parameter k := |V (H)|. EMSO formula of size k O(1) for Subgraph Isomorphism exists. This now using Courcelle’s Theorem implies that we have f (k, w ) · n time algorithm for Subgraph Isomorphism on graphs of treewidth w .
  • 46. Baker’s shifting strategy Subgraph Isomorphism for planar graphs: given planar graphs H and G , find a copy of H in G as subgraph. Parameter k := |V (H)|. Layers of the planar graph: (as in the definition of k-outerplanar): For a fixed 0 ≤ s < k + 1, delete every layer Li with i = s (mod k + 1) The resulting graph is k-outerplanar, hence it has treewidth at most 3k + 1. Using the f (k, w ) · n time algorithm for Subgraph Isomorphism, the problem can be solved in time f (k, 3k + 1) · n. We do this for every 0 ≤ s < k + 1: for at least one value of s, we do not delete any of the k vertices of the solution =⇒ we find a copy of H in G if there is one. Subgraph Isomorphism for planar graphs is FPT parameterized by k := |V (H)|.
  • 47. Baker’s shifting strategy Subgraph Isomorphism for planar graphs: given planar graphs H and G , find a copy of H in G as subgraph. Parameter k := |V (H)|. Layers of the planar graph: (as in the definition of k-outerplanar): For a fixed 0 ≤ s < k + 1, delete every layer Li with i = s (mod k + 1) The resulting graph is k-outerplanar, hence it has treewidth at most 3k + 1. Using the f (k, w ) · n time algorithm for Subgraph Isomorphism, the problem can be solved in time f (k, 3k + 1) · n. We do this for every 0 ≤ s < k + 1: for at least one value of s, we do not delete any of the k vertices of the solution =⇒ we find a copy of H in G if there is one. Subgraph Isomorphism for planar graphs is FPT parameterized by k := |V (H)|.
  • 48. Baker’s shifting strategy Subgraph Isomorphism for planar graphs: given planar graphs H and G , find a copy of H in G as subgraph. Parameter k := |V (H)|. Layers of the planar graph: (as in the definition of k-outerplanar): For a fixed 0 ≤ s < k + 1, delete every layer Li with i = s (mod k + 1) The resulting graph is k-outerplanar, hence it has treewidth at most 3k + 1. Using the f (k, w ) · n time algorithm for Subgraph Isomorphism, the problem can be solved in time f (k, 3k + 1) · n. We do this for every 0 ≤ s < k + 1: for at least one value of s, we do not delete any of the k vertices of the solution =⇒ we find a copy of H in G if there is one. Subgraph Isomorphism for planar graphs is FPT parameterized by k := |V (H)|.
  • 49. Baker’s shifting strategy Subgraph Isomorphism for planar graphs: given planar graphs H and G , find a copy of H in G as subgraph. Parameter k := |V (H)|. Layers of the planar graph: (as in the definition of k-outerplanar): For a fixed 0 ≤ s < k + 1, delete every layer Li with i = s (mod k + 1) The resulting graph is k-outerplanar, hence it has treewidth at most 3k + 1. Using the f (k, w ) · n time algorithm for Subgraph Isomorphism, the problem can be solved in time f (k, 3k + 1) · n. We do this for every 0 ≤ s < k + 1: for at least one value of s, we do not delete any of the k vertices of the solution =⇒ we find a copy of H in G if there is one. Subgraph Isomorphism for planar graphs is FPT parameterized by k := |V (H)|.
  • 50. Baker’s shifting strategy Subgraph Isomorphism for planar graphs: given planar graphs H and G , find a copy of H in G as subgraph. Parameter k := |V (H)|. Layers of the planar graph: (as in the definition of k-outerplanar): For a fixed 0 ≤ s < k + 1, delete every layer Li with i = s (mod k + 1) The resulting graph is k-outerplanar, hence it has treewidth at most 3k + 1. Using the f (k, w ) · n time algorithm for Subgraph Isomorphism, the problem can be solved in time f (k, 3k + 1) · n. We do this for every 0 ≤ s < k + 1: for at least one value of s, we do not delete any of the k vertices of the solution =⇒ we find a copy of H in G if there is one. Subgraph Isomorphism for planar graphs is FPT parameterized by k := |V (H)|.
  • 51. Baker’s shifting strategy Subgraph Isomorphism for planar graphs: given planar graphs H and G , find a copy of H in G as subgraph. Parameter k := |V (H)|. Layers of the planar graph: (as in the definition of k-outerplanar): For a fixed 0 ≤ s < k + 1, delete every layer Li with i = s (mod k + 1) The resulting graph is k-outerplanar, hence it has treewidth at most 3k + 1. Using the f (k, w ) · n time algorithm for Subgraph Isomorphism, the problem can be solved in time f (k, 3k + 1) · n. We do this for every 0 ≤ s < k + 1: for at least one value of s, we do not delete any of the k vertices of the solution =⇒ we find a copy of H in G if there is one. Subgraph Isomorphism for planar graphs is FPT parameterized by k := |V (H)|.
  • 52. Baker’s shifting strategy Subgraph Isomorphism for planar graphs: given planar graphs H and G , find a copy of H in G as subgraph. Parameter k := |V (H)|. Layers of the planar graph: (as in the definition of k-outerplanar): For a fixed 0 ≤ s < k + 1, delete every layer Li with i = s (mod k + 1) The resulting graph is k-outerplanar, hence it has treewidth at most 3k + 1. Using the f (k, w ) · n time algorithm for Subgraph Isomorphism, the problem can be solved in time f (k, 3k + 1) · n. We do this for every 0 ≤ s < k + 1: for at least one value of s, we do not delete any of the k vertices of the solution =⇒ we find a copy of H in G if there is one. Subgraph Isomorphism for planar graphs is FPT parameterized by k := |V (H)|.
  • 53. Baker’s shifting strategy Subgraph Isomorphism for planar graphs: given planar graphs H and G , find a copy of H in G as subgraph. Parameter k := |V (H)|. Layers of the planar graph: (as in the definition of k-outerplanar): For a fixed 0 ≤ s < k + 1, delete every layer Li with i = s (mod k + 1) The resulting graph is k-outerplanar, hence it has treewidth at most 3k + 1. Using the f (k, w ) · n time algorithm for Subgraph Isomorphism, the problem can be solved in time f (k, 3k + 1) · n. We do this for every 0 ≤ s < k + 1: for at least one value of s, we do not delete any of the k vertices of the solution =⇒ we find a copy of H in G if there is one. Subgraph Isomorphism for planar graphs is FPT parameterized by k := |V (H)|.
  • 54. Baker’s shifting strategy Subgraph Isomorphism for planar graphs: given planar graphs H and G , find a copy of H in G as subgraph. Parameter k := |V (H)|. Layers of the planar graph: (as in the definition of k-outerplanar): For a fixed 0 ≤ s < k + 1, delete every layer Li with i = s (mod k + 1) The resulting graph is k-outerplanar, hence it has treewidth at most 3k + 1. Using the f (k, w ) · n time algorithm for Subgraph Isomorphism, the problem can be solved in time f (k, 3k + 1) · n. We do this for every 0 ≤ s < k + 1: for at least one value of s, we do not delete any of the k vertices of the solution =⇒ we find a copy of H in G if there is one. Subgraph Isomorphism for planar graphs is FPT parameterized by k := |V (H)|.
  • 55. Baker’s shifting strategy Subgraph Isomorphism for planar graphs: given planar graphs H and G , find a copy of H in G as subgraph. Parameter k := |V (H)|. Layers of the planar graph: (as in the definition of k-outerplanar): For a fixed 0 ≤ s < k + 1, delete every layer Li with i = s (mod k + 1) The resulting graph is k-outerplanar, hence it has treewidth at most 3k + 1. Using the f (k, w ) · n time algorithm for Subgraph Isomorphism, the problem can be solved in time f (k, 3k + 1) · n. We do this for every 0 ≤ s < k + 1: for at least one value of s, we do not delete any of the k vertices of the solution =⇒ we find a copy of H in G if there is one. Subgraph Isomorphism for planar graphs is FPT parameterized by k := |V (H)|.
  • 56. Bisection For a given n-vertex graph G , weight function w : V (G ) → N and integer k, the task is to decide if there is a partition of V (G ) into sets V1 and V2 of weights w (V (G ))/2 and w (V (G )/2 and such that the number of edges between V1 and V2 is at most k. In other words, we are looking for a balanced partition (V1 , V2 ) with a (V1 , V2 )-cut at most k.
  • 57. Bisection For a given n-vertex graph G , weight function w : V (G ) → N and integer k, the task is to decide if there is a partition of V (G ) into sets V1 and V2 of weights w (V (G ))/2 and w (V (G )/2 and such that the number of edges between V1 and V2 is at most k. In other words, we are looking for a balanced partition (V1 , V2 ) with a (V1 , V2 )-cut at most k. Lemma Bisection is solvable in time 2t · nO(1) on an n-vertex given together with its tree decomposition of width t. Theorem Bisection on planar graphs is solvable in time 2O(k) · nO(1) . Proof. On board.
  • 58. Approximation schemes Definition: A polynomial-time approximation scheme (PTAS) for a problem P is an algorithm that takes an instance of P and a rational number ε > 0, always finds a (1 + ε)-approximate solution, the running time is polynomial in n for every fixed ε > 0. 2 Typical running times: 21/ε · n, n1/ε , (n/ε)2 , n1/ε . Some classical problems that have a PTAS: Independent Set for planar graphs TSP in the Euclidean plane Steiner Tree in planar graphs Knapsack
  • 59. Baker’s shifting strategy for EPTAS Fact: There is a 2O(1/ε) · n time PTAS for Independent Set for planar graphs. Let D := 1/ε. For a fixed 0 ≤ s < D, delete every layer Li with i = s (mod D) The resulting graph is D-outerplanar, hence it has treewidth at most 3D + 1 = O(1/ε). Using the O(2w · n) time algorithm for Independent Set, the problem can be solved in time 2O(1/ε) · n. We do this for every 0 ≤ s < D: for at least one value of s, we delete at most 1/D = ε fraction of the solution =⇒ we get a (1 − ε)-approximate solution.