Sparse Induced Subgraphs in -Free Graphs of Bounded Clique Number
Abstract
Many natural computational problems, including e.g. Max Weight Independent Set, Feedback Vertex Set, or Vertex Planarization, can be unified under an umbrella of finding the largest sparse induced subgraph that satisfies some property definable in CMSO2 logic. It is believed that each problem expressible with this formalism can be solved in polynomial time in graphs that exclude a fixed path as an induced subgraph. This belief is supported by the existence of a quasipolynomial-time algorithm by Gartland, Lokshtanov, Pilipczuk, Pilipczuk, and Rzążewski [STOC 2021], and a recent polynomial-time algorithm for -free graphs by Chudnovsky, McCarty, Pilipczuk, Pilipczuk, and Rzążewski [SODA 2024].
In this work we extend polynomial-time tractability of all such problems to -free graphs of bounded clique number.
Keywords and phrases:
-free graphs, maximum weight induced subgraph, maximum weight independent setFunding:
Maria Chudnovsky: Supported by NSF Grant DMS-2348219 and by AFOSR grant FA9550-22-1-0083.Copyright and License:
2012 ACM Subject Classification:
Mathematics of computing Graph algorithmsEditors:
Ho-Lin Chen, Wing-Kai Hon, and Meng-Tsung TsaiSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
When studying computationally hard problems, a natural question to investigate is whether they become tractable when input instances are somehow “well-structured”. In particular, in algorithmic graph theory, we often study the complexity of certain (hard in general) problems, when restricted to specific graph classes. Significant attention is given to classes that are hereditary, i.e., closed under vertex deletion.
Potential maximal cliques.
Arguably, the problem that is best studied in this context is Max Weight Independent Set (MWIS) in which we are given a vertex-weighted graph and we ask for a set of pairwise non-adjacent vertices of maximum possible weight. Investigating the complexity of MWIS in restricted graph classes led to discovering numerous new tools and techniques in algorithmic graph theory [24, 21, 18, 16]. One of such general techniques is the framework of potential maximal cliques by Bouchitté and Todinca [7, 8]. Intuitively speaking, a potential maximal clique (or PMC for short) in a graph is a bag of a “reasonable” tree decomposition of . The key contribution of Bouchitté and Todinca [7, 8] is showing that:
-
1.
the family of PMCs in a graph can be enumerated in time polynomial in and , and
-
2.
given a family containing all PMCs of (and possibly some other sets as well), MWIS can be solved in time polynomial in and by mimicking natural dynamic programming on an appropriate (but unknown) tree decomposition.
Consequently, MWIS admits a polynomial-time algorithm when restricted to any class with polynomially many PMCs. (Here we say that a class of graphs has polynomially many PMCs if there exists a polynomial , such that the number of PMCs in any -vertex graph in is at most .)
Later this framework was extended by Fomin, Todinca, and Villanger [19] to the problem of finding a large “sparse” (here meaning: of bounded treewidth) induced subgraph satisfying certain CMSO2 formula . (CMSO2 stands for Counting Monadic Second Order logic, which is a logic where one can use vertex/edge variables, vertex/edge set variables, quantifications over these variables, and standard propositional operands.) Formally, for a given integer and a fixed CMSO2 formula with one free set variable, the -MWIS problem (here “MWIS” stands for “max weight induced subgraph”) is defined as follows.
As shown by Fomin, Todinca, and Villanger [19], every problem expressible in this formalism can be solved in polynomial time on classes of graphs with polynomially many potential maximal cliques.
Note that if and is a formula satisfied by all sets, then -MWIS is exactly MWIS. It turns out that -MWIS captures several other well known computational problems (see also the discussion in [19, 29]), e.g.;
-
Feedback Vertex Set (one of Karp’s original 21 NP-complete problems [27]), equivalent by complementation to finding an induced forest of maximum weight,
-
finding a largest weight induced subgraph whose every component is a cycle,
-
finding a maximum number of pairwise disjoint and non-adjacent induced cycles.
MWIS in graphs excluding a long induced path.
Despite all advantages of the Bouchitté-Todinca framework, its applicability is somehow limited, as there are numerous natural hereditary graph classes that do not have polynomially many PMCs. Can we use at least some parts of the framework outside its natural habitat?
A notorious open question in algorithmic graph theory is whether MWIS (and, more generally, -MWIS) can be solved in polynomial time in graphs that exclude a fixed path as an induced subgraph. It is believed that this question has an affirmative answer, which is supported by the existence of a quasipolynomial-time algorithm of Gartland, Lokshtanov, Pilipczuk, Pilipczuk, and Rzążewski [20, 36, 22]. However, if it comes to polynomial-time algorithms, we know much less.
A polynomial-time algorithm for MWIS (as well as for many other problems) in -free graphs (i.e., graphs that exclude a 4-vertex path as an induced subgraph; analogously we define -free graphs for any ), was discovered already in 1980s [14]. In today’s terms we would say that these graphs have bounded clique-width and thus polynomial-time algorithms for many natural problems, including -MWIS, follow from a celebrated theorem by Courcelle, Makowsky, and Rotics [15]. However, already the -free case proved to be quite challenging. In 2014, Lokshtanov, Vatshelle, and Villanger [30] showed that Max Weight Independent Set admits a polynomial-time algorithm in -free graphs – by adapting the framework of Bouchitté and Todinca. Let us emphasize that -free graphs might have exponentially many PMCs, so the approach discussed above cannot be applied directly. Instead, Lokshtanov, Vatshelle, and Villanger proved that in polynomial time one can enumerate a family of some PMCs, and this family is sufficient to solve MWIS via dynamic programming.
By extending this method (and adding a significant layer of technical complicacy), Grzesik, Klimošová, Pilipczuk, and Pilipczuk [23] managed to show that MWIS is polynomially-solvable in -free graphs.
Some time later, Abrishami, Chudnovsky, Pilipczuk, Rzążewski, and Seymour [1] revisited the -free case and introduced a major twist to the method: they proved that in order to solve MWIS and its generalizations, one does not have to have PMCs exactly, but it is sufficient to enumerate their containers: supersets that do not introduce any new vertices of the (unknown) optimum solution. They also proved that containers for all PMCs in -free graphs can be enumerated in polynomial time, circumventing the problem of exponentially many PMCs and significantly simplifying the approach of Lokshtanov, Vatshelle, and Villanger [30]. This result yields a polynomial-time algorithm for -MWIS in -free graphs.
By further relaxing the notion of a container (to a carver), Chudnovsky, McCarty, Pilipczuk, Pilipczuk, and Rzążewski [13] managed to extend polynomial-time solvability of -MWIS to the class of -free graphs.
Our contribution.
In this work we push the boundary of tractability of -MWIS in -free graphs by showing the following result.
Theorem 1.1.
For every fixed integers , and a CMSO2 formula , the -MWIS problem can be solved in polynomial time in -free graphs with clique number at most .
Quite interestingly, in -free graphs, the boundedness of treewidth is equivalent to the boundedness of degeneracy and to the boundedness of treedepth [4]. Thus, Theorem 1.1 yields a polynomial-time algorithm for problems like:
-
for constant , finding a largest set of vertices inducing a subgraph of maximum degree at most (see, e.g., [25]).
Let us remark that the idea of investigating -free graphs of bounded clique number was considered before. Pilipczuk and Rzążewski [37] showed that -free graphs of bounded clique number have polynomially many PMCs and thus the framework of Bouchitté and Todinca can be applied here directly. However, this is no longer true for -free graphs (even bipartite) (see the example in the Conclusions in [13]). On the other hand, Brandstädt and Mosca [9] provided a polynomial-time algorithm for MWIS in -free triangle-free graphs. However, they used a rather ad-hoc approach that works well for MWIS, but gives little hope to generalize it to more complicated instances of -MWIS. Our work vastly extends both these results.
2 Technical overview
For standard graph notation used in this work, including the definition of a tree decomposition, we refer to the preliminaries section of the full version in the appendix.
As mentioned, in -free graphs the width parameters treewidth, treedepth, and degeneracy are functionally equivalent [4]. Furthermore, as discussed in [13], the property of having treewidth, treedepth, or degeneracy at most can be expressed as a CMSO2 formula of size depending on only. Consequently, if we define problems -MWIS and -MWIS analogously as -MWIS, but with respect to treedepth and degeneracy, these three formalisms describe the same family of problems, when restricted to -free graphs.
Treedepth structures.
Following [13], the treedepth formalism is the most handy; we henceforth work with -MWIS. Furthermore, it is more convenient to work not just with induced subgraphs of bounded treedepth, but with treedepth- structures: induced subgraphs of treedepth at most with a fixed elimination forest. Let us proceed with formal definitions.
The rooted forest is a forest in which each component has exactly one distinguished vertex, called a root. A path in a rooted forest is called vertical if it connects a vertex and any of its ancestors. Given a vertex , we define its depth as the number of vertices on the path connecting and the root (so the root has depth ). The height of the rooted forest is equal to the maximum depth of a vertex of . By we denote a set of vertices of of depth exactly . We also write for .
We say that vertices and are -comparable if they can be connected via a vertical path. Otherwise, we say that they are -incomparable. An elimination forest of graph is a rooted forest such that and for each edge vertices and are -comparable. The treedepth of graph is the minimum height of any possible elimination forest of graph .
Given a graph and an integer , a treedepth- structure (the notion first proposed in [13]) is a rooted forest of height at most such that is a subset of and is an elimination forest of the subgraph of induced by . A treedepth- structure is a substructure of a treedepth- structure if is a subgraph of (as a rooted forest) and every root of is also a root of . A treedepth- structure is called maximal if there is no treedepth- structure such that is a substructure of and . Equivalently, is maximal if it cannot be extended by adding a leaf preserving the bound on the height of . To avoid notational clutter, we sometimes treat as set of vertices, for example in expressions .
Using treedepth structures.
Let be a treedepth- structure in ; think of as the sought solution to the -MWIS problem in question. As proven in [19] (and cast onto the current setting in [13]), there exists a tree decomposition of whose every bag is either contained in for a leaf of , or whose intersection with is contained in a single root-to-leaf path of , excluding the leaf. We call the latter bags -avoiding.
Furthermore, the framework of [19] shows how to solve -MWIS given a family of subsets of with the promise that all bags of such tree decomposition are in . In [1], it is shown that it suffices for to contain only containers of bounded defect for bags in : we require that there exists a universal constant such that for every there exists such that the bag is contained in and contains at most elements of .
Note that if is a leaf of , then may contain only ancestors of among the vertices of , so is an excellent container for any bag contained in . Thus, it suffices to provide containers for -avoiding bags. This is how [1] solved -MWIS in -free graphs; by generalizing the definition of a container to a carver, the same approach is applied to -free graphs in [13].
In fact, for a treedepth- structure , the tree decomposition of [19] is constructed as follows: it is shown that there exists a minimal chordal completion of (i.e., an inclusion-wise minimal set of edges to add to to make it chordal) whose addition keeps a treedepth- structure, and is any clique tree of . A potential maximal clique (abbrieviated as PMC) is a maximal clique in for some minimal chordal completion of . Both [1] and [13] actually provide containers/carvers for every treedepth- structure in and an arbitrary choice of a -avoiding PMC in . Furthermore, [13] provides an example of a family of -free triangle-free graphs where such a statement is impossible (i.e., any such family of containers/carvers would need to be of exponential size).
However, the algorithmic framework of [19, 1, 13] requires only that the provided family contains containers/carvers for all bags of only one “good” tree decomposition , and only for the sought solution . This should be contrasted with all -avoiding PMCs, which is in some sense the set of all reasonable -avoiding bags, and for all treedepth- structures . Thus, if we want to tackle -free graphs of bounded clique number, we need to significantly deviate from the path of [1, 13] and either use the power of the choice of or the fact that we need to handle only being the optimum solution to the problem we are solving.
From PMCs to minimal separators.
The assumption of bounded clique number allows us to quickly reduce the case of finding a container for a PMC to finding a container for a minimal separator. For a set , a connected component of is full to if ; a set is a minimal separator if it has at least two full components.111Note the following equivalent definition: We say that a set of vertices is a - separator if and belong to distinct components in . A -separator is called minimal if no proper subset of is a -separator. A set of vertices is called a minimal separator of graph if there exists a pair of vertices and such that is a minimal -separator. A classic fact about PMCs [8] is that for every potential maximal clique and for every connected component of , the set is a minimal separator. By a classic result of Gyárfás, the class of -free graphs is -bounded, in particular, if is -free and (where is the number of vertices in a largest clique in ), then . This, combined with a VC-dimension argument based on the classic result of Ding, Seymour, and Winkler [17], shows the following:
Lemma 2.1.
For every and there exists such that for every -free graph with and any PMC of one of the two following conditions holds:
-
1.
there exists such that , or
-
2.
there exists a family of size at most such that .
That is, except for a simple case for some , the PMC is a union of a constant number of minimal separators. Hence, it suffices to generate a family of containers for -avoiding minimal separators (which are defined analogously to -avoiding bags) and take to be the family of unions of all tuples of at most elements of .
Capturing minimal separators.
Let be a -free graph with . We start as in [1, 13]: let be an arbitrary treedepth- structure in and let be a minimal separator in with full components and such that is -avoiding. We want to design a polynomial-time algorithm that outputs a family of subsets of that contains a container for . The algorithm naturally does not know nor ; the convenient and natural way of describing the algorithm as performing some nondeterministic guesses about and , with the goal of outputting a container for in the end. We succeed if the number of subcases coming from the guesses is polynomial in the size of and the family consists of all containers generated by all possible runs of the algorithm.
We almost succeed with this quest. That is, we are able to guess an “almost container” for : contains a constant number of vertices of and we identified a set of tricky connected components of that are contained in ; all other connected components of are contained in , in , or in some other connected component of . Every tricky component is somewhat simpler: we identify a subset such that if is the family of all connected components of and of , then every is a module of . (A set is a module in if every vertex is either complete to or anti-complete to .)
Observe now that every connected component satisfies , as contains a vertex complete to . Hence, we can recurse on , understanding it fully (more precisely, finding optimum partial solutions; the definition of this “partial” requires a lot of CMSO2 mumbling).
Furthermore, we observe that the quotient graph is bipartite. Thus, if we can understand how to solve -MWIS on -free bipartite graphs, then we should be done: the partial solutions from components , combined with the understanding of the -free bipartite graph should give all partial solutions of for every . This, in turn, should give an understanding on how -MWIS behaves on . As , this should suffice to solve -MWIS on using to play the role of the container for .
The bipartite case.
Explaining properly all “should”s from the previous paragraph is quite involved and tedious. In this overview, let us focus on the more interesting case of solving -MWIS in -free bipartite graphs. Here, we actually prove the following result.
Theorem 2.2.
There exists an algorithm that, given a -free bipartite graph and an integer , runs in time and computes a family of subsets of with the following guarantee: for every such that is of treedepth at most , there exists a tree decomposition of such that for every we have and .
We remark that Theorem 2.2 is not needed if one just wants to solve the MWIS problem, as this problem can be solved in general bipartite graphs using matching or flow techniques.
On the other hand, our work identified the bipartite case as an interesting subcase in exploring tractability of -MWIS in -free graphs. To state a precise problem for future work, we propose polynomial-time tractability of Feedback Vertex Set in -free bipartite graphs. Meanwhile, Theorem 2.2 and its proof in Section 3 can be of independent interest.
The proof of Theorem 2.2 starts from the work of Kloks, Liu, and Poon [28], who showed that chordal bipartite graphs have polynomial number of PMCs, and thus -MWIS problem is solvable in this graph class by the direct application of the PMC framework of Bouchitté and Todinca. (A graph is chordal bipartite if it is bipartite and does not contain induced cycles longer than .) A -free bipartite graph is almost chordal bipartite: it can contain six-vertex cycles.
We would like to add some edges to the input graph so that it becomes chordal bipartite. Let be an induced six-vertex cycle in ; we would like to add the edge to keep bipartite but break . We show that, if one chooses carefully, one can do it so that remains -free. However, such an addition may break the sought solution : if but are incomparable in the elimination forest , then is no longer a treedepth- structure in .
We remedy this by a thorough investigation of the structure of the neighborhood of a six-vertex cycle in a -free graph, loosely inspired by [5]. On a high level, we show that there is a branching process with a polynomial number of outcomes that, in some sense “correctly” completes to a chordal bipartite graph, proving Theorem 2.2.
In summary, the proof of Theorem 1.1 consists of three ingredients. First, we show the guesswork that leads to a polynomial number of candidate “almost containers” for a minimal separator in the input graph . Second, we focus on bipartite graphs and prove Theorem 2.2. Finally, we show how these two tools combine with the dynamic programming framework of [19, 1, 13].
In this extended abstract, we present a more detailed overview of the proof of one part, namely Theorem 2.2. The full version of the work can be found in the appendix.
3 -free bipartite graphs: Overview of the proof of Theorem 2.2
In this section we focus on -free bipartite graphs. We prove the following theorem.
Theorem 2.2. [Restated, see original statement.]
There exists an algorithm that, given a -free bipartite graph and an integer , runs in time and computes a family of subsets of with the following guarantee: for every such that is of treedepth at most , there exists a tree decomposition of such that for every we have and .
The general approach is to reduce to the case of chordal bipartite graphs. Recall that a bipartite graph is chordal bipartite if its every cycle of length longer than has a chord (i.e., the only induced cycles are of length ).
The class of MWIS problems is tractable on chordal bipartite graphs thanks to the following result of Kloks, Liu, and Poon (and the general algorithm of Fomin, Todinca, and Villanger [19]).
Theorem 3.1 (Corollary 2 of [28]).
A chordal bipartite graph on vertices and edges has minimal separators.
Observe that -free bipartite graphs are “almost” chordal bipartite: they only additionally allow as an induced subgraph. Our approach is to add edges to the input graph so that it becomes chordal bipartite, without destroying the sought solution. To this end, the following folklore characterization will be handy. (We use to mark statements whose proofs are omitted in this extended abstract due to space constraints.)
Lemma 3.2 (folklore, ).
Let be a bipartite graph with bipartition . Then, is chordal bipartite if and only if for every minimal separator of , is complete to (i.e., the separator induces a complete bipartite graph, also called a biclique).
Lemma 3.2 motivates the following process of completing a -free bipartite graph into a chordal bipartite graph: while contains a minimal separator that violates the statement of Lemma 3.2, complete into a biclique. In Section 3.1 we analyse this process and show that it is well-behaved on -free graphs: it does not lead outside the class of -free bipartite graphs.
3.1 Completing to a chordal bipartite graph
Throughout the rest of this section we assume that the input graph has a fixed bipartition into sets (this is an ordered partition). We remark that we will often look at certain induced subgraphs of that are not necessarily connected, but a vertex never changes its side of the bipartition.
Lemma 3.2 motivates the following definition. Let be a bipartite graph with bipartition , and let be a minimal separator of . We say that induces a biclique if is complete to . The operation of completing into a biclique turns into a graph , where .
The next two lemmata (proved by a tedious case analysis) are pivotal to our completion process.
Lemma 3.3 ().
Let be a -free bipartite graph. Let be a minimal separator. Let be the result of completing into a biclique. Then is also -free.
Lemma 3.4 ().
Let be a -free bipartite graph. Let be a minimal separator in . Let be the result of completing into a biclique. Let be an induced in . Then, is also an induced in .
Let be a -free bipartite graph with fixed bipartition , and let be a treedepth- structure in . A tuple is a bad (with respect to ) in if is an induced six-vertex cycle in , and , are two vertices that are at the same time (a) opposite vertices of , and (b) incomparable vertices of . That is, if one adds the edge to (which can be done without violating the biparteness of ), then one breaks the treedepth- structure , i.e., is not a treedepth- structure in .
We have the following simple corollary of Lemma 3.4.
Lemma 3.5.
Let be a -free bipartite graph, let be a treedepth- structure in , let be a minimal separator in , and let be a result of completing into a biclique. Assume that there is no bad in with respect to . Then, is a treedepth- structure in and, furthermore, there is no bad in with respect to .
Proof.
By contradiction, suppose that . As in a biclique in , contains either two or three consecutive vertices of . Thus, is a path and belongs to exactly one component of . Without loss of generality, we can assume that does not lie in , i.e., .
Let be the two vertices of adjacent on to the vertices of . Note that : either and are on the same biparteness side of or and then .
Let be the shortest path from to via . Then, induce a hole in . Since is of length at least , is not shorter than . Since is -free, is a six-vertex hole. This can only happen if is of length and for some . Then, , where lie in a single component of different than . Without loss of generality, we can assume that . Then we can find a shortest path , which connects and via ; it is of length at least . Then the path is an induced path in on at least vertices, a contradiction.
We conclude this section with the following enumeration.
Lemma 3.6.
There exists an algorithm that, given a -free bipartite graph and an integer , runs in polynomial time and returns a family of subsets of of size with the following property: for every treedepth- structure in that admits no bad , there exists a tree decomposition of such that for every , the set belongs to and contains at most elements of .
Proof.
Consider the following process. Start with . While is not chordal bipartite, find an induced six-vertex cycle in , fix two opposite vertices and in , find a minimal separator in that contains and (note that any minimal separator separating the two components of would do), complete into a biclique obtaining , and set .
Lemma 3.3 ensures that stays -free bipartite. Lemma 3.5 ensures that every treedepth- structure in that admits no bad remains so in .
By Theorem 3.1, has minimal separators. Using [7, 8], this allows us to bound the number of potential maximal cliques of by and enumerate them in a family .
As shown in [13], there exists a minimal chordal completion of such that for every maximal clique of , the set is contained in a single leaf-to-root path in and thus is of size at most . Since all these maximal cliques are enumerated in , any clique tree of serves as the promised tree decomposition .
3.2 Cleaning
In this section we define a branching step that cleans a specific part of the graph. The step will be general enough to be applicable in many contexts.
Let be a -free bipartite graph. We say that a triple of pairwise disjoint vertex sets of is -free if there are no two anticomplete s of the form . Note that such a configuration naturally appears in a -free bipartite graph if is in one side on the bipartition, is in the other side, and there is an additional vertex in the same side as such that but . In our case, -free sets appear naturally in the following context.
Lemma 3.7.
Let be a -free bipartite graph with a fixed bipartition . Let and be two disjoint subsets contained in , for some , and let . Furthermore, assume that there exists a vertex such that but . Then, is -free.
Proof.
Any two anticomplete s of the form , together with , induce a in .
Recall that in our setting, we have some unknown treedepth- structure in and we are building a container for it. That is, we are happy with inserting any number of vertices of into the container, as long as we are guaranteed that we insert only a constant number of vertices of along the way. In the case of a -free triple , we would like to simplify this part of by filtering out vertices of that have neighbors both in and in . To achieve this goal, we will guess a set that on one hand contains (in one of the branches) at most a constant number of vertices of the fixed unknown , and on the other hand satisfies the following: no has a neighbor both in and in .
To this end, we will rely on the following simple yet powerful observation. Observe that if is -free and both and are independent sets (which happen, in particular, if is on one side of the bipartition and is on the other side of the bipartition), then, for every distinct either and are comparable by inclusion or and are comparable by inclusion. This allows to use the following lemma on subsets of , with the orders and being inclusion of the neighborhoods in and , respectively.
Lemma 3.8 (see Lemma 4.1 in [23]).
Let and be two partial orders on the set such that any pair of elements of is comparable in or in . Then, there exists an element such that for any element we have or .
This observation is the engine of the following lemma that formalizes our goal of filtering out vertices of that have neighbors both in and in .
Lemma 3.9.
Fix an integer . Let be a graph, and let be a -free triple in with both and being independent set. Then one can in polynomial time enumerate a family of subsets of of size at most with the following guarantee:
-
For every , there is no with both and nonempty.
-
For every treedepth- structure in , there exists such that .
Proof.
Fix a treedepth- structure in . We will describe the process of enumerating the elements of as a branching algorithm, guessing some properties of . The number of leaves of the branching will be polynomial in the size of and in each leaf of the branching we will output one set that satisfies the second property for every that agrees with the guesses made in this leaf.
For every , let be the maximum integer such that contains at least two vertices; if such a does not exist. Similarly define with respect to . For , let . Note that sets form a partition of .
Initialize . For every , we we will guess some set of vertices and include them into . We will argue that there will be a branch where the vertices guessed for ensure that every vertex from satisfies the first statement of the lemma. Thus, for (at least) one of sets generated in the process, the statement will hold for every vertex in .
Consider fixed . If is empty, there is nothing to do, so assume otherwise. Define the following two orders and on :
Apply Lemma 3.8 to with and , obtaining a vertex .
If , guess and add to . This adds at most vertices of to , while adds to all vertices of such that and .
If , guess two elements and add to . This adds at most vertices of to , while adds to every such that .
Perform symmetrical operation for and : If , guess and add to . This adds at most vertices of to , while adds to all vertices of such that and . If , guess two elements and add to . This adds at most vertices of to , while adds to every such that .
Finally, add the resulting set to if it satisfies the first bullet point of the statement.
We have already argued that in the branch when all guesses concerning are correct, the first bullet point of the statement is satisfied. Furthermore, the size of is bounded by
Finally, observe that the number of branches is bounded by as for every we guess at most four vertices of .
Definition 3.10.
Let be a -free bipartite graph with a fixed bipartition and let . The neighborhood partition with respect to is a partition of into sets depending on (1) their side in the bipartition, and (2) their neighborhood in . More precisely,
Lemma 3.11.
Let be a -free bipartite graph with a fixed bipartition , let , and let be the neighborhood partition with respect to . Then, for every distinct , the triple is -free.
Proof.
There is no of the form unless and are on one side of the bipartition, and is on the other side of the bipartition. Then, by the definition of , the vertices of and the vertices of differ in their neighborhood in : there exists such that either or . Then, the claim follows from Lemma 3.7 and the symmetry of .
We summarize this section with the following cleaning step.
Lemma 3.12.
Let be a -free bipartite graph with a fixed bipartition , let , and let be the neighborhood partition with respect to . Then one can in time enumerate a family of at most subsets of with the following properties:
-
For every , for every , the elements of are contained in a single set of .
-
For every treedepth- structure in , there exists such that .
Proof.
Observe that . Let be the family of all triples where are distinct elements of . For every triple , we apply Lemma 3.9 obtaining a family ; Lemma 3.11 asserts that the assumptions are satisfied. For every triple insert into . The promised guarantees and size bounds are immediate from Lemma 3.9 and the bound , which implies .
3.3 Branching on a bad s
The tools developed in Section 3.1 allow us to solve -MWIS on , assuming that there is no bad w.r.t. the solution treedepth- structure . We now investigate properties of bad s and how to branch on them.
We will often denote an induced as . Then are pairs of the opposite vertices in . We implicitly assume that the indices behave cyclically, i.e., etc. We will need the following observation implicit in [6].
Lemma 3.13 ().
Let be a -free bipartite graph, let be an induced in , and let be a connected component of that contains at least two vertices. Then, for every , the set equals to either or .
For an induced six-vertex-cycle , denote
Furthermore, let be the union of vertex sets of all connected components of that contain at least 2 vertices. ( stands for the “main remainder”.) With this notation, Lemma 3.13 states that .
Greatly simplifying, our algorithm will guess a bad , resolve using cleaning, and recurse on connected components of . To restrict the space of possible recursive calls, we need the following observation.
Lemma 3.14.
Let be a -free bipartite graph with a fixed bipartition , and let be a family of pairwise disjoint and anticomplete subsets of such that for every , is connected and . Let be a connected component of , let be the connected component of that contains . Then, for every , either or there exists a single set such that . Consequently, there exists a subfamily of size at most such that (i.e., is a connected component of ).
Proof.
Let be an inclusion-wise minimal set such that . Assume ; let be distinct. By minimality, there exists such that and . Since , there exists an induced of the form and an induced of the form . Let be a shortest path from to via . Then, there exists an induced path in of the form and this path has at least vertices, a contradiction.
To see how Lemma 3.14 is useful, consider a hypothetical recursive branching algorithm that guesses a bad and recurses on connected components of . Assume that some recursive call is invoked on an induced subgraph and the s in the stack of the recursion are . Then, satisfies the prerequisites of Lemma 3.14 and is a connected component of . Lemma 3.14 asserts that there are at most two s among , say and , such that is a connected component of . Since , there are options for the set , and we have a polynomial bound on the number of different possible recursive calls.
However, cleaning for a bad is far from trivial, and we help ourselves with a careful choice of . Informally speaking, we choose the one in which the depths of and in are maximum possible. This maximality allows us to argue that some other s found in the vinicity of are not bad, as their vertices of are deeper.
Further complications arise from the fact that either or can contain an arbitrary number of vertices of (but we can prove that one of these sets contains at most vertices of ). In this case, the following observation helps us get enough structure to perform branching.
Lemma 3.15.
Let be a -free bipartite graph with a fixed bipartition , let be connected, and let be two connected components of that are of size at least each. Then, for every , the sets and are comparable by inclusion.
Proof.
Assume the contrary, let and . By the existence of and , we observe that lie all in the same connected component of and . Let be the shortest path from to via . Since , there exists an induced of the form and an induced of the form . But then there exists an induced path of the form , which has at least vertices, a contradiction.
The most frequent usage of Lemma 3.15 will be when for some bad . Then, are connected components of and Lemma 3.15 asserts that for every , the neighborhoods and are comparable by inclusion.
This concludes the main insights into the proof of Theorem 2.2. Full proof can be found in the full version of the paper in the appendix.
4 Conclusion
Our work suggests some directions for future research. Of course the most ambitious goal is to show a polynomial-time algorithm for -MWIS in -free graphs, for all fixed , with the first open case for (with no further assumptions on the graph). However, there are several intermediate goals that also seem interesting. For example, we think that the idea of considering graphs of bounded clique number is quite promising. Not only it allows us to use some strong structural tools like -boundedness or VC-dimension, but also to measure the progress of an algorithm by decreasing clique number (see also [12, 11]).
Problem 4.1 ([12, Problem 9.2]).
Show that for every fixed and , MWIS is polynomial-time solvable in -free graphs with clique number at most .
As illustrated in Section 3, assuming additionally that a graph is bipartite might lead to an easier, but still interesting problem. Of course in this setting asking for an algorithm for MWIS makes little sense, but already the next case is far from trivial.
Problem 4.2.
Show that for every fixed , given a vertex-weighted bipartite -free graph, in polynomial-time we can find an induced forest of maximum possible weight.
Let us point out that in case one can use an approach alternative to our Theorem 2.2. Indeed, it follows from the work of Lozin and Zamaraev [32] that -free bipartite graphs have bounded mim-width, which allows us to solve maximum induced forest in polynomial time [3]. However, already -free bipartite graphs have unbounded mim-width [10].
A different subclass of -free graphs are -free graphs (i.e., excluding additionally a star with leaves as an induced subgraph), studied by Lozin and Rautenbach [31], who show that Maximum Weight Independent Set is polynomial-time solvable in these graph classes. Does this result generalize to -MWIS?
Finally, let us point out that Abrishami, Chudnovsky, Pilipczuk, Rzążewski, and Seymour [1] did not only provide an algorithm for -MWIS in -free graphs, but they actually considered a richer class of graphs. In particular, their algorithm works for -free graphs, i.e., graph with no induced cycles of length more than 4 (analogously we define -free graphs for any ). Similarly, the quasipolynomial-time algorithm for -MWIS works for -free graphs, for any . Note that -free graphs form a proper superclass of -free graphs. We believe that all polynomial-time results for -free graphs, discussed in this paper, can be actually lifted to -free graphs.
References
- [1] Tara Abrishami, Maria Chudnovsky, Marcin Pilipczuk, Paweł Rzążewski, and Paul D. Seymour. Induced subgraphs of bounded treewidth and the container method. SIAM J. Comput., 53(3):624–647, 2024. doi:10.1137/20M1383732.
- [2] Benjamin Bergougnoux, Édouard Bonnet, Nick Brettell, and O-joung Kwon. Close relatives of feedback vertex set without single-exponential algorithms parameterized by treewidth. In Yixin Cao and Marcin Pilipczuk, editors, 15th International Symposium on Parameterized and Exact Computation, IPEC 2020, December 14-18, 2020, Hong Kong, China (Virtual Conference), volume 180 of LIPIcs, pages 3:1–3:17. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2020. doi:10.4230/LIPICS.IPEC.2020.3.
- [3] Benjamin Bergougnoux, Jan Dreier, and Lars Jaffke. A logic-based algorithmic meta-theorem for mim-width. In Nikhil Bansal and Viswanath Nagarajan, editors, Proceedings of the 2023 ACM-SIAM Symposium on Discrete Algorithms, SODA 2023, Florence, Italy, January 22-25, 2023, pages 3282–3304. SIAM, 2023. doi:10.1137/1.9781611977554.CH125.
- [4] Marthe Bonamy, Nicolas Bousquet, Michał Pilipczuk, Paweł Rzążewski, Stéphan Thomassé, and Bartosz Walczak. Degeneracy of -free and -free graphs with no large complete bipartite subgraphs. J. Comb. Theory B, 152:353–378, 2022. doi:10.1016/J.JCTB.2021.10.005.
- [5] Flavia Bonomo, Maria Chudnovsky, Peter Maceli, Oliver Schaudt, Maya Stein, and Mingxian Zhong. Three-coloring and list three-coloring of graphs without induced paths on seven vertices. Comb., 38(4):779–801, 2018. doi:10.1007/S00493-017-3553-8.
- [6] Flavia Bonomo-Braberman, Maria Chudnovsky, Jan Goedgebeur, Peter Maceli, Oliver Schaudt, Maya Stein, and Mingxian Zhong. Better 3-coloring algorithms: Excluding a triangle and a seven vertex path. Theor. Comput. Sci., 850:98–115, 2021. doi:10.1016/J.TCS.2020.10.032.
- [7] Vincent Bouchitté and Ioan Todinca. Listing all potential maximal cliques of a graph. Theor. Comput. Sci., 276(1-2):17–32, 2002. doi:10.1016/S0304-3975(01)00007-X.
- [8] Vincent Bouchitté and Ioan Todinca. Treewidth and minimum fill-in: Grouping the minimal separators. SIAM J. Comput., 31(1):212–232, January 2002. doi:10.1137/S0097539799359683.
- [9] Andreas Brandstädt and Raffaele Mosca. Maximum Weight Independent Sets for (, triangle)-free graphs in polynomial time. Discret. Appl. Math., 236:57–65, 2018. doi:10.1016/J.DAM.2017.10.003.
- [10] Nick Brettell, Jake Horsfield, Andrea Munaro, Giacomo Paesani, and Daniël Paulusma. Bounding the mim-width of hereditary graph classes. J. Graph Theory, 99(1):117–151, 2022. doi:10.1002/JGT.22730.
- [11] Nick Brettell, Jake Horsfield, Andrea Munaro, and Daniël Paulusma. List k-colouring P-free graphs: A mim-width perspective. Inf. Process. Lett., 173:106168, 2022. doi:10.1016/J.IPL.2021.106168.
- [12] Maria Chudnovsky, Jason King, Michał Pilipczuk, Paweł Rzążewski, and Sophie Spirkl. Finding large -colorable subgraphs in hereditary graph classes. SIAM J. Discret. Math., 35(4):2357–2386, 2021. doi:10.1137/20M1367660.
- [13] Maria Chudnovsky, Rose McCarty, Marcin Pilipczuk, Michał Pilipczuk, and Paweł Rzążewski. Sparse induced subgraphs in -free graphs. In David P. Woodruff, editor, Proceedings of the 2024 ACM-SIAM Symposium on Discrete Algorithms, SODA 2024, Alexandria, VA, USA, January 7-10, 2024, pages 5291–5299. SIAM, 2024. doi:10.1137/1.9781611977912.190.
- [14] Derek G. Corneil, Yehoshua Perl, and Lorna K. Stewart. A linear recognition algorithm for cographs. SIAM J. Comput., 14(4):926–934, 1985. doi:10.1137/0214065.
- [15] Bruno Courcelle, Johann A. Makowsky, and Udi Rotics. Linear time solvable optimization problems on graphs of bounded clique width. In Juraj Hromkovic and Ondrej Sýkora, editors, Graph-Theoretic Concepts in Computer Science, 24th International Workshop, WG ’98, Smolenice Castle, Slovak Republic, June 18-20, 1998, Proceedings, volume 1517 of Lecture Notes in Computer Science, pages 1–16. Springer, 1998. doi:10.1007/10692760_1.
- [16] Clément Dallard, Martin Milanič, and Kenny Storgel. Treewidth versus clique number. II. Tree-independence number. J. Comb. Theory B, 164:404–442, 2024. doi:10.1016/J.JCTB.2023.10.006.
- [17] Guo Li Ding, Paul Seymour, and Peter Winkler. Bounding the vertex cover number of a hypergraph. Combinatorica, 14(1):23–34, March 1994. doi:10.1007/BF01305948.
- [18] Jack Edmonds. Paths, trees, and flowers. Canadian Journal of Mathematics, 17:449–467, 1965. doi:10.4153/CJM-1965-045-4.
- [19] Fedor V. Fomin, Ioan Todinca, and Yngve Villanger. Large induced subgraphs via triangulations and CMSO. SIAM J. Comput., 44(1):54–87, 2015. doi:10.1137/140964801.
- [20] Peter Gartland and Daniel Lokshtanov. Independent set on -free graphs in quasi-polynomial time. In Sandy Irani, editor, 61st IEEE Annual Symposium on Foundations of Computer Science, FOCS 2020, Durham, NC, USA, November 16-19, 2020, pages 613–624. IEEE, 2020. doi:10.1109/FOCS46700.2020.00063.
- [21] Peter Gartland, Daniel Lokshtanov, Tomás Masařík, Marcin Pilipczuk, Michał Pilipczuk, and Paweł Rzążewski. Maximum weight independent set in graphs with no long claws in quasi-polynomial time. In Bojan Mohar, Igor Shinkar, and Ryan O’Donnell, editors, Proceedings of the 56th Annual ACM Symposium on Theory of Computing, STOC 2024, Vancouver, BC, Canada, June 24-28, 2024, pages 683–691. ACM, 2024. doi:10.1145/3618260.3649791.
- [22] Peter Gartland, Daniel Lokshtanov, Marcin Pilipczuk, Michał Pilipczuk, and Paweł Rzążewski. Finding large induced sparse subgraphs in -free graphs in quasipolynomial time. In Samir Khuller and Virginia Vassilevska Williams, editors, STOC ’21: 53rd Annual ACM SIGACT Symposium on Theory of Computing, Virtual Event, Italy, June 21-25, 2021, pages 330–341. ACM, 2021. doi:10.1145/3406325.3451034.
- [23] Andrzej Grzesik, Tereza Klimošová, Marcin Pilipczuk, and Michał Pilipczuk. Polynomial-time algorithm for maximum weight independent set on -free graphs. ACM Trans. Algorithms, 18(1):4:1–4:57, 2022. doi:10.1145/3414473.
- [24] Martin Grötschel, Laszlo Lovász, and Alexander Schrijver. Polynomial algorithms for perfect graphs. In C. Berge and V. Chvátal, editors, Topics on Perfect Graphs, volume 88 of North-Holland Mathematics Studies, pages 325–356. North-Holland, 1984. doi:10.1016/S0304-0208(08)72943-8.
- [25] Frédéric Havet, Ross J. Kang, and Jean-Sébastien Sereni. Improper coloring of unit disk graphs. Networks, 54(3):150–164, 2009. doi:10.1002/net.20318.
- [26] Bart M. P. Jansen, Daniel Lokshtanov, and Saket Saurabh. A near-optimal planarization algorithm. In Chandra Chekuri, editor, Proceedings of the Twenty-Fifth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2014, Portland, Oregon, USA, January 5-7, 2014, pages 1802–1811. SIAM, 2014. doi:10.1137/1.9781611973402.130.
- [27] Richard M. Karp. Reducibility among combinatorial problems. In Raymond E. Miller, James W. Thatcher, and Jean D. Bohlinger, editors, Complexity of Computer Computations: Proceedings of a symposium on the Complexity of Computer Computations, held March 20–22, 1972, at the IBM Thomas J. Watson Research Center, Yorktown Heights, New York, and sponsored by the Office of Naval Research, Mathematics Program, IBM World Trade Corporation, and the IBM Research Mathematical Sciences Department, pages 85–103, Boston, MA, 1972. Springer US. doi:10.1007/978-1-4684-2001-2_9.
- [28] Ton Kloks, Ching-Hao Liu, and Sheung-Hung Poon. Feedback vertex set on chordal bipartite graphs. CoRR, abs/1104.3915, 2012. doi:10.48550/arXiv.1104.3915.
- [29] Paloma T. Lima, Martin Milanič, Peter Mursic, Karolina Okrasa, Pawel Rzążewski, and Kenny Štorgel. Tree decompositions meet induced matchings: beyond Max Weight Independent Set. CoRR, abs/2402.15834, 2024. doi:10.48550/arXiv.2402.15834.
- [30] Daniel Lokshtanov, Martin Vatshelle, and Yngve Villanger. Independent set in -free graphs in polynomial time. In Chandra Chekuri, editor, Proceedings of the Twenty-Fifth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2014, Portland, Oregon, USA, January 5-7, 2014, pages 570–581. SIAM, 2014. doi:10.1137/1.9781611973402.43.
- [31] Vadim V. Lozin and Dieter Rautenbach. Some results on graphs without long induced paths. Inf. Process. Lett., 88(4):167–171, 2003. doi:10.1016/J.IPL.2003.07.004.
- [32] Vadim V. Lozin and Viktor Zamaraev. The structure and the number of -free bipartite graphs. Eur. J. Comb., 65:143–153, 2017. doi:10.1016/J.EJC.2017.05.008.
- [33] Pranabendu Misra, Venkatesh Raman, M. S. Ramanujan, and Saket Saurabh. Parameterized algorithms for even cycle transversal. In Martin Charles Golumbic, Michal Stern, Avivit Levy, and Gila Morgenstern, editors, Graph-Theoretic Concepts in Computer Science - 38th International Workshop, WG 2012, Jerusalem, Israel, June 26-28, 2012, Revised Selcted Papers, volume 7551 of Lecture Notes in Computer Science, pages 172–183. Springer, 2012. doi:10.1007/978-3-642-34611-8_19.
- [34] Giacomo Paesani, Daniël Paulusma, and Paweł Rzążewski. Feedback Vertex Set and Even Cycle Transversal for -free graphs: Finding large block graphs. SIAM J. Discret. Math., 36(4):2453–2472, 2022. doi:10.1137/22m1468864.
- [35] Marcin Pilipczuk. A tight lower bound for Vertex Planarization on graphs of bounded treewidth. Discret. Appl. Math., 231:211–216, 2017. doi:10.1016/j.dam.2016.05.019.
- [36] Marcin Pilipczuk, Michał Pilipczuk, and Paweł Rzążewski. Quasi-polynomial-time algorithm for independent set in -free graphs via shrinking the space of induced paths. In Hung Viet Le and Valerie King, editors, 4th Symposium on Simplicity in Algorithms, SOSA 2021, Virtual Conference, January 11-12, 2021, pages 204–209. SIAM, 2021. doi:10.1137/1.9781611976496.23.
- [37] Marcin Pilipczuk and Paweł Rzążewski. A polynomial bound on the number of minimal separators and potential maximal cliques in-free graphs of bounded clique number. CoRR, abs/2310.11573, 2023. doi:10.48550/arXiv.2310.11573.
