Today’s post is about TreeWidth. When I first came across treewidth, I became an instant fan.
Definition : A tree-decomposition of a graph
is a pair
where
is a family of subsets of
, one for each node of
, and
is a tree such that :
- The union of the sets
is equal to
.
- for all edges
, there exists an
with
and
.
- for all
: if
is on the path from
to
in
, then
.
The treewidth of a tree-decomposition is
. The treewidth of a graph
is the minimum treewidth over all possible tree-decompositions of
.
Following are some interesting facts :
- Exercise : TreeWidth of a tree is 1.
- Exercise : TreeWidth of a clique on
vertices in
.
- Determining whether treewidth of a given graph is at most
is NP-complete.
- See [BGHK’95] for interesting applications of treewidth Eg : Choleski factorization on sparse symmetric matrices.
- There is an analogous notion of pathwidth which is also NP-complete.
Approximating tree-width : Bodlaender et. al [BGHK’95] presented an factor approximation algorithm for treewidth. This also gives an
factor approximation algorithm for pathwidth. Their algorithm works by repeatedly finding vertex separators and uses Leighton-Rao’s algorithm at its heart. The main insights from their paper are as follows :
- If there is a factor
approximation algorithm for vertex separator then there is an
approximation algorithm for treewidth.
- if there is a factor
approximation algorithm for treewidth then there is an
approximation algorithm for pathwidth.
In 1995 the best known approximation factor for vertex separator was . Feige, Hajiaghayi and Lee [FHL’2008] improved this to
. Hence we have
and
factor approximation factors for treewidth and pathwidth respectively.
Special cases : What about computing treewidth of restricted classes of graphs ?
- When
is any fixed constant, the graphs with treewidth
can be recognized, and a width
tree decomposition can be constructed for them, in linear time [Bodlaender’96].
- Seymour and Thomas [ST’] showed that branchwidth of planar graphs can be computed in polynomial time. This implies a factor 3/2 approximation for treewdith of planar graphs.
Bounded TreeWidth : If the treewidth of a graph is bounded by some fixed constant
, then several problems (that are NP-hard (even PSPACE-hard) for general graphs) can be solved in polynomial-time and often linear time !! Some of them include Maximum Independent set (hence maximum Clique), Hamiltonian cycle, Graph Isomorphism. Instead of listing all these problems, lets look at the following awesome theorem.
Courcelle’s Theorem : Any property of graphs definable in monadic second-order logic (MSO2) can be decided in linear time on any class of graphs of bounded tree-width. In other words, MSO2 is fixed-parameter tractable on any such class of graphs.
Theorem [KT’2010] : If C is any class of graphs which is closed under taking sub-graphs and whose tree-width is not bounded by a poly-logarithmic function then MSO2-model checking is intractable on C (under suitable assumptions from complexity theory)
Open Problems :
- Perhaps the most interesting open question is to obtain a constant factor approximation for treewidth.
- Bodlaender et. al ruled out absolute approximation algorithm, (unless P = NP) for treewidth and pathwidth. This is the best known hardness. Can we even rule out PTAS for treewidth ? Note that the hardness of treewidth implies the hardness of vertex separator (with constant factor blow-up).
- How hard is computing treewidth of planar graphs ? NP-hardness is not known. Many researchers I talked to, believe that treewidth of planar graphs can be computed in polynomial-time.
- Can the lower bound from [KT’2010] be improved ? In this context, it is interesting to note that Maximum Independent Set can be solved in polynomial time even when the treewidth is bounded by
.
- Datta et. al [DLNTW’2009] showed that planar graph isomorphism is in logspace. Is isomorphism for graphs with bounded treewidth in logspace ? I asked this question to some researchers, and this seems to be an open problem.
References :
- [BGHK’95] Hans L. Bodlaender, John R. Gilbert, Hjálmtyr Hafsteinsson, Ton Kloks: Approximating Treewidth, Pathwidth, Frontsize, and Shortest Elimination Tree. J. Algorithms 18(2): 238-255 (1995)
- [Bodlaender’96] Bodlaender, Hans L. : A linear time algorithm for finding tree-decompositions of small treewidth. SIAM Journal on Computing 25 (6): 1305–1317 (1996)
- [KT’2010] Stephan Kreutzer, Siamak Tazari Lower Bounds for the Complexity of Monadic Second-Order Logic arXiv:1001.5019
- [FHL’2008] Uriel Feige, MohammadTaghi Hajiaghayi, James R. Lee: Improved Approximation Algorithms for Minimum Weight Vertex Separators. SIAM J. Comput. 38(2): 629-657 (2008)
- [ST’90] PaulD.Seymour and Robin Thomas : Call Routing and the Ratcacher. Combinatorica 14(2): 217-241 (1994)
- [DLNTW’2009] Samir Datta, Nutan Limaye, Prajakta Nimbhorkar, Thomas Thierauf, Fabian Wagner: Planar Graph Isomorphism is in Log-Space. IEEE Conference on Computational Complexity 2009: 203-214