(Almost-)Optimal FPT Algorithm and Kernel for -CYCLE on Planar Graphs
Abstract
Research of cycles through specific vertices is a central topic in graph theory. In this context, we focus on a well-studied computational problem, -Cycle: given an undirected -vertex graph and a set of vertices termed terminals, the objective is to determine whether contains a simple cycle through all the terminals. Our contribution is twofold: (i) We provide a -time fixed-parameter deterministic algorithm for -Cycle on planar graphs; (ii) We provide a -time deterministic kernelization algorithm for -Cycle on planar graphs where the produced instance is of size .
Both of our algorithms are optimal in terms of both and up to (poly)logarithmic factors in under the ETH. In fact, our algorithms are the first subexponential-time fixed-parameter algorithm for -Cycle on planar graphs, as well as the first polynomial kernel for -Cycle on planar graphs. This substantially improves upon/expands the known literature on the parameterized complexity of the problem.
Keywords and phrases:
FPT Algorithms, Kernelization, -Cycle, Subexponential AlgorithmmsCategory:
Track A: Algorithms, Complexity and GamesCopyright and License:
![[Uncaptioned image]](x1.png)
2012 ACM Subject Classification:
Theory of computation Parameterized complexity and exact algorithms ; Mathematics of computing Graph algorithmsFunding:
This research was supported by the European Research Council (ERC) grant titled PARAPATH (101039913) and by the ISF grant with number ISF-1470/24 and the IDEX-ISITE initiative CAP 20-25 (ANR-16-IDEX-0001), the International Research Center âInnovation Transportation and Production Systemsâ of the I-SITE CAP 20-25, and the ANR project GRALMECO (ANR-21-CE48-0004).Editors:
Keren Censor-Hillel, Fabrizio Grandoni, JoĂŤl Ouaknine, and Gabriele PuppisSeries and Publisher:

