English

Knapsack with Vertex Cover, Set Cover, and Hitting Set

Data Structures and Algorithms 2025-05-02 v4 Computational Complexity

Abstract

Given an undirected graph G=(V,E)\mathcal{G}=(\mathcal{V},\mathcal{E}), with vertex weights (w(u))uV(w(u))_{u\in\mathcal{V}}, vertex values (α(u))uV(\alpha(u))_{u\in\mathcal{V}}, a knapsack size ss, and a target value dd, the \vcknapsack problem is to determine if there exists a subset UV\mathcal{U}\subseteq\mathcal{V} of vertices such that U\mathcal{U} forms a vertex cover, w(U)=uUw(u)sw(\mathcal{U})=\sum_{u\in\mathcal{U}} w(u) \le s, and α(U)=uUα(u)d\alpha(\mathcal{U})=\sum_{u\in\mathcal{U}} \alpha(u) \ge d. In this paper, we closely study the \vcknapsack problem and its variations, such as \vcknapsackbudget, \minimalvcknapsack, and \minimumvcknapsack, for both general graphs and trees. We first prove that the \vcknapsack problem belongs to the complexity class \NPC and then study the complexity of the other variations. We generalize the problem to \setc and \hs versions and design polynomial time HgH_g-factor approximation algorithm for the \setckp problem and d-factor approximation algorithm for \hstp using primal dual method. We further show that \setcks and \hsmb are hard to approximate in polynomial time. Additionally, we develop a fixed parameter tractable algorithm running in time 8O(tw)nmin{s,d}8^{\mathcal{O}({\rm tw})}\cdot n\cdot {\sf min}\{s,d\} where tw,s,d,n{\rm tw},s,d,n are respectively treewidth of the graph, the size of the knapsack, the target value of the knapsack, and the number of items for the \minimalvcknapsack problem.

Keywords

Cite

@article{arxiv.2406.01057,
  title  = {Knapsack with Vertex Cover, Set Cover, and Hitting Set},
  author = {Palash Dey and Ashlesha Hota and Sudeshna Kolay and Sipra Singh},
  journal= {arXiv preprint arXiv:2406.01057},
  year   = {2025}
}
R2 v1 2026-06-28T16:50:40.768Z