Knapsack: Connectedness, Path, and Shortest-Path

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Dey, Palash, Kolay, Sudeshna, Singh, Sipra
Format: Preprint
Published: 2023
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911763359858688
author Dey, Palash
Kolay, Sudeshna
Singh, Sipra
author_facet Dey, Palash
Kolay, Sudeshna
Singh, Sipra
contents We study the knapsack problem with graph theoretic constraints. That is, we assume that there exists a graph structure on the set of items of knapsack and the solution also needs to satisfy certain graph theoretic properties on top of knapsack constraints. In particular, we need to compute in the connected knapsack problem a connected subset of items which has maximum value subject to the size of knapsack constraint. We show that this problem is strongly NP-complete even for graphs of maximum degree four and NP-complete even for star graphs. On the other hand, we develop an algorithm running in time $O\left(2^{tw\log tw}\cdot\text{poly}(\min\{s^2,d^2\})\right)$ where $tw,s,d$ are respectively treewidth of the graph, size, and target value of the knapsack. We further exhibit a $(1-ε)$ factor approximation algorithm running in time $O\left(2^{tw\log tw}\cdot\text{poly}(n,1/ε)\right)$ for every $ε>0$. We show similar results for several other graph theoretic properties, namely path and shortest-path under the problem names path-knapsack and shortestpath-knapsack. Our results seems to indicate that connected-knapsack is computationally hardest followed by path-knapsack and shortestpath-knapsack.
format Preprint
id arxiv_https___arxiv_org_abs_2307_12547
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle Knapsack: Connectedness, Path, and Shortest-Path
Dey, Palash
Kolay, Sudeshna
Singh, Sipra
Data Structures and Algorithms
Artificial Intelligence
We study the knapsack problem with graph theoretic constraints. That is, we assume that there exists a graph structure on the set of items of knapsack and the solution also needs to satisfy certain graph theoretic properties on top of knapsack constraints. In particular, we need to compute in the connected knapsack problem a connected subset of items which has maximum value subject to the size of knapsack constraint. We show that this problem is strongly NP-complete even for graphs of maximum degree four and NP-complete even for star graphs. On the other hand, we develop an algorithm running in time $O\left(2^{tw\log tw}\cdot\text{poly}(\min\{s^2,d^2\})\right)$ where $tw,s,d$ are respectively treewidth of the graph, size, and target value of the knapsack. We further exhibit a $(1-ε)$ factor approximation algorithm running in time $O\left(2^{tw\log tw}\cdot\text{poly}(n,1/ε)\right)$ for every $ε>0$. We show similar results for several other graph theoretic properties, namely path and shortest-path under the problem names path-knapsack and shortestpath-knapsack. Our results seems to indicate that connected-knapsack is computationally hardest followed by path-knapsack and shortestpath-knapsack.
title Knapsack: Connectedness, Path, and Shortest-Path
topic Data Structures and Algorithms
Artificial Intelligence
url https://arxiv.org/abs/2307.12547