Faster FPT Algorithm for 5-Path Vertex Cover
Radovan \v{C}erven\'y, Ond\v{r}ej Such\'y

TL;DR
This paper introduces a faster fixed-parameter tractable algorithm for the 5-Path Vertex Cover problem, improving the running time from previous algorithms by employing an iterative compression technique.
Contribution
The paper presents a novel iterative compression algorithm that reduces the running time for 5-PVC to D4^k n^{O(1)}, improving upon prior methods.
Findings
Achieved D4^k n^{O(1)} running time for 5-PVC
Improved fixed-parameter algorithm over previous approaches
Demonstrated effectiveness of iterative compression for this problem
Abstract
The problem of -Path Vertex Cover, -PVC lies in determining a subset of vertices of a given graph such that does not contain a path on vertices. The paths we aim to cover need not to be induced. It is known that the -PVC problem is NP-complete for any . When parameterized by the size of the solution , 5-PVC has direct trivial algorithm with running time and, since -PVC is a special case of -Hitting Set, an algorithm running in time is known. In this paper we present an iterative compression algorithm that solves the 5-PVC problem in time.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
\newaliascnt
lemmatheorem \aliascntresetthelemma
\newaliascntcorollarytheorem \aliascntresetthecorollary
\newaliascntobservationtheorem \aliascntresettheobservation
\newaliascntdefinitiontheorem \aliascntresetthedefinition
Faster FPT Algorithm for 5-Path Vertex Cover
††thanks: An extended abstract of this paper appeared in the Proceedings of the 44th International Symposium on Mathematical Foundations of Computer Science, 2019 [2]. This version significantly reduces the number of rules needed from 51 to 16.
Radovan Červený
Department of Theoretical Computer Science
Faculty of Information Technology
Czech Technical University in Prague
Prague, Czech Republic
&Ondřej Suchý
Department of Theoretical Computer Science
Faculty of Information Technology
Czech Technical University in Prague
Prague, Czech Republic
[email protected] Supported by the Grant Agency of the Czech Technical University in Prague, grant No. SGS20/208/OHK3/3T/18.The author acknowledges the support of the OP VVV MEYS funded project CZ.02.1.01/0.0/0.0/16_019/0000765 “Research Center for Informatics”.
Abstract
The problem of -Path Vertex Cover, -PVC lies in determining a subset of vertices of a given graph such that does not contain a path on vertices. The paths we aim to cover need not to be induced. It is known that the -PVC problem is NP-complete for any . When parameterized by the size of the solution , 5-PVC has direct trivial algorithm with running time and, since -PVC is a special case of -Hitting Set, an algorithm running in time is known. In this paper we present an iterative compression algorithm that solves the 5-PVC problem in time.
\newaliascnt
theoremcounterglobalcounter \newaliascntcorollarycounterglobalcounter \newaliascntlemmacounterglobalcounter \newaliascntobservationcounterglobalcounter \newaliascntdefinitioncounterglobalcounter
1 Introduction
The problem of -Path Vertex Cover, -PVC lies in determining a subset of vertices of a given graph such that does not contain a path on vertices (even not a non-induced one). The problem was first introduced by Brešar et al. [1], but its NP-completeness for any follows already from the meta-theorem of Lewis and Yannakakis [13]. The 2-PVC problem corresponds to the well known Vertex Cover problem and the 3-PVC problem is also known as Maximum Dissociation Set. The -PVC problem is motivated by the field of designing secure wireless communication protocols [14] or in route planning and speeding up shortest path queries [11].
Since the problem is NP-hard, any algorithm solving the problem exactly is expected to have exponential running time. If one measures the running time solely in terms of the input size, then several efficient (faster than trivial enumeration) exact algorithms are known for 2-PVC and 3-PVC. In particular, 2-PVC (Vertex Cover) can be solved in time and polynomial space due to Xiao and Nagamochi [22] and 3-PVC can be solved in time and polynomial space due to Xiao and Kou [20].
In this paper we aim on the parameterized analysis of the problem, that is, to confine the exponential part of the running time to a specific parameter of the input, presumably much smaller than the input size. The problem is called fixed-parameter tractable fi there exists an algorithm (called a fixed-parameter algorithm) that runs in time, where is the parameter. The class of problems containing all fixed-parameter tractable problems is called FPT. See Cygan et al. [5] for a broader introduction to parameterized algorithms.
When parameterized by the size of the solution , the -PVC problem is directly solvable by a trivial FPT algorithm that runs in time.111The notation suppresses all factors polynomial in the input size. However, since -PVC is a special case of -Hitting Set, it was shown by Fomin et al. [8] that for any we have an algorithm solving -PVC in . In order to find more efficient solutions, the problem has been extensively studied in a setting where is a small constant. For the 2-PVC (Vertex Cover) problem, the algorithm of Chen, Kanj, and Xia [4] has the currently best known running time of . For 3-PVC, Tu [18] used iterative compression to achieve a running time . This was later improved by Katrenič [12] to , by Xiao and Kou [21] to by using a branch-and-reduce approach and it was further improved by Tsur [16] to . For the 4-PVC problem, Tu and Jin [19] again used iterative compression and achieved a running time and Tsur [17] gave the current best algorithm that runs in time. For , , and Tsur [15] claimed algorithms for -PVC with running times , , and , respectively. Recently, the authors of this paper claimed to have developed a procedure that generates even faster algorithms for -PVC for some [3].
In this paper, we present an algorithm that solves the 5-PVC problem parameterized by the size of the solution in time by employing the iterative compression technique. Using the result of Fomin et al. [9] this also yields time algorithm improving upon previously known time algorithm.
Organization of this paper.
We introduce the notation and define the 5-PVC problem in Section 2. Our disjoint compression routine for iterative compression is exposed in Section 3. We conclude this paper with a few open questions.
2 Preliminaries
We use the notation as described by Fomin and Kratsch [10], which is a modification of the big- notation suppressing all factors bounded by a polynomial of the input size. We use the notation of parameterized complexity as described by Cygan et al. [5]. We use standard graph notation and consider simple and undirected graphs unless otherwise stated. Vertices of graph are denoted by , edges by . By we denote the subgraph of induced by vertices of . By we denote the set of neighbors of in . Analogically, denotes the set of neighbors of vertices in . The degree of vertex is denoted by . For simplicity, we write for and for as shorthands for and , respectively.
A k-path, denoted as an ordered -tuple , is a path on vertices . A path starts at vertex when . A -cycle is a cycle on vertices. A triangle is a 3-cycle. A -free graph is a graph that does not contain a as a subgraph (the need not to be induced). The 5-Path Vertex Cover problem is formally defined as follows:
[TABLE]
Definition \thedefinition.
A star is a graph with vertices , and edges . Vertex is called a center, vertices are called leaves.
Definition \thedefinition.
A star with a triangle is a graph with vertices , and edges . Vertex is called a center, vertices are called triangle vertices and vertices are called leaves.
Definition \thedefinition.
A di-star is a graph with vertices , and edges . Vertices are called centers, vertices and are called leaves.
Lemma \thelemma.
If a connected graph is -free and has more than 5 vertices, then it is a star, a star with a triangle, or a di-star.
Proof.
Suppose we have a -free graph on at least 5 vertices. Firstly, does not contain a -cycle, as a subgraph, since is a subgraph of such a -cycle. Secondly, does not contain a 4-cycle as a subgraph, since has at least 5 vertices and it is connected which implies that there is at least one vertex connected to the 4-cycle which in turn implies a in . Finally, does not contain two edge-disjoint triangles as a subgraph, since is connected, the two triangles are either sharing a vertex or are connected by some path, which in both cases implies a in . Consequently, contains either exactly one triangle or is acyclic.
Consider the first case where contains exactly one triangle. Label the vertices of the triangle with . Then we claim that all vertices outside the triangle are connected by an edge to exactly one vertex of that triangle, let that vertex be . Indeed, for contradiction suppose they are not. Since we have at least 5 vertices in , label the two existing vertices outside the triangle and . Then we either have and connecting to two different vertices of the triangle, let them be , which immediately implies a in , or we have a connected to the triangle, which again implies a . Hence, if contains a triangle, then it is a star with a triangle.
Consider the second case where is acyclic. Then we claim that there is a dominating edge in , i.e. an edge such that . Indeed, for contradiction suppose that there is no such edge. Then we have that for each edge in there must be a vertex that is adjacent neither to , nor to . Assume that is connected to through some vertex . The same also holds for the edge , so assume that there is a vertex that is connected to through some vertex . But then we have a in .
Label the dominating edge . Here, if only one of the vertices has degree greater than one, we have a star, otherwise we have a di-star. ∎
3 5-PVC with -free bipartition
We employ the generic iterative compression framework as described by Cygan et al. [5, pages 80–81]. We skip the generic steps and only present the disjoint compression routine (see also Subsection 3.11 for a brief discussion of the whole iterative compression algorithm). That is, we assume that we are given a solution to the problem and search for another solution which is strictly smaller than and disjoint from the given one. Moreover, if the graph induced by the given solution contains a , then we can directly answer no. Hence our routine disjoint_r restricts itself to a problem called 5-PVC with -free Bipartition and we need it to run in time.
A -free bipartition of graph is a pair such that , and are -free. The 5-PVC with -free Bipartition problem is formally defined as follows:
[TABLE]
Throughout this paper the vertices from will be also referred to as “red” vertices and vertices from will be also referred to as “blue” vertices. The same colors will also be used in figures with the same meaning.
3.1 Algorithm Outline
Our algorithm is a recursive procedure , where is the input graph, are the partitions of the -free bipartition of , is the solution being constructed, and is the maximum number of vertices we can still add to . The procedure repeatedly tries to apply a series of rules with a condition that a rule can be applied only if all rules that come before cannot be applied. It is paramount that in every call of disjoint_r at least one rule can be applied. The main work is done in rules of two types: reduction rules and branching rules.
A reduction rule is used to simplify a problem instance, i.e. remove some vertices or edges from and possibly add some vertices to a solution, or to halt the algorithm. A branching rule splits the problem instance into at least two subinstances. The branching is based on subsets of vertices that we try to add to a solution and by adding them to the solution we also remove them from .
The notation we use to denote the individual branches of a branching rule is as follows: . Such a rule has branches and are subsets of which we try to add to the solution. This rule is translated into the following calls of the procedure:
[TABLE]
A rule is applicable if the conditions of the rule are satisfied and none of the previous rules is applicable.
A reduction rule is correct if it satisfies that the problem instance has a solution if and only if the simplified problem instance has a solution. A branching rule is correct if it satisfies that if the problem instance has a solution, then at least one of the branches of the rule will return a solution.
When we say we delete a vertex, we mean that we remove it from and also add it to the solution . When we say we remove a vertex, we mean that we remove it from and do not add it to the solution .
For the rest of this paper assume that the parameters of the current call of disjoint_r are .
3.2 Preprocessing
Reduction rule (R0)****.
This rule stops the recursion of disjoint_r. It has three stopping conditions:
If , return no solution; 2. 2.
else if is -free, return ; 3. 3.
else if , return no solution.
Reduction rule (R1)****.
Let be a vertex such that there is no in that uses . Then remove from .
Proof of correctness. Let be a vertex that is not used by any in and let be a solution to the 5-PVCwB instance . Then is also a solution to since is not used by any in .
If does not have a solution, then we claim that also does not have a solution. Indeed, adding vertices can only create new paths.
Reduction rule (R2)****.
Let be two vertices such that is contained in every in which contains . Then move the vertex to (make it red).
Proof of correctness. Let be two vertices such that is contained in every in which contains and let be a solution to the 5-PVCwB instance . Then is also a solution to . Similarly, if is a solution to which does not contain , then it is also a solution to . Finally, if is a solution to which contains , then is also a solution to : Indeed, as all paths that contain also, by assumption, contain , they are all covered by .
Branching rule (R3)****.
Let be a in with such that . Then branch on , i.e. branch on the blue vertices of .
Proof of correctness. We have to delete at least one blue vertex in , thus branching on the blue vertices of is correct.
Lemma \thelemma.
Assume that Rules (R0) – (R3) are not applicable. Then for each vertex there exists a in that uses ; every in uses exactly one red vertex; and there are only isolated vertices in .
Proof.
If (R1) is not applicable, then for each vertex there exists a in that uses . If (R3) is not applicable, then every in uses at most one red vertex and since is a -free bipartition we cannot have a in that uses no red vertex.
To prove that there are only isolated vertices in , assume for contradiction that there is an edge in . Since (R1) and (R3) are not applicable, there must be a path in that uses and not uses and in that uses and not uses . Paths and are not necessarily disjoint.
Now consider the following cases for and . If , then there is a path contradicting (R3) not being applicable. Similarly, if , then there is a path contradicting (R3) not being applicable. The same arguments apply for the cases where and respectively and the same logic applies also when considering and .
Thus we have that and . Now it suffices to see that either or . In the first case we get a path and in the second case we get a path . In both cases we get a contradiction with (R3) not being applicable. ∎
3.3 Dealing with isolated vertices in
Lemma \thelemma.
Assume that Rules (R0) – (R3) are not applicable. Let be an isolated vertex in and let be a solution to 5-PVCwB which uses vertex . Then there exists a solution that does not use vertex and .
Proof.
From Subsection 3.2 we get that each in which contains must also start in , otherwise it would imply a that uses more than one red vertex. In particular, has at most one red neighbor. Suppose that there exists a path where is a red vertex and (see Figure 1). If there is no such , then, as each vertex is in at least one due to (R1) not being applicable, we have that each starting in has at least one of the vertices in . In that case, we can put and the lemma holds.
There cannot exist another path such that and , otherwise we would have a in that is not hit by . Consequently, each that is hit only by vertex also contains vertex , which implies that is a solution and , thus the lemma holds. ∎
Reduction rule (R4)****.
Let be an isolated vertex in . Then move to .
Proof of correctness. Let be an isolated vertex in . If is a solution to the 5-PVCwB instance , then is also a solution to . Similarly, if is a solution to , then by Subsection 3.3 we can assume that it does not contain and, hence, it is also a solution to .
Observation \theobservation.
Assume that Rules (R0) – (R4) are not applicable. Then there are no isolated vertices in .
3.4 Dealing with isolated edges in
Lemma \thelemma.
Assume that Rules (R0) – (R4) are not applicable. Let be a blue vertex to which at least two red vertices are connected and let be a connected component of which contains . Then for each red vertex connected to we have that .
Proof.
Let be red vertices connected to . For contradiction assume that is connected to some vertex in such that . From Subsection 3.3 we know that has degree at least one in . Label some neighbor of in as . We obtained a which contradicts Subsection 3.2. ∎
Lemma \thelemma.
Assume that Rules (R0) – (R4) are not applicable. Let be a blue edge to which at least two red vertices are connected () in a way that to both and there is at least one red vertex connected (, ). Let be a connected component of which contains . Then for each red vertex connected to we have that .
Proof.
Let be red vertices connected to and assume that is connected to and is connected to . For contradiction assume that is connected to some vertex in such that . We obtain a which contradicts Subsection 3.2. ∎
Lemma \thelemma.
Let be a subset of such that and . Then (R2) applies. In particular, if has degree one, then its neighbor is in , or (R2) applies.
Proof.
Assume that . Then each that uses some vertex in must also use vertex , otherwise it would be contained in which contradicts being -free. ∎
Definition \thedefinition.
We say that two nodes are twins if .
Lemma \thelemma.
Let be blue vertices that are twins. Let be a solution and . Then at least one of the following holds:
- (1)
, 2. (2)
* is a solution.*
Proof.
Assume that and . Since are twins, for each path with and , there also exists a path such that for and . Firstly, if there is no containing , then trivially (2) holds. Secondly, if all paths that contain are hit by some other vertex , then again (2) holds. So suppose that there exists a path that is hit only by . If , then we know that there is a path as described above and we get a contradiction with being a solution since is not hit by and (1) must hold. Otherwise, all paths that contain also contain and (2) holds. ∎
Lemma \thelemma.
Assume that Rules (R0) – (R4) are not applicable. If there is an isolated edge in , then there is exactly one red vertex connected to . Moreover .
Proof.
For contradiction assume that Rules (R0) – (R4) are not applicable and there is an isolated edge in . If there is no that uses vertices from , then (R1) is applicable on . Hence there are red vertices connected to . If there are at least two red vertices connected to , then from Lemmata 3.4 and 3.4 we know that these red vertices are not connected to any other vertices outside and there again cannot be a that uses vertices from and (R1) is applicable on . So, assume that there is exactly one red vertex connted to and label that vertex . If , the vertices are not part of any and (R1) is applicable on them. Therefore, and the lemma holds. ∎
Branching rule (R5)****.
Let be an isolated edge in . Let there be a red vertex connected to at least one vertex in . Assume that is some vertex to which connects outside and let be a neighbor of in . Then branch on .
Proof of correctness. By Subsection 3.4 is the only red vertex connected to . Firstly, assume that is connected only to one vertex of . Then (R2) applies. Secondly, assume that is connected to both vertices of . Since are twins, from Subsection 3.4 it follows that we can try deleting only one of them. Thus branching on is correct.
Observation \theobservation.
Assume that Rules (R0) – (R5) are not applicable. Then there are no isolated edges in .
Proof.
If there is an isolated edge in , then by Subsection 3.4 there is exactly one red vertex connected to it and (R5) is applicable. ∎
3.5 Dealing with isolated paths in
Lemma \thelemma.
Assume that Rules (R0) – (R5) are not applicable. Let be a that forms a connected component in . There is only one red vertex connected to . In particular, is connected to and , to some component of other than , and possibly to .
Proof.
For contradiction assume that Rules (R0) – (R5) are not applicable and there is an isolated path in . If there is no that uses vertices from , then (R1) is applicable on . Hence there are red vertices connected to . Suppose there are at least two red vertices connected to . If they are connected to vertices , then (R3) is applicable, since there is a that uses at least two red vertices. So suppose the red vertices are connected to a single vertex or a single edge in . Then from Lemmata 3.4 and 3.4 we know that those red vertices are not connected to any other vertices outside . Consequently, there cannot be a that uses vertices from and again (R1) is applicable on .
So suppose that there is a that uses vertices from and there is only one red vertex connected to . If is not connected to or , then (R2) is applicable. ∎
Branching rule (R6)****.
Let be a that forms a connected component in and be the only red vertex connected to . Assume that is some vertex to which connects outside and let be a neighbor of in (see Figure 3). Then branch on .
Proof of correctness. By Subsection 3.5, vertex is connected to in and can be also connected to in . If we do not delete vertex , then we have to delete something in . In both cases, when is connected to and when not, are twins and from Subsection 3.4 we know that we have to try only one of . Thus branching on is correct.
Observation \theobservation.
Assume that Rules (R0) – (R6) are not applicable. Then there are no isolated paths in .
Proof.
For contradiction assume that Rules (R0) – (R5) are not applicable and there is an isolated in . Then, by Subsection 3.5, (R6) applies. ∎
3.6 Dealing with isolated triangles in
Lemma \thelemma.
Assume that Rules (R0) – (R6) are not applicable. Let be a that forms a connected component in . There is only one red vertex connected to . Furthermore, is connected to at least two vertices of and to some component of other than .
Proof.
For contradiction assume that Rules (R0) – (R6) are not applicable and there is an isolated triangle in . If there is no that uses vertices from , then (R1) is applicable on . Hence there are red vertices connected to . Suppose there are at least two red vertices connected to . If the red vertices are not connected to a single vertex in , then (R3) is applicable, since there is a that uses at least two red vertices. So suppose the red vertices are connected to a single vertex in . Then from Subsection 3.4 we know that those red vertices are not connected to any other vertices outside . Consequently, there cannot be a that uses vertices from and again (R1) is applicable on .
So suppose that there is a that uses vertices from and there is only one red vertex connected to . If is connected to only one vertex of , then (R2) is applicable on the other vertices of . ∎
Branching rule (R7)****.
Let be a that forms a connected component in and the only red vertex connected to . Suppose that vertex is connected to at least two vertices in , let those vertices be . Assume that is some vertex to which connects outside and let be a neighbor of in (see Figure 4). Then branch on .
Proof of correctness. If we do not delete vertex , then we have to delete something in . Since are twins, from Subsection 3.4 we know that we have to try only one of . Thus branching on is correct.
Observation \theobservation.
Assume that Rules (R0) – (R7) are not applicable. Then there are no isolated triangles in .
Proof.
For contradiction assume that Rules (R0) – (R6) are not applicable and there is an isolated triangle in . Then, by Subsection 3.6, (R7) is applicable. ∎
3.7 Dealing with 4-cycles in
Lemma \thelemma.
Let be a connected component of and . Let be a solution that deletes at least vertices in . Then is also a solution and .
Proof.
Each that uses some vertex in must also use some vertex , otherwise it would be contained in which contradicts being -free. Consequently, any that is hit by a vertex from in the solution can be also hit by some vertex and thus is also a solution and . ∎
Lemma \thelemma.
*Assume that Rules (R0) – (R7) are not applicable. Let be a connected component in which contains a 4-cycle. Then is a subgraph of and there is exactly one red vertex connected to and it must be connected to at least two vertices in and to some component of other than . *
Proof.
Assume that Rules (R0) – (R7) are not applicable and there is a component in that contains a 4-cycle as a subgraph, label the vertices of the 4-cycle . Observe that is a subgraph of , as otherwise there would be a in .
If there is no that uses vertices from , then (R1) is applicable on . Hence there are red vertices connected to . Suppose that there are at least two red vertices connected to . If the red vertices are not connected to a single vertex or a single edge in , then (R3) is applicable, since there is a that uses at least two red vertices. So suppose the red vertices are connected to a single vertex or a single edge in . Then from Lemmata 3.4 and 3.4 we know that those red vertices are not connected to any other vertices outside . Then, we have that every , which uses some vertices from , actually uses all of the vertices from and exactly one red vertex connected to . But then, (R2) is applicable on . Hence, we have that there is exactly one red vertex connected to , label it . Again, if is not connected to some component of other than , then (R2) applies on . Now assume, that is connected to only one vertex of . Then (R2) is applicable on that vertex and the other vertices of . Therefore, vertex must be connected to at least two vertices of and the lemma holds.
∎
Let be a connected component such that a 4-cycle is a subgraph of , label the vertices of the 4-cycle . We will call pairs of vertices and diagonal, all other pairs will be called non-diagonal.
Branching rule (R8)****.
Let be a connected component in such that and a 4-cycle is a subgraph of . Assume that there is only one red vertex connected to and . Set contains at least one diagonal pair, let that pair be (see 5(a)). Then branch on .
Proof of correctness. We have to delete something in . Since are twins, from Subsection 3.4 we know that we have to try only one of . Thus branching on is correct.
Branching rule (R9)****.
Let be a connected component in such that and a 4-cycle is a subgraph of . Assume that there is only one red vertex connected to and . Suppose that set is of size 2 and forms a non-diagonal pair, let that pair be . Assume that there is a vertex to which connects outside and let be a neighbor of in (see 5(b)). Then branch on .
Proof of correctness. If none of the vertices is deleted, then we have to delete at least two vertices in . From Subsection 3.7 we know that we only have to try deleting vertices . Thus branching on is correct.
Lemma \thelemma.
Assume that Rules (R0) – (R9) are not applicable. Then there is no component of that contains a 4-cycle as a subgraph.
Proof.
For contradiction assume that Rules (R0) – (R9) are not applicable and there is a component in that contains a 4-cycle as a subgraph, label the vertices of the 4-cycle . By Subsection 3.7, is a subgraph of and there is exactly one red vertex connected to and is connected to at least two vertices in and to some component of other than .
Let . As is connected to at least two vertices in , either contains at least one diagonal pair of , or is of size 2 and forms a non-diagonal pair. In the case contains a diagonal pair, (R8) applies. In the case forms a non-diagonal pair, (R9) applies. ∎
3.8 Dealing with stars in
Lemma \thelemma.
Assume that Rules (R0) – (R9) are not applicable. Suppose that there is a connected component of which is isomorphic to a star with at least vertices. Then there is exactly one red vertex connected to and is connected to all the leaves of .
Proof.
Assume that Rules (R0) – (R9) are not applicable and there is a star in with at least vertices.
If there is no that uses vertices from , then (R1) is applicable on . Hence there are red vertices connected to . Suppose there are at least two red vertices connected to . If the red vertices are not connected to a single vertex or a single edge in , then (R3) is applicable, since there is a that uses at least two red vertices. So suppose the red vertices are connected to a single vertex or a single edge in . Then from Lemmata 3.4 and 3.4 we know that those red vertices are not connected to any other vertices outside . Consequently, there cannot be a that uses vertices from and again (R1) is applicable on .
So suppose that there is a that uses vertices from and there is only one red vertex connected to . If there is a leaf of not connected to , then (R2) applies to . ∎
Branching rule (R10)****.
Let be a connected component of isomorphic to a star with at least vertices, an arbitrary one of its leaves and its center. Then branch on .
Proof of correctness. We have to delete something in , since there is a path for some three leaves of .
Since all leaves are twins, from Subsection 3.4 we know that we have to try only one of them. Therefore branching on is correct.
Observation \theobservation.
Assume that Rules (R0) – (R10) are not applicable. Then there are no stars in .
Proof.
For contradiction assume that Rules (R0) – (R10) are not applicable and there is a star in . By Lemmata 3.3, 3.4, and 3.5 it has at least vertices. Then, by Subsection 3.8, (R10) is applicable. ∎
3.9 Dealing with stars with a triangle in
Lemma \thelemma.
Assume that Rules (R0) – (R10) are not applicable. Suppose that there is a connected component of which is isomorphic to a star with a triangle with at least vertices. Then there is exactly one red vertex connected to and is connected to all the leaves of and at least one of its triangle vertices.
Proof.
Assume that Rules (R0) – (R10) are not applicable and there is a star with a triangle in with at least vertices.
If there is no that uses vertices from , then (R1) is applicable on . Hence there are red vertices connected to . If there is no red vertex connected to any of the triangle vertices of , then (R2) applies to both the triangle vertices.
So suppose that there is a red vertex connected to some of the triangle vertices, label it . If there is a leaf of not connected to a red vertex, then (R2) applies to . If the center or some leaf is connected to a different red vertex than , then there is a that uses at least two red vertices and (R3) applies. Hence is the red vertex connected to all the leaves and if there is a red vertex connected to the center, then it is also . It follows, that there is no red different than connected to the triangle vertices of , as otherwise there is a that uses at least two red vertices and (R3) applies. Therefore, is the only red vertex connected to . ∎
Lemma \thelemma.
Assume that Rules (R0) – (R10) are not applicable. Let be a star with a triangle in , let be its a center and its triangle vertices. Let be a red vertex connected to such that is connected to and is not connected to (see Figure 7). If is a solution that contains , then at least one of the following holds:
- (1)
, 2. (2)
* is a solution.*
Proof.
If there is no containing , then (2) trivially holds. Suppose that every that contains also contains , then again (2) trivially holds. So assume that there is a labeled that contains but does not contain . If for each such there is some vertex such that and , then (2) holds, since is not needed in the solution. Finally assume that , then, since does not contain , must start at and . But then there also exists a path and is not hit, which is a contradiction with being a solution and (1) must hold. ∎
Branching rule (R11)****.
Let be a star with a triangle in with at least vertices, let be its center, its triangle vertices and the set of leaves. Let be a red vertex connected to such that , assume that is connected to (see Figure 7). Then branch on .
Proof of correctness. We have to delete something in since there is a for some leaf of . If we do not delete any vertex from , then the only thing we can do is to delete each vertex in .
So assume that we did not delete all vertices from , label some remaining vertex from as . If we do not delete anything in , then we have to delete , otherwise a path would remain.
Finally, if , then and are twins and from Subsection 3.4 we know that we have to try only one of them. If is not connected to , then from Subsection 3.9 we see that deleting only is sufficient. Thus branching on is correct.
Observation \theobservation.
Assume that Rules (R0) – (R11) are not applicable. Then there are no stars with a triangle in .
Proof.
For contradiction assume that Rules (R0) – (R11) are not applicable and there is a star with a triangle in . By Subsection 3.6 it has at least vertices. Then, by Subsection 3.9, (R11) is applicable. ∎
3.10 Dealing with di-stars in
Lemma \thelemma.
Assume that Rules (R0) – (R11) are not applicable. Let be a connected component of which is isomorphic to a di-star and let , , where are the centers, and and are the leaves connected to and , respectively. Then there is a red vertex such that every leaf is connected to and a red vertex (possibly ) such that every leaf is connected to . Furthermore,
- •
if then neither nor is connected to any of and , is not connected to and is not connected to ;
- •
there are no red vertices other than and connected to ;
- •
if , then both and are also connected to some component of other than .
Proof.
If there is an such that no red vertex is connected to , then (R2) applies. If there were two leaves and in such that is connected to red vertex and is connected to red vertex , then there is a and (R3) applies. Hence there is such that every leaf is connected to , and, if , then no other red vertex is connected to leaves in . A symmetric argument shows that there is a red vertex (possibly ) such that every leaf is connected to , and, if , then no other red vertex is connected to leaves in .
If and was connected to , then we have a for some and (R3) applies. A symmetric argument shows that if , then is not connected to any . Moreover, the same argument shows that if , then no other red vertex is connected to .
If there is some red vertex connected to , then we have for some and (R3) applies. If is connected to and , then we have a for some and and (R3) applies. Hence, only can be connected to and only in case . A symmetric argument shows that the same holds for . In particular, we already showed, that in case there is no other red vertex connected to .
Hence, if there is some red vertex other than and connected to , then and is connected to some or some . If is connected to both and , then we have a and (R3) applies. If there is some connected to some , then we have and by Subsection 3.4 all red vertices connected to are not connected to any other component of , in particular, by the previous arguments, they are only connected to . However, then (R2) applies to and , as is contained in any containing . Hence, there are no other vertices connected to . The same argument shows that (R2) applies if and is not connected to any other component of . A symmetric argument shows that there are no other vertices connected to and if , then is also connected to some component of other than . Hence, there are no other red vertices connected to .
Finally, assume that , and is not connected to any component of other than . Then all vertices of are contained in the same set of ’s and (R2) applies. ∎
Branching rule (R12)****.
Let be a di-star in and let , , where are the centers, and and are the leaves connected to and , respectively. Let or . If , then let (see Figure 8), otherwise let . Branch on .
Proof of correctness. Assume that , the other case is symmetric. By Subsection 3.10 there is a red vertex connected to all leaves in , let , (see Figure 8). Moreover, there is no other red vertex connected to . We have to delete something in and since are twins, from Subsection 3.4 we know that we have to try only one of them, thus branching on is correct.
Observation \theobservation.
Assume that Rules (R0) – (R12) are not applicable. Then every di-star in is a .
Proof.
If there is a di-star which is not a , then (R12) applies. ∎
Branching rule (R13)****.
Let be a connected component of . Assume that there is a red vertex connected to , , and a component of other than , and not connected to any of . Let be the vertex connects to outside and let be a neighbor of in (see Figure 9). Then branch on .
Proof of correctness. If none of the vertices is deleted, then we have to delete at least two vertices in and from Subsection 3.7 we know that we only have to try to delete . Therefore branching on is correct.
Branching rule (R14)****.
Let be a connected component of . Assume that there is a red vertex connected to , a component of other than , and at least one of . Let be the vertex connects to outside and let be a neighbor of in (see Figure 10). Then branch on .
Proof of correctness. If none of the vertices is deleted, then we have to delete at least two vertices in . Assume that we want to delete only two vertices in . Out of six possible pairs of vertices only lead to a solution. Deleting more than two vertices in also deletes at least one of the pairs . Thus branching on is correct.
Lemma \thelemma.
Assume that Rules (R0) – (R14) are not applicable. Then every connected component of is and there are exactly two red vertices connected to it. Vertex is connected to and to some other component of but not to , , and . Vertex is connected to and to some other component of but not to , , and .
Proof.
From Section 2 together with Observations 3.3, 3.4, 3.5, 3.6, 3.8, and 3.9 and Subsection 3.7, all components of are di-stars. By Subsection 3.10, all di-stars are actually ’s.
Let be one such component. By Subsection 3.10, there are at most two red vertices connected to it, connected to and connected to . Moreover, both and are also connected to some other component of . If and is connected to neither nor , then (R13) applies. If and is connected to at least one of nor , then (R14) applies. Hence, and by Subsection 3.10 neither nor is connected to any of and , is not connected to and is not connected to . ∎
Branching rule (R15)****.
Let be a connected component of . Let there be two red vertices connected to leaves and , respectively, and both have degree exactly two in (see Figure 11). Then branch on .
Proof of correctness. By Subsection 3.10 each connected component of is a with two red vertices connected. Let be a solution. Label the di-star components of as . Observe that deletes at least one vertex in each di-star component .
Firstly, we construct a directed graph such that and there is an edge in if and only if deletes exactly one vertex in and the deleted vertex is either or where is a leaf connects to in and is the center of to which is connected.
We claim that each vertex in has outdegree at most one. Indeed, for contradiction assume that vertex has outdegree at least two, which means that there are two di-star components connected to such that does not contain the leaves is connected to in , let them be , and the centers to which these leaves are connected, let them be , , respectively. But that implies a in and would not be a solution, which is a contradiction.
Secondly, we construct a set in the following way: (1) for each di-star component where deletes at least two vertices, add to the two leaves of and (2) for each edge in add to a leaf connected to in .
Finally, is also a solution because in the di-star where deleted at least two vertices we know from Subsection 3.7 that it suffices to delete only the leaves of and we claim that in the graph there is no . Indeed, for contradiction assume that there is a in . But that could only happen if there was a vertex in with outdegree at least two, which is a contradiction.
Therefore is a solution that uses only leaves of the di-stars in and from construction of and we have that . Thus branching on is correct.
Observation \theobservation.
If is non-empty, then at least one of the at least one of Rules (R0) – (R15) is applicable.
Proof.
By Subsection 3.10, if none of Rules (R0) – (R14) is applicable, then every connected component of is a with two red vertices connected to leaves and , respectively, and both have degree exactly two in . But then (R15) applies. ∎
3.11 Final remarks
From Observation 3.10 we know that there is always at least one rule applicable. It remains to analyze the running time of the disjoint compression routine disjoint_r.
Theorem 1**.**
The disjoint_r procedure solves the 5-PVCwB problem in time.
Proof.
We use the technique of analysis of branching algorithms as described by Fomin and Kratsch [10].
Let be the maximum number of leaves in any search tree of a problem instance with parameter . We analyze each branching rule separately and finally use the worst-case bound on the number of leaves over all branching rules to bound the number of leaves in the search tree of the whole procedure.
Let be the branching rule to be analyzed. We have that and . This implies the linear recurrence
[TABLE]
It is well known that the base solution of such linear recurrence is of the form where is a complex root of the polynomial
[TABLE]
and the worst-case bound on the number of leaves of the branching rule is given by the unique positive root of the polynomial. This positive root is called a branching factor.
The worst-case upper bound of the number of leaves in the search tree of the whole procedure is the maximal branching factor among the branching factors of all the branching rules. Be advised that the branching factor does not necessarily correspond to the number of branching calls, e.g., (R14) generates 5 branching calls, but 3 of them delete more than one vertex, which results in branching factor of 3 rather than 5. In our case, the worst-case branching factor is 3 (see Table 1 for the branching factors), therefore the upper bound of the number of leaves in the search tree is .
Now we have to upper bound the number of inner nodes in the search tree. We claim that each path from the root to some leaf of the search tree has at most vertices. Indeed, each rule removes at least one vertex from . Therefore the upper bound of the number of inner nodes in the search tree is .
Since the running time of each rule (the work that is done in each node of the search tree) is polynomial in , we get that the worst-case running time of the whole procedure is . ∎
To understand the key ideas behind iterative compression algorithms and how the disjoint_r routine is involved, we briefly describe the iterative compression algorithm (for in-depth description see Cygan et al. [5, pages 80–81]).
We start with an empty vertex set and empty solution and work with the graph . Surely, an empty set is a solution for a currently empty graph . We add vertices one by one to both and until and if at any time the solution becomes too large, i.e. if , then we start the compression routine.
The compression routine takes and goes through every partition of into two sets such that . Here, is the part of that we want to keep in the solution and is the part of that we want to replace with vertices from . Since are vertices we already decided to keep in the solution, we remove them from , i.e. we continue with . Now the problem is to find a solution for such that and is disjoint from . We consider this partition only if is -free. Indeed, we require that is disjoint from so we cannot have any paths in . To find this smaller disjoint solution for we use the disjoint compression routine which in our case is the disjoint_r procedure. The smaller solution for is then constructed as and it follows from construction of that .
If after going through all partitions of we did not find a smaller solution for , then we know that was optimal in size and signalize that there is no solution.
The complexity of the whole iterative compression algorithm is then computed as follows. The compression routine is called at most times and the worst case running time of one run of the compression routine can be computed as
[TABLE]
which finally gives us the following corollary.
Corollary \thecorollary.
The iterative compression algorithm solves the 5-PVC problem and runs in time.
4 Conclusion
We conclude this paper with a few open questions.
Firstly, we again kindly remind the reader of our recent work on generating efficient algorithms for -PVC [3]. As the generated algorithms consist of thousands (and in some cases hunders of thousands) branching rules, we ask, whether there exist significantly simpler algorithms with comparable running times.
Secondly, as the -Hitting Set algorithm of Fernau [7] gets closer to the running time of with increasing , we ask, whether one can find a general -PVC algorithm with running time or if it is possible to go below the base of the exponential.
Finally, in our recent work on kernels for -PVC we give a kernel with edges for -PVC and for -PVC and -PVC we have a kernel with edges. As Dell and Melkebeek [6] have shown that for Vertex Cover it is not possible to achieve a kernel with edges unless coNP is in NP/poly (which would imply a collapse of the polynomial hierarchy) and as their result extends to -PVC, the best we can hope for is a kernel with edges for -PVC. And therefore we ask, can we bridge the gap between our kernel towards the kernel?
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] Boštjan Brešar, František Kardoš, Ján Katrenič, and Gabriel Semanišin. Minimum k-path vertex cover. Discrete Applied Mathematics , 159(12):1189–1195, 2011. doi:10.1016/j.dam.2011.04.008 . · doi ↗
- 2[2] Radovan Červený and Ondřej Suchý. Faster FPT algorithm for 5-path vertex cover. In Peter Rossmanith, Pinar Heggernes, and Joost-Pieter Katoen, editors, 44th International Symposium on Mathematical Foundations of Computer Science, MFCS 2019, August 26-30, 2019, Aachen, Germany , volume 138 of LIP Ics , pages 32:1–32:13. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2019. doi:10.4230/LIP Ics.MFCS.2019.32 . · doi ↗
- 3[3] Radovan Červený and Ondřej Suchý. Generating faster algorithms for d-path vertex cover. Co RR , abs/2111.05896, 2021. URL: https://arxiv.org/abs/2111.05896 , ar Xiv:2111.05896 .
- 4[4] Jianer Chen, Iyad A. Kanj, and Ge Xia. Improved upper bounds for vertex cover. Theor. Comput. Sci. , 411(40-42):3736–3756, 2010. doi:10.1016/j.tcs.2010.06.026 . · doi ↗
- 5[5] Marek Cygan, Fedor V. Fomin, Łukasz Kowalik, Daniel Lokshtanov, Dániel Marx, Marcin Pilipczuk, Michał Pilipczuk, and Saket Saurabh. Parameterized Algorithms . Springer, 2015. doi:10.1007/978-3-319-21275-3 . · doi ↗
- 6[6] Holger Dell and Dieter van Melkebeek. Satisfiability allows no nontrivial sparsification unless the polynomial-time hierarchy collapses. In Leonard J. Schulman, editor, Proceedings of the 42nd ACM Symposium on Theory of Computing, STOC 2010, Cambridge, Massachusetts, USA, 5-8 June 2010 , pages 251–260. ACM, 2010. doi:10.1145/1806689.1806725 . · doi ↗
- 7[7] Henning Fernau. Parameterized algorithmics for d -hitting set. Int. J. Comput. Math. , 87(14):3157–3174, 2010. URL: https://doi.org/10.1080/00207160903176868 . · doi ↗
- 8[8] Fedor V. Fomin, Serge Gaspers, Dieter Kratsch, Mathieu Liedloff, and Saket Saurabh. Iterative compression and exact algorithms. Theor. Comput. Sci. , 411(7-9):1045–1053, 2010. doi:10.1016/j.tcs.2009.11.012 . · doi ↗
