Skip to main content
Log in

Path Cover Problems with Length Cost

  • Published:
Algorithmica Aims and scope Submit manuscript

Abstract

For a graph \(G=(V,E)\), a collection \(\mathcal {P}\) of vertex-disjoint (simple) paths is called a path cover of G if every vertex \(v\in V\) is contained in exactly one path of \(\mathcal {P}\). The Path Cover problem (PC for short) is to find a minimum cardinality path cover of G. In this paper, we introduce generalizations of PC, where each path is associated with a weight (cost or profit). Our problem, Minimum (Maximum) Weighted Path Cover [MinPC (MaxPC)], is defined as follows: Let \(U=\{0,1,\dots ,n-1\}\). Given a graph \(G=(V,E)\) and a weight function \(f:U\rightarrow \mathbb {R}\cup \{+\infty , -\infty \}\) that defines a weight for each path based on its length, the objective of MinPC (MaxPC) is to find a path cover \(\mathcal {P}\) of G such that the total weight of the paths in \(\mathcal {P}\) is minimized (maximized). Let L be a subset of U, and \(P^{L}\) be the set of paths such that each path is of length \(\ell \in L\). We consider Min\(P^{L}\) PC with binary cost, i.e., the cost function is \(f(\ell ) = 1\) if \(\ell \in L\); otherwise, \(f(\ell ) = 0\). We also consider Max\(P^{L}\) PC with \(f(\ell ) = \ell +1\), if \(\ell \in L\); otherwise, \(f(\ell ) = 0\). Many well-known graph theoretic problems such as the Hamiltonian Path and the Maximum Matching problems can be modeled using Min\(P^{L}\) PC and Max\(P^{L}\) PC. In this paper, we first show that deciding whether Min\(P^{\{0,1,2\}}\) PC has a 0-weight solution is NP-complete for planar bipartite graphs of maximum degree three, and consequently, (i) for any constant \(\sigma \ge 1\), there is no polynomial-time approximation algorithm with approximation ratio \(\sigma \) for Min\(P^{\{0,1,2\}}\) PC unless P \(=\) NP, and (ii) Max\(P^{\{3,\dots ,n-1\}}\) PC is NP-hard for the same graph class. Next, we present a polynomial-time algorithm for Min\(P^{\{0,1,\dots ,k\}}\) PC on graphs with bounded treewidth for a fixed k. Lastly, we present a 4-approximation algorithm for Max\(P^{\{3,\dots ,n-1\}}\) PC, which becomes a 2.5-approximation algorithm for subcubic graphs.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10
Fig. 11
Fig. 12
Fig. 13
Fig. 14
Fig. 15
Fig. 16
Fig. 17
Fig. 18
Fig. 19
Fig. 20
Fig. 21
Fig. 22
Fig. 23
Fig. 24
Fig. 25
Fig. 26
Fig. 27

Similar content being viewed by others