1 Introduction
Combinatorial properties of (simple) cycles passing through a specific set of vertices (along with, possibly, other vertices) in a graph â and, in particular, combinatorial properties of the graphs containing them â have been intensively explored for over six decades. As observed by BjĂśrklund et al. [5], the public interest in this topic can even be dated back to 1898, when Lewis Carroll challenged the readers of Vanity Fair with a riddle linked to this problem. However, the flurry of scientific results on this topic has, roughly, begun with Diracâs result [13] from 1960, stating that given vertices in a -connected (undirected) graph , has a cycle through all of them. For a few illustrative examples of works in Graph Theory that followed up on this result, we refer to [8, 21, 23, 40, 15, 35, 36, 20, 22]. Indeed, as stated by Kawarabayashi [24]: âSince 1960âs, cycles through a vertex set or an edge set are one of central topics in all of graph theory.â
Computationally, given an undirected -vertex graph and a set of vertices referred to as terminals (for any ), the objective of the -Cycle problem is to determine whether contains a (simple) cycle that passes through all (but not necessarily only) the terminals. Henceforth, such a cycle is referred to as a -loop. Due to the immediate relation between the -Cycle and Disjoint Paths problems (formalized later in this introduction), the -Cycle problem has been long known (since the seminal work of Robertson and Seymour [34]) to be fixed-parameter tractable, that is, solvable in time for some computable function of and some fixed constant . However, here, the best known is galactic, satisfying , and  [25]. Still, already in 1980, LaPaugh and Rivest [29] provided a linear time algorithm for -Cycle when , which involved no large hidden constants.
The first breakthrough for the general case â having as part of the input â was established in 2008 by Kawarabayashi [24], who proved that:111Kawarabayashi [24] states that when is a fixed constant, the dependency on in the runtimes of his algorithms can be made linear, but no details of a proof to support this statement are given.
-
The -Cycle problem is solvable in time . We remark that using the developments in [10] on the Grid-Minor Theorem that were first published shortly after the work of Kawarabayashi, it can be easily seen that his algorithm can be made to run in time for some large constant .
-
Restricted to planar graphs, the - Cycle problem is solvable in time .
We note that all algorithms mentioned so far are deterministic. In 2010, by making novel use of the idea behind the breakthrough technique of algebraic fingerprints [3, 4], BjĂśrklund et al. [5] developed a randomized algorithm for -Cycle that runs in time , which, prior to this manuscript, has remained the fastest known algorithm for this problem even if restricted to planar graphs. We note that however, prior to this manuscript, both of Kawarabayashiâs algorithms have remained the best-known deterministic ones for the problem even if restricted to planar graphs.
With the above context in mind, the first of the two main contributions of our manuscript can be summarized in the following theorem. Specifically, we present the first subexponential-time fixed-parameter algorithm for the -Cycle problem on planar graphs.
Theorem 1.
Restricted to planar graphs, the -Cycle problem is solvable in time .
Notably, under the Exponential Time Hypothesis (ETH), the time complexity in Theorem 1 is tight up to the logarithmic factor in the exponent, and, on general graphs, no sub-exponential-time (fixed-parameter or not) algorithm exists for -Cycle. This can be seen from the fact that Hamiltonicity is the special case of -Cycle when is the entire vertex set of the graph, and Hamiltonicity is not solvable in times and on planar and general graphs, respectively, under the ETH [12].
The existence of a subexponential-time fixed-parameter algorithm for the -Cycle problem on planar graphs might seem surprising when considered in the context of two other well-known âterminals-basedâ problems on planar graphs: Specifically, under the ETH, the Steiner Tree problem on planar graphs is not solvable in time  [32], and the Disjoint Paths problem was only recently shown to be solvable in time  [11], where, in both cases, denotes the number of terminals.
Following-up on the work of BjĂśrklund et al. [5], WahlstrĂśm [38] studied the compressability of -Cycle. To discuss WahlstrĂśmâs contribution, let us first present the definitions of compression and kernelization. Formally, we say that a (decision) parameterized problem admits a compression into a (decision, not necessarily parameterized) problem if there exists a polynomial-time algorithm (called a compression algorithm) that, given an instance of , produces an equivalent instance of such that for some computable function of . When is polynomial, then the compression is said to be polynomial-sized (or, for short, polynomial), and when , then the compression is termed kernelization. Kernelization is, perhaps, the most well-studied research subarea of Parameterized Complexity after that of fixed-parameter tractability [17]. In fact, kernelization was termed âthe lost continent of polynomial timeâ [16] by one of the two fathers of the field of parameterized complexity. Indeed, kernelization is, essentially, the only mathematical framework to rigorously reason about the effectiveness of preprocessing procedures, which are ubiquitous in computer science in general. Here, the focus is on polynomial-sized kernels (and compressions), since the existence of a (not necessarily polynomial) kernel for a problem is equivalent to that problem being fixed-parameter tractable [9], while, on the other hand, there exist numerous problems known to be fixed-parameter tractable but which do not admit a polynomial kernel unless the polynomial hierarchy collapses [17] (with the first examples having been discovered already in 2008 [6]).
WahlstrĂśm [38] proved that -Cycle admits a compression of size . The target problem is a somewhat artificial algebraic problem, which, in particular, is not known to be in NP, and hence this compression does not imply the existence of a polynomial-sized kernelization. Over the years, WahlstrĂśmâs result on the compressability of -Cycle has become an extremely intriguing finding in the field of Parameterized Complexity: Since its discovery and until this day, -Cycle remains the only natural problem known to admit a polynomial-sized compression but not known to admit a polynomial-sized kernelization! In fact, the resolution of the kernelization complexity of -Cycle (on general graphs) is one of the biggest problems in the field. We remark that the ideas behind this compression also yield an alternative -time algorithm for -Cycle (in [38]), which is, similarly to BjĂśrklund et al. [5]âs algorithm, also randomized and based on algebraic arguments.
With the above context in mind, the second of the two main contributions of our manuscript can be summarized in the following theorem.
Theorem 2.
Restricted to planar graphs, the - Cycle problem admits a -time kernelization algorithm of size .
Again, the bounds in the theorem are almost tight in terms of both time complexity and, more importantly, the size of the reduced instance. First, we cannot expect a time complexity of as we need to, at least, read the input. (We note that the factor is essentially negligible because the time complexity of an exact algorithm to solve this problem afterwards will, anyway, have at least a factor under the ETH as argued earlier). Second, we cannot expect the reduced instance to be of size (or even of size ), else we can repeatedly reapply the kernelization algorithm until it will yield a constant-sized instance that is solvable in constant time, thereby solving the (NP-hard) problem in polynomial time.
As a side note, we remark that our proof might shed light on the kernelization complexity of -Cycle on general graphs as well: We believe that the scheme that we employ â on a high-level, the usage of a polynomial-time treewidth reduction to a polynomial function of coupled with a polynomial kernel for the combined parameter plus treewidth, and on a lower level, the specific arguments used in our proofs to implement both procedures â might be liftable to general graphs.
Combining Theorems 1 and 2, we conclude the following corollary, which is, up to a logarithmic factor in the exponent, essentially the best one can hope for.
Corollary 3.
Restricted to planar graphs, the -Cycle problem is solvable in time .
1.1 Related Problems
We first note that when the -Cycle problem is extended to directed graphs, it becomes NP-hard already when  [18]. Various other extensions/generalizations of -Cycle were studied in the literature, including from the perspective of parameterized complexity. For example, Kawarabayashi et al. [26] developed an algorithm for detecting a -loop whose length has a given parity; for fixed , the running time is polynomial in , but the dependency on is unspecified. For another example, Kobayashi and Kawarabayashi [27] developed an algorithm for detecting an induced -loop in a planar graph in time . The survey of additional results of this nature is beyond the scope of this paper.
Highly relevant to the -Cycle problem is the Disjoint Paths problem. Here, given a graph and a set of pairs of vertices (termed terminals) in , the objective is to determine whether contains vertex-disjoint222With the exception that a vertex can occur in multiple paths if it is an endpoint in all of them. paths so that the endpoints of are and . The -Cycle problem can be reduced to the Disjoint Paths problem with an overhead of : Given an instance of -Cycle, for every ordering of , create an instance of Disjoint Paths where ; then, is a yes-instance of -Cycle if and only if at least one of the constructed instances of Disjoint Paths is. Being foundational to the entire graph minor theory [30], the Disjoint Paths problem is of great importance to both algorithm design and graph theory, and has been intensively studied for several decades. Most relevant to this manuscript is to mention that, currently, the fastest algorithms for Disjoint Paths run in time for on general graphs [25], and in time on planar graphs [11]. It is worth mentioning that Korhonen, Pilipczuk, and Stamoulis [28] recently provided an FPT algorithm for Disjoint Paths with almost-linear running time dependence on the number of vertices and edges, i.e., with running time . Also, the Disjoint Paths problem does not admit a polynomial kernel w.r.t. even on planar graphs [39], but it admits a polynomial kernel w.r.t. plus the treewidth of the input graph on planar graphs [39] (on general graphs, it is unknown whether Disjoint Paths admits a polynomial kernel w.r.t. plus treewidth).
Also quite relevant to the -Cycle problem is the -Cycle (or -Path) problem, which is also, perhaps, the second or third most well-studied problem in Parameterized Complexity (see, e.g., the dozens of papers cited in [31]). Here, given a graph and a nonnegative integer , the objective is to determine whether contains a simple cycle (or path) on vertices. The techniques used to solve -Cycle can be trivially lifted to solve -Cycle when parameterized by the sought size of a solution (given as an extra parameter in the input), which can be arbitrarily larger than (e.g., in the extreme case where the entire graph is a single cycle, while ). In particular, this means that, on general graphs, -Cycle is solvable in time by a randomized algorithm [4] (or time by a deterministic algorithm [37]), and on planar graphs, -Cycle is solvable in time by a deterministic algorithm (e.g., via [14]).
1.2 Techniques
We present a high-level overview of our proofs in the next section. Here, we only briefly highlight (in a very informal manner) the novelties in our proofs, and put them in the context of the known literature. Essentially, the following theorem reveals some of the core combinatorial arguments that underlie our algorithmic results. Thus, we believe that this result may be of independent interest.
Theorem 4.
There exists a -time algorithm that, given an instance of -Cycle on planar graphs, outputs an equivalent instance of -Cycle on planar graphs along with a set of vertices such that:
-
1.
is a subgraph of whose treewidth is bounded by , and
-
2.
and the treewidth of is bounded by .
Indeed, from here, Theorem 1 directly follows by using a -time algorithm for -Cycle parameterized by the treewidth of the planar graph as a black box (e.g., via [14]), while Theorem 2 requires additional non-trivial work, described later in this section.
Our proof of Theorem 4 consists of three main ingredients. Towards the first ingredient, we consider a sequence of concentric cycles, and classify the âsegmentsâ of an (unknown) solution -loop that go inside this sequence into types, similarly to how it is done in [2] for the Disjoint Paths problem. Here, a cheap solution is one that uses as few edges as possible that do not belong to the sequence of concentric cycles. Then, we prove the following result, which is the first ingredient.
Lemma 5 (Informal Statement of Lemma 8).
For a âcheapâ solution -loop and a sequence of concentric cycles that does not contain any terminal, there can be at most constantly many segments of the same type.
We note that in [2], it is proved that the number of segments of the same type for a Disjoint Paths solution is . Our proof of Lemma 5 is based on an elegant (and novel) re-routing argument (see Section 2), which has no relation to that in [2]. This argument is, in particular, perhaps the cornerstone of the proof of Theorem 4.
With Lemma 5 at hand, we then turn to prove our second ingredient.
Lemma 6 (Informal Statement of Lemma 9).
For a âcheapâ solution -loop and a sequence of concentric cycles that does not contain any terminal, no segment goes more than cycles deep into the sequence.
We note that in [2], it is proved that no segment (for a Disjoint Paths solution) goes more than cycles deep into the sequence. For the proof of our lemma, we make use of one intermediate result from [2] about Disjoint Paths solutions, which states that there can be segments of different types. However, besides that, the proof of our lemma is different, based on a simple analysis of the âsegment-treeâ induced by the segments (see Section 2). We note that rerouting arguments have been used for other terminal-based routing problems [27]. But, in our knowledge, our rerouting arguments are first to achieve a sublinear bound on the number of concentric cycles used by a cheap solution. Further, we believe that another strength of our result is that the arguments used to prove Lemma 6 are rather simple, and therefore easy to reuse in future works.
In particular, Lemma 6 implies that within a -sized (for some constant ) sequence of concentric cycles that does not contain any terminal, every vertex that lies inside the innermost cycles is irrelevant, that is, can be deleted without turning a yes-instance into a no-instance. In particular, this implies that within a -grid minor that does not contain any terminal, the âmiddle-mostâ vertex is irrelevant. Here, it is important to mention that the main component in the proof of Kawarabayashi [24] is a lemma that (essentially) states that within a -grid minor that does not contain any terminal, the âmiddle-mostâ vertex is irrelevant. Our proof (that is, the arguments briefly described so far) is completely different, and, in particular, yields an exponential improvement (from to ).
From here, it is easy to provide a -time algorithm that given an instance of -Cycle on planar graphs, outputs an equivalent instance of -Cycle on planar graphs such that is a subgraph of whose treewidth is bounded by . Indeed, this can be done by, as long as possible, computing a grid minor that does not contain any terminal, and removing its âmiddle-mostâ vertex, where each iteration requires time , and where iterations are performed in total.
To reduce the time complexity to be linear in , we make use of Reedâs [33] approach of dividing the plane and working on each âpieceâ simultaneously, together with an argument by Cho et al. [11] that further simplifies the pieces such that none of the piece contains a sequence of âtoo manyâ concentric cycles. Here, the proof is mostly based on a similar approach described in the aforementioned two papers with minor adaptations. However, we need to add one novel and critical step. Briefly, by applying the known approach (with the minor adaptations to our case) we directly obtain pieces such that: (i) the total number of vertices on their boundaries is ; (ii) no piece contains a sequence of more than many concentric cycles. This already yields a set of vertices such that and the treewidth of (where is the current graph) is bounded by , by taking the union of boundaries (that is what we need for the second item in Theorem 4). However, from this, the aforementioned two papers (i.e., [33] and [11]) directly get their tree decomposition of by (implicitly) creating a tree decomposition for each piece, gluing them together, and putting the vertices of in all bags. For these two previous papers, this was sufficient â they get pieces of treewidth and of size , and thus by doing this, they do not lose anything. However, for us, this yields a tree decomposition of width , while we need width . We overcome this by adding a new step, where we attempt to remove (possibly many) boundary vertices, and after performing this step, we are able to directly argue that the graph itself (rather than just each one of its pieces individually) does not have a sequence of more than many concentric cycles that do not contain any terminal (see Section 2). Thus, we get the bound .
Lastly, having Theorem 4 at hand, let us address the additional work we need to perform in order to prove Theorem 2. Here, we use two powerful theorems/machineries:
-
Machinery I [7] (see also [17]): Suppose we are given a set of vertices with so that the treewidth of is bounded by . Then, one can construct in -time a so-called protrusion decomposition of with âvery good parametersâ. That is, roughly speaking, the vertex set of can be partitioned into a âuniversalâ part of size and additional âprotrusionâ parts such that each protrusion part induces a graph of treewidth , has many vertices that have neighbors in , while having no neighbors in the other protrusions.
-
Machinery IIÂ [39]: A generalization of the Disjoint Paths problem on planar graphs, where, roughly speaking, we need to preserve the yes/no answer for every possible pairing of the terminals vertices, admits a kernel of size where is the number of terminals and is the treewidth of the graph, and the output graph is a minor of the input graph.
Thus, we can compute the protrusion decomposition using the set obtained from Theorem 1 (which, in particular, contains all terminals), and then kernelize each of the protrusions individually using Machinery II, where the terminal set is defined as those vertices having neighbors outside the protrusion. However, this will not yield a time complexity of since Machinery II only specifies a polynomial (rather than linear) dependency on , and, furthermore, this will yield a huge polylogarithmic dependency on in the size of the reduced instance.
To overcome this, we employ two novel twists in this approach. First, we create a ânestedâ protrusion decomposition, or, alternatively, one can think about this as âbootstrappingâ the entire proof for each protrusion. In more details, for each protrusion , we yet again apply all the arguments in our proofs so far to now find a set of vertices with so that the treewidth of is bounded by . Then, for each protrusion, we yet again compute a protrusion decomposition, but now with each âsubprotrusionâ having only many vertices with neighbors outside the subprotrusion, and with treewidth . Then, the second twist is that instead of directly kernelizing the subprotrusion, we think of Machinery II as an existential rather than an algorithmic result â we know that there exists a -sized graph that can replace our subprotrusion. Then, we simply guess this replacement! That is, we generate all possible -sized graphs. For each generated graph , we test whether:
-
1.
is equivalent to the subprotrusion with the same terminal set. That is, we must preserve the yes/no answers to the instances corresponding to all possible terminal pairings.
-
2.
is a minor of .
This test can be done using a standard dynamic programming-based algorithm over tree decomposition, since both the treewidth of the subprotrusion and the size of are bounded by . Specifically, we have many guesses for the replacement, and the âvalidityâ of each can be checked in time where is the number of vertices in . We believe that this concept of ânestedâ protrusion decomposition can find applications in improving kernelization algorithms, in terms of both kernel size and running time, for other terminal-based problems.
Additional discussion and related open problems can be found in Section 3.
2 Overview of Our Proofs
In this section, we provide an overview of our proofs. We will only informally define notions required to explain the overview. The full proofs of our results and the required notions deferred to the full version to respect the space constraints.
2.1 FPT Algorithm
Our first contribution is an FPT algorithm for -Cycle in planar graphs that has a running time subexponential in (which is, ) and linear in . Since -Cycle can be solved in time (e.g., using [14]), a natural way to attack our problem is via the technique of treewidth reduction by removal of some irrelevant vertices. In fact, this technique was used by Kawarabayashi [24] to reduce the treewidth to be polynomial in . To get the algorithm that we desire, we need to
-
1.
reduce the treewidth to by removal of some irrelevant vertices, and
-
2.
to ensure that this entire removal procedure is performed in time.
Irrelevant vertices.
We begin with establishing that if there is a vertex that is âsufficiently separatedâ from each vertex in , then is irrelevant. A set of cycles is concentric if the cycles in are vertex disjoint and cycle is contained in the interior of (for ). See Figure 1(a) for an illustration. If there exists a sequence of concentric cycles such that in the interior of and is in the exterior of , then we say that is -isolated. Let denote the disk corresponding to the interior of .
The first component of our algorithm is a proof that establishes that there exists some , which we explicitly compute, such that each -isolated vertex is irrelevant, and hence, can be removed from safely. To this end, we use a notion called CL-configuration, which is a pair , where is a set of concentric cycles such that , and is a -loop. We say that has depth if consists of concentric cycles. See Figure 1(b) for an illustration. The connected components of are said to be -segments. Intuitively, we say that a -segment is in the zone of a -segment if lies in the region encompassed by and the cycle that excludes . This can be used to define a partial order on the -segments of the set of CL-configuration as follows: we say that if and only if lies in the zone of . We need the following notion of segment types (see Figure 2(a) for an illustration.).
Definition 7 (Segment types).
Let be a depth CL-configuration of . Moreover, let and be two -segments of such that , for , has endpoints and . We say that and have the same -type if:
-
1.
there exist paths and on connecting an endpoint of with an endpoint of such that these paths do not pass through the other endpoints of and ,
-
2.
no segment of has both endpoints on or on , and
-
3.
the closed-interior of the cycle does not contain the disk .
A -type of segment is an equivalence class of segments of . See Figure 2(b) for an illustration of segment types.
Finally, for any -loop, say , we define a cost function that corresponds to the number of edges in that are not contained in any cycle of . The main idea behind this is that a -loop has to âpayâ every time it goes to a âdeeperâ cycle of . Then, a -loop is cheap if there is no other loop with cost strictly lesser than that of . We would then like to show that any cheap -loop will not go âvery deepâ in , deeming the deeper cycles of irrelevant.
Now, consider a CL-configuration of depth . We are ready to explain our first main lemma, which says that if is a cheap -loop, then there cannot be more than 3 segments with the same -type, for . To prove this, we show that if we have more than 3 segments with the same -type, then we can reroute in such a manner that we get a new -loop which is cheaper than . See Figure 3 for an illustration of the intuition. In particular, we have the following lemma. (This gives us Lemma 5 from Section 1.)
Lemma 8.
Let be a depth convex CL-configuration of . Moreover, let be a set of segments of the same -type, for some . If , then is not a -cheap -loop.
The next component of the proof is to establish, using our above result, that a cheap -loop will not go beyond levels deep, and we compute a such that every vertex that is -isolated, i.e., contained in is irrelevant. To this end, we use a novel idea based on segment forests. In the discussion that follows, is a CL-configutation of depth .
For every , we use the hierarchy induced by to associate a forest structure called a segment forest. To begin with, if a -segment is in the zone of a segment , then we say that is an ancestor of and ( is a descendant of ). If is an ancestor of such that there is no -segment that satisfies , then is a parent of (and is a child of ). Modeling all parent child relationships with edges gives rise to a forest that we call the -th segment forest of . See Figure 4 for an example. A -segment is an -th generation ancestor of if is an ancestor of and the length of the path from to in the -th segment forest is . The height of a segment forest is the length of the longest path from a leaf segment to a segment that has no ancestors. The width -subtree of a -segment is the tree induced by all -segments that are descendants of at a distance of at most in the -th segment forest.
For a segment , its eccentricity is defined as . Let be any positive integer. We now make the observation that in the width -subtree rooted at the -th generation ancestor of , either all ancestors of in have the same type or there is a segment in that is not an ancestor of . This follows from the fact that if there exists a segment of eccentricity that has an ancestor that is not of the same type as , then there exist two paths and on connecting an endpoint of with an endpoint of that do not pass through the other endpoint of . Since and are not of the same type, there exists a segment with both endpoints in or both endpoints in . By the definition of segment types, such as segment cannot be an ancestor of .
The above observation coupled with Lemma 5 tells us that the width three -subtree rooted at the -rd generation ancestor of a segment of eccentricity has a segment that is not an ancestor of . The fact that the height of the -segment forest of is at most logarithmic follows then from an inductive argument. In [2, Lemma 5], it is shown that a cheap solution for Disjoint Paths has at most different types of segments. Using this result, it is easy to check that the same holds true for -Cycle. Leveraging this fact, we deduce that the height of the -segment forest of is . This gives us Lemma 6 from Section 1.
Lemma 9.
There exist constants and such that in a CL-configuration of depth , if the eccentricity of a segment is less than , then there exists an irrelevant vertex in .
Fast Removal of Irrelevant Vertices.
Since we have established that all -isolated vertices are irrelevant, our next task is to remove -isolated vertices in time. Note that there is a rather straightforward way to remove such vertices by, as long as possible, computing a grid minor that does not contain any terminal, and removing its âmiddle-mostâ vertex. Here, each iteration requires time, and hence, in total, this algorithm requires time.
To remove the irrelevant vertices in time, we use Reedâs [33] approach of âcuttingâ the plane into more âmanageableâ planes, and then working on these pieces simultaneously. To this end, we consider the âpuncturedâ planes, where, intuitively, a -punctured plane means a punctured plane with connected components in its boundary. Note that it is desirable that all terminals lie on the boundary of a punctured plane. This can be achieved, to begin with, by considering the graph to be embedded on a -punctured plane, where each terminal is a trivial hole. Then, the idea of Reed is to recursively cut the plane along some curves of âboundedâ size into âniceâ subgraphs, where a subgraph is nice if every vertex of that is -isolated from the boundary of is also -isolated in . More specifically, we use the following result of Reed.
Proposition 10 (Lemma 2 in [33]).
Let be a nice subgraph of embedded on a -punctured plane such that . Then, we can compute both a non-crossing proper closed curve contained in and a (possibly empty) set of vertices that are -isolated from the boundary of in time such that
-
1.
the number of vertices of intersected by is at most , and
-
2.
contains at most 3 components each of which has less than holes.
A careful analysis shows that by a recursive application of this cut reduction procedure, we finally get at most components, each of which is embedded on either a -punctured plane or a -punctured plane and the total number of vertices on the boundaries of these punctured planes is , i.e., . Since we apply this cut reduction times, the cutting-plane procedure takes time in total.
The novel component of this part of our algorithm is to decide for each vertex on the boundary of these punctured planes if is -isolated in , and remove if it is. We can perform this check in time for one vertex, and since there are vertices altogether on the boundaries of punctured planes, we can remove all -isolated vertices from the boundaries of punctured planes in time. After this step, no vertex on the boundary of a punctured plane is -isolated. Finally, we use the irrelevant vertex removal algorithm of Cho et al. [11] which, given a -punctured plane where , removes all vertices from that are -isolated from the boundary of . Their algorithm in total requires time for each -punctured plane (), and since there are such planes, this step requires time in total.
At this point, we prove that no vertex in is -isolated. In particular,we show that if a vertex in is -isolated, then there exists a vertex on the boundary of that is -isolated. An illustration of the proof is provided in the Figure 5.
Finally, using a result of Adler et al. [1, Lemma 1], it follows that if there is no vertex in a planar graph that is -isolated from a set of vertices of size , then the treewidth of is , i.e., . This gives us Theorem 4 from Section 1. Indeed, the treewidth of the reduced graph, say , obtained after removing irrelevant vertices from , is . Moreover, let be the set of all boundary vertices of all many punctured planes (), then observe that in , there is no sequence of concentric cycles, and hence the treewidth of is upper bounded by , i.e., . Now, a dynamic-programming based algorithm can be used to solve our problem in time. We refer to the procedure described in the above steps as Reed decomposition algorithm.
2.2 Kernelization Algorithm
The main tool used in our kernelization algorithm is the so-called protrusion decomposition. Please refer to [17, Chapter 15] for a detailed discussion on this topic. Below, we provide a brief overview starting with a few definitions.
Let be a graph. Given a vertex set , its boundary , is the set of vertices in that have at least one neighbor outside of . A vertex set is called a treewidth--modulator if . A vertex set is a -protrusion if and . Finally, given a vertex set , we use to denote the set of vertices that are in the closed neighborhood of in .
A partition of vertex set of a graph is called an -protrusion decomposition of if , and are integers such that:
-
,
-
,
-
for every is a -protrusion of ,
-
for , (here, denotes the open neighborhood of in ).
For , the sets are called protrusions. For every , we set = .
A central result about protrusions is that if a planar graph has a treewidth- modulator , then has a -protrusion decomposition with  [17, Lemma 15.14]. Moreover, such a protrusion can be computed efficiently using Algorithm 1 outlined in Figure 6. The key motivation behind our use of protrusion decompositions for kernelization is Theorem 4, which readily gives us a graph and a vertex set of size that is a treewidth--modulator of , where and are equivalent as -Cycle instances.
Apart from protrusions, the other main tool we use is a blackbox from [39]. In [39], the authors define the notion of -linkage equivalence. Specifically, two graphs with a common vertex set are said to be -linkage equivalent w.r.t. Disjoint Paths if for every set of pairs of terminals , the disjoint path instances and are equivalent. The key result we use from [39] is that a planar graph can be replaced by a smaller planar graph that is -linkage equivalent w.r.t. Disjoint Paths, where the size of is polynomial in the treewidth of and . This leads us to our first kernelization algorithm outlined in Figure 6 that serves as a forerunner to the linear time algorithm summarized in Figure 7.
One of the key insights behind the linear time kernelization algorithm is to treat the black box result from [39] as an existential result rather than an algorithmic one. Thus, instead of using the algorithm from [39] for replacing graphs with smaller -linkage equivalent counterparts, one could guess the replacement graph instead. One obstacle in doing this is that where and the treewidth of for are both making the guesses expensive. A potential remedy, which is our other key insight, is to apply a nested protrusion decomposition. However, a roadblock to this remedy is that we do not have a small treewidth modulator for graphs right away. This is fixed by adapting the Reed decomposition algorithm for -Cycle to -linkage equivalence w.r.t. -Cycle. We stress here that the notion of linkage equivalence w.r.t. Disjoint Paths differs from the notion of linkage equivalence w.r.t. -Cycle. Below, we give an intuitive definition for linkage equivalence w.r.t. -Cycle.
Given a -Cycle instance , let and be subgraphs of with a common set of vertices . Then, is -linkage equivalent w.r.t. -Cycle to if
-
a -loop in can be written as a union of collections of paths with endpoints of paths in lying in such that paths in use edges that belong to and paths in use edges outside of if and only if in the graph obtained by replacing with in there is a -loop that can be written as a union of collections of paths where paths in use edges that belong to .
A vertex is -linkage irrelevant if is -linkage equivalent w.r.t. -Cycle to . It is easy to check that vertices that are -linkage irrelevant in are also irrelevant for the -Cycle problem in .
Returning to our discussion, an adaptation of the Reed decomposition algorithm allows us to delete -linkage irrelevant vertices from for every . This has two important outcomes. First, for every , we get smaller graphs that are -linkage equivalent to . Second, for every , the Reed decomposition algorithm also computes sets such that the sets are treewidth--modulators of . In fact, the sets are boundary vertices in the Reed decomposition algorithm.
With that at hand, we can apply protrusion decomposition to graphs giving us âsubprotrusionsâ. Specifically, computing a protrusion decomposition of for every , gives a partition of . For , , let , where , and . Also, let for .
To now apply [39] as an existential result, we need to guess graphs of size . Checking if a guessed graph is linkage equivalent w.r.t. Disjoint Paths to a subprotrusion and replacing it while preserving planarity involves the use of two dynamic programming subroutines: Minor Containment and Disjoint Paths, the details of which can be found in Section 7 of the extended version of the paper [19]. We do these replacements for all , . The replacement graphs for are denoted by .
The kernel for the -Cycle problem is given by assembling the graph where
3 Conclusion
In this paper, we considered the -Cycle problem on planar graphs. We begin by providing an FPT algorithm with running time . Most subexponential time FPT algorithms on planar graphs use Bidimensionality in a naive fashion: If the treewidth of the input graph is large, then we trivially know whether our instance is a yes or no instance, and when the treewidth is small (sublinear), we use dynamic programming using the tree decomposition. Unfortunately, this fails on -Cycle (and related terminal-based routing problems) as large treewidth neither blocks a -loop nor guarantees it. We bypass this roadblock using a clever rerouting argument and new variations of several techniques in the literature to deal with planar graphs. Further, to the best of our knowledge, -Cycle is the first natural terminal-based routing problem that admits a subexponential algorithm for planar graphs. We believe that this may pave the road for new subexponential algorithms for planar graphs for problems that cannot be solved by naive application of bidimensionality. Further, we perform non-trivial work to reduce the running time dependence on to linear.
Next, we provided a linear time kernelization algorithm for -Cycle on planar graphs of size . As pointed in the Introduction section, the kernelization complexity of -Cycle on general graphs is one of the biggest open problems in the field. Our result shows that for planar graphs, we have an almost linear kernel. This raises the natural and important question as to whether our kernel for -Cycle can be lifted to more general non-planar graphs, or even to general graphs. To obtain our kernel, we use Reedâs technique of plane cutting. This is perhaps the first application of this technique in kernelization. Further, we obtain the kernelization to be almost-optimal combining Theorem 4 with a ânestedâ protrusion decomposition technique, which is novel to this paper. Perhaps these techniques can be combined to obtain new/improved kernelization results for other terminal-based problems.
As discussed in [30], algorithms for terminal-based routing problems on planar graphs serve as a crucial step in designing algorithms for general case. Indeed, this was the case for Disjoint Paths. All known algorithms for Disjoint Paths are based on distinguishing the cases when the graph contains a large clique as a minor and when it does not. Furthermore, when the input graph does not contain a large clique as a minor, the graph either has low treewidth (leading towards a DP) or contains a large flat wall that necessitates the study of these problems on planar and âalmost-planarâ graph classes. As mentioned in the Introduction, it would be interesting to see if it is possible to extend our results for âalmost-planar graphsâ.
Finally, we wish to point out that our arguments may be relevant for the resolution of the problem on general graphs as well. In this direction, the first step should be to generalize our results to flat walls towards the resolution of -Cycle on minor-free graphs.
References
- [1] Isolde Adler, Stavros G Kolliopoulos, Philipp Klaus Krause, Daniel Lokshtanov, Saket Saurabh, and Dimitrios Thilikos. Tight bounds for linkages in planar graphs. In Automata, Languages and Programming: 38th International Colloquium, ICALP 2011, Zurich, Switzerland, July 4-8, 2011, Proceedings, Part I 38, pages 110â121. Springer, 2011. doi:10.1007/978-3-642-22006-7_10.
- [2] Isolde Adler, Stavros G Kolliopoulos, Philipp Klaus Krause, Daniel Lokshtanov, Saket Saurabh, and Dimitrios M Thilikos. Irrelevant vertices for the planar disjoint paths problem. Journal of Combinatorial Theory, Series B, 122:815â843, 2017. doi:10.1016/J.JCTB.2016.10.001.
- [3] Andreas BjĂśrklund. Determinant sums for undirected hamiltonicity. SIAM J. Comput., 43(1):280â299, 2014. doi:10.1137/110839229.
- [4] Andreas BjĂśrklund, Thore Husfeldt, Petteri Kaski, and Mikko Koivisto. Narrow sieves for parameterized paths and packings. J. Comput. Syst. Sci., 87:119â139, 2017. doi:10.1016/J.JCSS.2017.03.003.
- [5] Andreas BjĂśrklund, Thore Husfeldt, and Nina Taslaman. Shortest cycle through specified elements. In Proceedings of the Twenty-Third Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2012, Kyoto, Japan, January 17-19, 2012, pages 1747â1753, 2012. doi:10.1137/1.9781611973099.139.
- [6] Hans L. Bodlaender, Rodney G. Downey, Michael R. Fellows, and Danny Hermelin. On problems without polynomial kernels. J. Comput. Syst. Sci., 75(8):423â434, 2009. doi:10.1016/J.JCSS.2009.04.001.
- [7] Hans L Bodlaender, Fedor V Fomin, Daniel Lokshtanov, Eelko Penninkx, Saket Saurabh, and Dimitrios M Thilikos. (meta) kernelization. Journal of the ACM (JACM), 63(5):1â69, 2016. doi:10.1145/2973749.
- [8] John Adrian Bondy and LĂĄszlĂł LovĂĄsz. Cycles through specified vertices of a graph. Combinatorica, 1:117â140, 1981. doi:10.1007/BF02579268.
- [9] Liming Cai, Jianer Chen, Rodney G Downey, and Michael R Fellows. Advice classes of parameterized tractability. Annals of pure and applied logic, 84(1):119â138, 1997. doi:10.1016/S0168-0072(95)00020-8.
- [10] Chandra Chekuri and Julia Chuzhoy. Polynomial bounds for the grid-minor theorem. J. ACM, 63(5):40:1â40:65, 2016. doi:10.1145/2820609.
- [11] Kyungjin Cho, Eunjin Oh, and Seunghyeok Oh. Parameterized algorithm for the disjoint path problem on planar graphs: Exponential in and linear in . In Proceedings of the 2023 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 3734â3758. SIAM, 2023. doi:10.1137/1.9781611977554.CH144.
- [12] Marek Cygan, Fedor V. Fomin, Lukasz Kowalik, Daniel Lokshtanov, Dåniel Marx, Marcin Pilipczuk, Michal Pilipczuk, and Saket Saurabh. Parameterized Algorithms. Springer, 2015. doi:10.1007/978-3-319-21275-3.
- [13] Gabriel Andrew Dirac. In abstrakten graphen vorhandene vollständige 4-graphen und ihre unterteilungen. Mathematische Nachrichten, 22(1-2):61â85, 1960.
- [14] Frederic Dorn, Fedor V. Fomin, and Dimitrios M. Thilikos. Catalan structures and dynamic programming in h-minor-free graphs. J. Comput. Syst. Sci., 78(5):1606â1622, 2012. doi:10.1016/J.JCSS.2012.02.004.
- [15] PĂŠter L ErdĹs and Ervin GyĹri. Any four independent edges of a 4-connected graph are contained in a circuit. Acta Mathematica Hungarica, 46:311â313, 1985.
- [16] Michael R. Fellows. The lost continent of polynomial time: Preprocessing and kernelization. In Parameterized and Exact Computation, Second International Workshop, IWPEC 2006, ZĂźrich, Switzerland, September 13-15, 2006, Proceedings, pages 276â277, 2006. doi:10.1007/11847250_25.
- [17] Fedor V Fomin, Daniel Lokshtanov, Saket Saurabh, and Meirav Zehavi. Kernelization: theory of parameterized preprocessing. Cambridge University Press, 2019.
- [18] Steven Fortune, John Hopcroft, and James Wyllie. The directed subgraph homeomorphism problem. Theoretical Computer Science, 10(2):111â121, 1980. doi:10.1016/0304-3975(80)90009-2.
- [19] Harmender Gahlawat, Abhishek Rathod, and Meirav Zehavi. (almost-)optimal fpt algorithm and kernel for t-cycle on planar graphs, 2025. arXiv:2504.19301.
- [20] Roland Häggkvist and Carsten Thomassen. Circuits through specified edges. Discrete mathematics, 41(1):29â34, 1982. doi:10.1016/0012-365X(82)90078-4.
- [21] Derek A. Holton, Brendan D. McKay, Michael D. Plummer, and Carsten Thomassen. A nine point theorem for 3-connected graphs. Combinatorica, 2:53â62, 1982. doi:10.1007/BF02579281.
- [22] Ken-ichi Kawarabayashi. One or two disjoint circuits cover independent edges: LovĂĄszâwoodall conjecture. Journal of Combinatorial Theory, Series B, 84(1):1â44, 2002. doi:10.1006/JCTB.2001.2059.
- [23] Ken-ichi Kawarabayashi. Cycles through a prescribed vertex set in n-connected graphs. Journal of Combinatorial Theory, Series B, 90(2):315â323, 2004. doi:10.1016/J.JCTB.2003.08.002.
- [24] Ken-ichi Kawarabayashi. An improved algorithm for finding cycles through elements. In Integer Programming and Combinatorial Optimization: 13th International Conference, IPCO 2008 Bertinoro, Italy, May 26-28, 2008 Proceedings 13, pages 374â384. Springer, 2008. doi:10.1007/978-3-540-68891-4_26.
- [25] Ken-ichi Kawarabayashi, Yusuke Kobayashi, and Bruce A. Reed. The disjoint paths problem in quadratic time. J. Comb. Theory B, 102(2):424â435, 2012. doi:10.1016/J.JCTB.2011.07.004.
- [26] Ken-ichi Kawarabayashi, Zhentao Li, and Bruce Reed. Recognizing a totally odd k 4-subdivision, parity 2-disjoint rooted paths and a parity cycle through specified elements. In Proceedings of the Twenty-First Annual ACM-SIAM Symposium on Discrete Algorithms, pages 318â328. SIAM, 2010. doi:10.1137/1.9781611973075.27.
- [27] Yusuke Kobayashi and Ken-ichi Kawarabayashi. Algorithms for finding an induced cycle in planar graphs and bounded genus graphs. In Proceedings of the Twentieth Annual ACM-SIAM Symposium on Discrete Algorithms, pages 1146â1155. SIAM, 2009. doi:10.1137/1.9781611973068.124.
- [28] Tuukka Korhonen, MichaĹ Pilipczuk, and Giannos Stamoulis. Minor containment and disjoint paths in almost-linear time. FOCS, 2024.
- [29] Andrea S. LaPaugh and Ronald L. Rivest. The subgraph homeomorphism problem. J. Comput. Syst. Sci., 20(2):133â149, 1980. doi:10.1016/0022-0000(80)90057-4.
- [30] Daniel Lokshtanov, Saket Saurabh, and Meirav Zehavi. Efficient graph minors theory and parameterized algorithms for (planar) disjoint paths. In Treewidth, Kernels, and Algorithms - Essays Dedicated to Hans L. Bodlaender on the Occasion of His 60th Birthday, pages 112â128, 2020. doi:10.1007/978-3-030-42071-0_9.
- [31] Daniel Lokshtanov, Saket Saurabh, and Meirav Zehavi. Efficient computation of representative weight functions with applications to parameterized counting (extended version). In Proceedings of the 2021 ACM-SIAM Symposium on Discrete Algorithms, SODA 2021, Virtual Conference, January 10 - 13, 2021, pages 179â198, 2021. doi:10.1137/1.9781611976465.13.
- [32] DĂĄniel Marx, Marcin Pilipczuk, and Michal Pilipczuk. On subexponential parameterized algorithms for steiner tree and directed subset TSP on planar graphs. In 59th IEEE Annual Symposium on Foundations of Computer Science, FOCS 2018, Paris, France, October 7-9, 2018, pages 474â484, 2018. doi:10.1109/FOCS.2018.00052.
- [33] Bruce Reed. Rooted routing in the plane. Discrete Applied Mathematics, 57(2-3):213â227, 1995. doi:10.1016/0166-218X(94)00104-L.
- [34] Neil Robertson and Paul D. Seymour. Graph minors .xiii. the disjoint paths problem. J. Comb. Theory B, 63(1):65â110, 1995. doi:10.1006/JCTB.1995.1006.
- [35] Daniel P Sanders. On circuits through five edges. Discrete Mathematics, 159(1-3):199â215, 1996. doi:10.1016/0012-365X(95)00079-C.
- [36] Carsten Thomassen. Note on circuits containing specified edges. Journal of Combinatorial Theory, Series B, 22(3):279â280, 1977. doi:10.1016/0095-8956(77)90073-9.
- [37] Dekel Tsur. Faster deterministic parameterized algorithm for k-path. Theor. Comput. Sci., 790:96â104, 2019. doi:10.1016/J.TCS.2019.04.024.
- [38] Magnus WahlstrĂśm. Abusing the tutte matrix: An algebraic instance compression for the k-set-cycle problem. In 30th International Symposium on Theoretical Aspects of Computer Science, STACS 2013, February 27 - March 2, 2013, Kiel, Germany, pages 341â352, 2013. doi:10.4230/LIPICS.STACS.2013.341.
- [39] Michal Wlodarczyk and Meirav Zehavi. Planar disjoint paths, treewidth, and kernels. In 64th IEEE Annual Symposium on Foundations of Computer Science, FOCS 2023, Santa Cruz, CA, USA, November 6-9, 2023, pages 649â662, 2023. doi:10.1109/FOCS57990.2023.00044.
- [40] Douglas R Woodall. Circuits containing specified edges. J. Comb. Theory, Ser. B, 22(3):274â278, 1977. doi:10.1016/0095-8956(77)90072-7.