English

Revisiting Path Contraction and Cycle Contraction

Data Structures and Algorithms 2024-03-12 v1

Abstract

The Path Contraction and Cycle Contraction problems take as input an undirected graph GG with nn vertices, mm edges and an integer kk and determine whether one can obtain a path or a cycle, respectively, by performing at most kk edge contractions in GG. We revisit these NP-complete problems and prove the following results. Path Contraction admits an algorithm running in O(2k)\mathcal{O}^*(2^{k}) time. This improves over the current algorithm known for the problem [Algorithmica 2014]. Cycle Contraction admits an algorithm running in O((2+ϵ)k)\mathcal{O}^*((2 + \epsilon_{\ell})^k) time where 0<ϵ0.55090 < \epsilon_{\ell} \leq 0.5509 is inversely proportional to =nk\ell = n - k. Central to these results is an algorithm for a general variant of Path Contraction, namely, Path Contraction With Constrained Ends. We also give an O(2.5191n)\mathcal{O}^*(2.5191^n)-time algorithm to solve the optimization version of Cycle Contraction. Next, we turn our attention to restricted graph classes and show the following results. Path Contraction on planar graphs admits a polynomial-time algorithm. Path Contraction on chordal graphs does not admit an algorithm running in time O(n2ϵ2o(tw))\mathcal{O}(n^{2-\epsilon} \cdot 2^{o(tw)}) for any ϵ>0\epsilon > 0, unless the Orthogonal Vectors Conjecture fails. Here, twtw is the treewidth of the input graph. The second result complements the O(nm)\mathcal{O}(nm)-time, i.e., O(n2tw)\mathcal{O}(n^2 \cdot tw)-time, algorithm known for the problem [Discret. Appl. Math. 2014].

Keywords

Cite

@article{arxiv.2403.06290,
  title  = {Revisiting Path Contraction and Cycle Contraction},
  author = {R. Krithika and V. K. Kutty Malu and Prafullkumar Tale},
  journal= {arXiv preprint arXiv:2403.06290},
  year   = {2024}
}
R2 v1 2026-06-28T15:15:06.540Z