References

  1. Arnborg, S., Corneil, D.G., Proskurowski, A.: Complexity of finding embeddings in a k-tree. SIAM J. Algebra Discret. Methods 8(2), 277–284 (1987)

    Article  MathSciNet  MATH  Google Scholar 

  2. Betzler, N., Niedermeier, R., Uhlmann, J.: Tree decompositions of graphs: saving memory in dynamic programming. Discret. Optim. 3(3), 220–229 (2006)

    Article  MathSciNet  MATH  Google Scholar 

  3. Chen, Y., Cai, Y., Liu, L., Chen, G., Goebel, R., Lin, G., Su, B., Zhang, A.: Path cover with minimum nontrivial paths and its application in two-machine flow-shop scheduling with a conflict graph. J. Comb. Optim. 43(3), 571–588 (2022)

    Article  MathSciNet  MATH  Google Scholar 

  4. Chen, Y., Goebel, R., Lin, G., Su, B., Xu, Y., Zhang, A.: An improved approximation algorithm for the minimum 3-path partition problem. J. Comb. Optim. 38(1), 150–164 (2019)

    Article  MathSciNet  MATH  Google Scholar 

  5. Chen, Y., Goebel, R., Lin, G., Liu, L., Su, B., Tong, W., Xu, Y., Zhang, A.: A local search 4/3-approximation algorithm for the minimum 3-path partition problem. In: Proceedings of 13th FAW 2019, LNCS 11458, pp. 14–25, (2019)

  6. Chen, Y., Goebel, R., Su, B., Tong, W., Xu, Y., Zhang, A.: A \(\frac{21}{16}\)-approximation for the minimum 3-path partition problem. In: Proceedings of 30th ISAAC 2019, LIPIcs 212, pp. 46:1–46:20, (2019)

  7. Cygan, M., Fomin, F.V., Kowalik, Ł., Lokshtanov, D., Marx, D., Pilipczuk, M., Pilipczuk, M., Saurabh, S.: Parameterized Algorithms, Springer, (2015)

  8. Garey, M.R., Johnson, D.S.: Computers and Intractability: A Guide to the Theory of NP-completeness. W.H. Freeman and Company, NY (1990)

    MATH  Google Scholar 

  9. George, S.: On the \(k\)-path partition of graphs. Theor. Comput. Sci. 290(3), 2147–2155 (2003)

    Article  MathSciNet  MATH  Google Scholar 

  10. Gómez, R., Wakabayashi, Y.: Nontrivial path covers of graphs: existence, minimization and maximization. J. Comb. Optim. 39, 437–456 (2020)

    Article  MathSciNet  MATH  Google Scholar 

  11. Kaneko, A.: A necessary and sufficient condition for the existence of a path factor every component of which is a path of length at least two. J. Comb. Theor. Ser. B 88(2), 195–218 (2003)

    Article  MathSciNet  MATH  Google Scholar 

  12. Kirkpatrick, D.G., Hell, P.: On the complexity of general graph factor problems. SIAM J. Comput. 12(3), 601–609 (1983)

    Article  MathSciNet  MATH  Google Scholar 

  13. Lichtenstein, D.: Planar formulae and their uses. SIAM J. Comput. 11(2), 329–343 (1982)

    Article  MathSciNet  MATH  Google Scholar 

  14. Manuch, J., Gaur, D.R.: Fitting protein chains to cubic lattice is NP-complete. J. Bioinf. Comput. Biol. 6(1), 93–106 (2008)

    Article  Google Scholar 

  15. Monnot, J., Toulouse, S.: The path partition problem and related problems in bipartite graphs. Operat. Res. Lett. 35(5), 677–684 (2007)

    Article  MathSciNet  MATH  Google Scholar 

  16. Noorvash, S.: Covering the vertices of a graph by vertex-disjoint paths. Pac. J. Math. 58(1), 159–168 (1975)

    Article  MathSciNet  MATH  Google Scholar 

  17. Zhou, S., Wu, J., Zhang, T.: The existence of \(P_{\ge 3}\)-factor covered graphs. Discuss. Math. Graph Theor. 37(4), 1055–1065 (2017)

    Article  MathSciNet  MATH  Google Scholar 

Download references

Acknowledgements

The authors would like to thank the anonymous reviewers for their suggestions and detailed comments that helped to improve the presentation of the paper. This work is partially supported by NSERC Canada, JSPS KAKENHI Grant Numbers JP17K00016, JP18H04091, JP19K12098, JP20H05794, JP20K11666, JP21H05857 and JP21K11755, and JST CREST JPMJCR1402.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Eiji Miyano.

Ethics declarations

Conflict of interest

The authors declare that they have no conflict of interest.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

A preliminary version of this paper appeared in Proceedings of the 16th International Conference and Workshops (WALCOM2022), LNCS 13174, pp.396–408, 2022.

Rights and permissions

Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Kobayashi, K., Lin, G., Miyano, E. et al. Path Cover Problems with Length Cost. Algorithmica 85, 3348–3375 (2023). https://doi.org/10.1007/s00453-023-01106-2

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00453-023-01106-2

Keywords

Navigation