An improved kernel for the cycle contraction problem
Bin Sheng, Yuefang Sun

TL;DR
This paper presents an improved kernelization result for the cycle contraction problem, reducing the vertex bound from 6k+6 to 5k+4, advancing the understanding of graph modification problems.
Contribution
It introduces a tighter kernel for the cycle contraction problem, improving the vertex bound compared to previous work.
Findings
Reduced kernel size from 6k+6 to 5k+4 vertices
Provides theoretical bounds for graph modification
Advances parameterized complexity results
Abstract
The problem of modifying a given graph to satisfy certain properties has been one of the central topics in parameterized tractability study. In this paper, we study the cycle contraction problem, which makes a graph into a cycle by edge contractions. The problem has been studied {by Belmonte et al. [IPEC 2013]} who obtained a linear kernel with at most vertices. We provide an improved kernel with at most vertices for it in this paper.
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.
Taxonomy
TopicsAdvanced Graph Theory Research · Graph theory and applications · Fiber-reinforced polymer composites
An improved kernel for the cycle contraction problem
Bin Sheng 111Corresponding author. Email: [email protected]
Department of Computer Science, Royal Holloway
University of London, Egham, Surrey, TW20 0EX, UK
Yuefang Sun
Department of Mathematics, Shaoxing University
Shaoxing, Zhejiang 312000, PR China
Abstract
The problem of modifying a given graph to satisfy certain properties has been one of the central topics in parameterized tractability study. In this paper, we study the cycle contraction problem, which makes a graph into a cycle by edge contractions. The problem has been studied by Belmonte et al. [IPEC 2013] who obtained a linear kernel with at most vertices. We provide an improved kernel with at most vertices for it in this paper.
1 Introduction
Parameterized computation is a new approach to tackle NP-hard problems, it has successful applications in many fields, including Combinatorial Optimization, Artificial Intelligence, Computational Biology, and so on. A parameterized problem is a subset over a finite alphabet . The problem is said to be fixed-parameter tractable (FPT) if the membership of its instance in can be decided in time , where is a computable function depending on the parameter only. Given a parameterized problem , a kernelization of is a polynomial time algorithm that shrinks an instance into a smaller instance (the kernel) such that if and only if and for some function . It is well-known that a decidable parameterized problem is fixed-parameter tractable if and only if it has a kernel. Kernels of small size are of the main research interest, due to application needs. Thus, we have particular interests in kernels whose sizes are bounded by a polynomial function of the parameter. For a more thorough introduction to FPT and Kernelization, we refer the readers to the excellent books [4, 5, 6] and surveys [13, 15].
Graph theory has been a rich source of research problems from the parameterized complexity perspective. Among them, there is a large set of research studying the distance of a graph to a certain property, that is, the minimum number of operations that make the graph satisfy the required property. Most common graph modification operations include deleting (or adding) vertices (or edges). Vertex Cover, Feedback Vertex Set, Multiway Cut, Minimum Fill-in and Cluster Editing are just a few of the extensively studied topics in this research framework.
Recently, people start to look at the effect of edge contraction on a given graph, and study it in the setting of parameterized tractability. The parameterized complexity of the contractibility problem has been investigated for various specific classes of graphs, such as making a graph planar [8], split [10], bipartite [9, 11], or more specifically into a tree or a path [12]. We have also seen study of contracting edges to satisfy certain degree bounds [7, 17] or to eliminate small induced subgraphs [16].
This paper follows this line of research by providing an improvement for the cycle contraction problem, which asks to do minimum number of edge contractions on a given graph and make it into a cycle. The cycle contraction problem has been studied in [2], where the authors obtained a linear kernel with at most vertices. We provide an improved kernel for the problem with at most vertices in this paper.
2 Notations and Terminology
For most of the graph theoretical concepts used in this paper, we follow the notations and terminology in [3].
An undirected graph is denoted by an ordered pair , where is a set of unordered pairs of elements in . The elements of are the vertices of and the elements of are the edges of . Two vertices are adjacent if and , and we say they are neighbour of each other. An edge is normally written as for short, thus and are adjacent if and only if . And in this case we say is incident with the edge . We denote the degree of in by , which is the number of edges incident with .
A graph is a subgraph of if and . is an induced subgraph of if and . For a set of vertices , we use to denote the induced subgraph of with vertex set .
A path is a non-empty graph with vertex set and edge set , where are all distinct. And we say it is a path between and , which are called the endvertices of . If is a path and , then the graph we obtain by adding the edge to is called a cycle. The length of a path (or a cycle) is the number of edges in it. A path with at least one edge is called a nontrivial path.
A non-empty graph is connected if there is a path between any two of its vertices. A cut set in a connected graph is a set of vertices whose deletion results in a disconnected graph. A connected graph is said to be -connected if every cut set of it has size at least . A connected graph is -edge-connected if remains connected whenever less than edges are deleted from it. An edge in a connected graph is called a bridge if is disconnected. A block in a graph is a maximal 2-connected subgraph.
The contraction of an edge in removes and from , and replaces them by a new vertex adjacent to exactly all the neighbours of and in . Note that, by definition, edge contractions create neither self-loops nor multiple edges.
The following notions come from [2, 12]. Let be a graph. A graph is -contractible to if we can obtain a copy of by at most edge contractions on . And we say is contractible to if there is some such that is -contractible to . The contraction is actually defined by a surjection , where is the set of vertices contracted into . The surjection satisfies the following conditions.
For every vertex , is a connected subgraph of , 2. 2.
For every pair of vertices in , if and only if there is an edge between and , 3. 3.
and if .
We call an -witness structure of . And for each , is called a witness set of . A witness set is big (small, respectively) if (, respectively), and we denote it by (, respectively).
3 Main Result
First let us give the formal definition of the parameterized Cycle Contraction problem.
Cycle Contraction [2]
Instance: A connected graph and an integer .
Parameter: .
Output: Decide if one can do at most edge contractions on to modify it into a cycle.
In this section, we prove that the problem of Cycle Contraction admits a kernel with at most vertices, which is an improvement over the kernel bound in [2]. Without loss of generality, we assume that the graphs we consider are connected, as there is no way to edge contract a disconnected graph into a cycle or a path. We also assume that the parameter (which implies ), as for the smaller , the kernel size is at most .
In [14], the authors study the following parameterized Path Contraction problem and obtain a kernel with at most vertices.
Path Contraction [14]
Instance: A connected graph and an integer .
Parameter: .
Output: Decide if one can do at most edge contractions on to modify it into a path.
Theorem 1**.**
[14]** The parameterized Path Contraction problem admits a kernel with at most vertices.
We add some descriptions of the reduction rules in [14] here, to help explain how we make use of their result. Their kernel is obtained by exhaustively applying the following two reduction rules. Note that both reduction rules do not decrease the value of the parameter .
Lemma 1**.**
[14]** For any 2-edge-connected graph , if is contractible to a path by edge contractions, then .
The authors implicitly use the following reduction rule, which is implied by Lemma 1.
Rule A [14] If is a 2-edge-connected graph and , then is a NO instance for Path Contraction with parameter .
For a connected graph , let be a 2-edge-connected component or a single vertex such that each edge between and is a bridge. Let be the set of all connected components in , where and if .
Rule B [14] Let be the bridge of between and . If and one of the following inequalities is satisfied:
, if 2. 2.
, if
then return , where is the graph obtained by contracting .
We will make use of their result to obtain our result on Cycle Contraction. Firstly, we will introduce the problem of Path Contraction with Fixed Endvertices (PCFE), which has the requirement of fixed endvertices.
Path Contraction with Fixed Endvertices (PCFE)
Instance: A connected graph , an integer and two vertices .
Parameter: .
Output: Decide if one can do at most edge contractions on and make it into a path between two vertices and , such that and .
We will show that PCFE also admits a kernel with at most vertices. We prove it by reducing an instance of PCFE to an instance of the Path Contraction problem.
Theorem 2**.**
PCFE admits a kernel with at most vertices.
Proof.
Given an instance of PCFE, where is a connected graph with . We construct a new graph , where is a path with length between and , and is a path with length between and . An example is shown in Figure 1. Note that , .
Now we prove that is a YES instance of PCFE if and only if is a YES instance of Path Contraction. Moreover, we show that if is the kernel we get for Path Contraction on according to the argument in Theorem 1, then is a kernel for PCFE on .
On the one hand, it is obvious to see that if is a YES instance of PCFE, then we can do the same (at most ) edge contractions on , which would result in a path with endvertices and .
On the other hand, suppose is a YES instance of Path Contraction. Let be a minimum set of edges contracted that modifies into a path . A path of length will still be a nontrivial path after at most edge contractions. As both and have length , the path must have endvertices and where and . Actually we must have and by the minimality of . The path must pass through some and , where and . It is easy to see that when we contract those edges in on , we will make into a path between and .
By the above argument, we know that is a YES instance of PCFE if and only if is a YES instance of Path Contraction. Now we show how to get a kernel for PCFE on from a kernel for Path Contraction on .
Let be a kernel for Path Contraction on according to the argument in Theorem 1. Since both the lengths of and in are , , no edge on them satisfies the condition in Rule B. So the kernelization does not contract any edge in and , we must have . Moreover, it is not hard to see that is a YES instance for Path Contraction if and only if is a YES instance for PCFE, thus is a kernel for PCFE on . Since , we get a kernel for PCFE on as we want. ∎
Now we are ready to prove our kernel bound for the Cycle Contraction problem. We adopt the following reduction rules from [2].
Reduction Rule 1 [2] If is 3-connected and , then return NO.
Reduction Rule 2 [2] If contains a block on at least vertices and , then return NO if , and return the instance otherwise, where is the graph obtained from by exhaustively contracting a vertex of onto one of its neighbours.
Reduction Rule 3 [2] If contains a block on at most vertices and , then return the instance , where is the graph obtained from by exhaustively contracting a vertex of onto one of its neighbours.
Note that any connected graph that is not a tree can be contracted to a cycle. We call a cycle optimal for if is the longest cycle to which can be contracted.
Lemma 2**.**
[2]** Let be a YES instance of Cycle Contraction, be an optimal cycle for , and be a -witness structure of . If is 2-connected and contains two vertices and such that and has exactly two connected components and , then the following three statements hold:
Either and are small witness sets of , or and belong to the same big witness set of ; 2. 2.
If and belong to the same big witness set , then contains all the vertices of or all the vertices of ; 3. 3.
If and contain at least vertices each, then and are small witness sets of .
Based on the observation in Lemma 2, we introduce a novel reduction rule which is the key to make the improvement.
Reduction Rule 4 Let be an instance of Cycle Contraction, where is 2-connected. If contains two vertices and such that , and the graph has exactly two connected components and , such that and . Then we can obtain a kernel for with .
We now prove the correctness of Reduction Rule 4.
Lemma 3**.**
Reduction Rule 4 is safe.
Proof.
Let’s construct two graphs , , see Figure 2 for an illustration. Both and have degree 2, let and with . Since is 2-connected, we know and . By statement 3 in Lemma 2, we know that both and should be small witness sets, thus the problem of contracting into a cycle is equivalent to doing at most edge contractions that make both and into paths between and . Note that one can contract into a path between and where both and are small witness sets with at most edge contractions if and only if is a YES instance for PCFE with .
Let’s consider the following two instances of PCFE, and . If the answers to both and are NO, then we know that is a No instance for Cycle Contraction.
If either enquiry gives a kernel, then we know it should have at most vertices by Theorem 2. Without loss of generality, assume that gives a kernel , following the argument in Theorem 2. We further look at as an instance of PCFE. If the answer to is NO, then we know that is also a No instance for Cycle Contraction. Otherwise, we get a kernel for with at most vertices by Theorem 2.
Let be the graph obtained from and by adding edges and , which implies that .
Claim: is a kernel for Cycle Contraction on .
Observe that can be contracted into a cycle by at most edge contractions, if and only if there exist two non-negative integers and such that , and is a YES instance for PCFE with . Recall that , is a kernel for , and the two pendent paths and in constructed according to the argument of Theorem 2 have total length . So is a YES instance for PCFE if and only if can be contracted into a path between and by at most edge contractions. And is a kernel for , is a YES instance for PCFE if and only if can be contracted into a path between and by at most () edge contractions. Thus is a kernel for Cycle Contraction on . ∎
Theorem 3**.**
The Cycle Contraction problem admits a kernel with at most vertices.
Proof.
We describe our algorithm to obtain the claimed kernel for the Cycle Contraction problem. The correctness of the algorithm follows from the correctness of the reduction rules. Given an instance of Cycle Contraction, the algorithm begins with applications of Reduction Rules 1-4 we listed above. Let be the resulting instance after all possible applications of the reduction rules. If is 3-connected, then we must have that , as otherwise Reduction Rule 1 could be applied.
If is not 2-connected, then has at least two blocks as is connected by assumption. Let be any block of . Then , as otherwise Rule 2 could be applied. Moreover, due to the assumption that Rule 3 cannot be applied. Hence . In the following, we assume that is 2-connected and will prove the following claim.
Claim: If is 2-connected and , then we can safely return NO.
To see why the claim is correct, suppose, on the contrary, that is a YES instance of Cycle Contraction such that is a 2-connected graph with at least vertices after all applications of Reduction Rules 1-4. Let be an optimal cycle for and let be a -witness structure of . We know that , where , and . There are at most big witness sets in , which in total contains at most vertices, thus . Any vertex must be adjacent to vertices in as and it is in a small witness set, so . Thus we know . Let’s call any vertex in a small-witness vertex. In the following, we will prove that there must be two small-witness vertices and such that has two components each of which contains at least vertices, thus Reduction Rule 4 can be applied, a contradiction.
Choose a small-witness vertex , and let be the neighbour of clockwisely in , as shown in Figure 3. We want to find another small-witness vertex in the cycle such that contains two connected components, each of which has size at least . Starting at , let’s look at the small-witness vertices in one by one clockwisely. And denote these vertices by with . Let be the smallest subscript such that the component containing in contains at least vertices. If contains two connected components each of which has size at least , then we are done. Otherwise, we know the number of vertices in the component not containing in is less than . Denote the two components of by and , where . Since and the component in containing has less than vertices by the choice of , we have . As there is no small-witness vertex in , there are at least small-witness vertices in , thus . Let and , then has two components each of which contains at least vertices. Thus we have found two vertices with the requested properties.
It remains to observe that our kernelization algorithm can be run in polynomial time. For Reduction Rule 1, it takes steps to check if a graph is 3-connected. And for Reduction Rule 2 or 3, it takes steps to decide if they are applicable. And each application of Reductions 2 and 3 either returns NO or decreases the number of vertices, they can be exhaustively applied in polynomial time. As for Reduction Rule 4, note that the kernelization for PCFE can be run in polynomial time, since the kernelization for Path Contraction can be applied in polynomial time. Thus Reduction Rule 4 can also be applied in polynomial time, by simply checking all possible pairs of vertices with degree 2 in the graph to see if we need to apply the kernelization for PCFE. ∎
4 Conclusion
In the past decade, much effort has been put into obtaining better parameter dependence in the running time for all kinds of classical parameterized problems, like Vertex Cover, Feedback Vertex Set, Multiway Cut and so on. There are mainly two directions of algorithmic improvement for a problem that has been proved to be FPT, to obtain a better running time and to obtain a better kernel. In this paper, we provide a kernel for the Cycle Contraction problem with at most vertices, which is a non-trivial improvement over the kernel in [2]. Our improvement relies on observing the connection between Path Contraction and Cycle Contraction, which allows us to utilize an existing result on Path Contraction problem.
In directed graphs, there are two types of contractions, i.e. the set contraction and path contraction, see the definitions in [1]. It would be interesting to see whether the paramterized tractability results of the contraction problems can be generalized to the directed case.
5 Acknowledgement
The research of Bin Sheng was partially supported by China Scholarship Council (No. 201306140052). Yuefang Sun was supported by National Natural Science Foundation of China (No. 11401389), China Scholarship Council (No. 201608330111) and Zhejiang Provincial Natural Science Foundation of China (No. LY17A010017).
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] Jørgen Bang-Jensen and Gregory Z Gutin. Digraphs: theory, algorithms and applications . Springer Science & Business Media, 2 edition, 2009.
- 2[2] Rémy Belmonte, Petr A Golovach, Pim van’t Hof, and Daniël Paulusma. Parameterized complexity of two edge contraction problems with degree constraints. In International Symposium on Parameterized and Exact Computation , pages 16–27. Springer, 2013.
- 3[3] Béla Bollobás. Modern graph theory , volume 184. Springer Science & Business Media, 2013.
- 4[4] Marek Cygan, Fedor V Fomin, Łukasz Kowalik, Daniel Lokshtanov, Dániel Marx, Marcin Pilipczuk, Michał Pilipczuk, and Saket Saurabh. Parameterized Algorithms , volume 4. Springer, 2015.
- 5[5] Rodney G Downey and Michael R Fellows. Fundamentals of parameterized complexity , volume 4. Springer, 2013.
- 6[6] J. Flum and M. Grohe. Parameterized Complexity Theory (Texts in Theoretical Computer Science. An EATCS Series) . Springer-Verlag New York, Inc., Secaucus, NJ, USA, 2006.
- 7[7] Petr A Golovach, Marcin Kamiński, Daniël Paulusma, and Dimitrios M Thilikos. Increasing the minimum degree of a graph by contractions. In International Symposium on Parameterized and Exact Computation , pages 67–79. Springer, 2011.
- 8[8] Petr A Golovach, Pim van’t Hof, and Daniël Paulusma. Obtaining planarity by contracting few edges. Theoretical Computer Science , 476:38–46, 2013.
