Table of Contents
Fetching ...

Knapsack on Graphs with Relaxed Neighborhood Constraints

Palash Dey, Ashlesha Hota, Sudeshna Kolay

TL;DR

The paper studies two relaxed graph-knapsack variants, Relaxed 1-Neighborhood Knapsack and Relaxed All-Neighborhood Knapsack, where all subsets are feasible but profit contributions depend on neighborhood inclusion. It delivers a comprehensive complexity landscape, proving strong NP-hardness and various parameterized hardness results, and advances the algorithmic side with treewidth-based pseudo-FPT dynamic programs, a randomized color-coding algorithm parameterized by the solution size (with a deterministic derandomization), and a pseudo-FPT algorithm parameterized by the demand. In addition, it provides an additive-1 approximation for Sor in the unit-weight/unit-profit case and identifies several tractable or near-tractable settings, including linear-time solutions on certain graph classes. Overall, the work broadens the understanding of knapsack-like problems on graphs under relaxed neighborhood constraints and offers multiple algorithmic avenues for practical instances with exploitable structure.

Abstract

In the knapsack problems with neighborhood constraints that were studied before, the input is a graph $\mathcal{G}$ on a set $\mathcal{V}$ of items, each item $v \in \mathcal{V}$ has a weight $w_v$ and profit $p_v$, the size $s$ of the knapsack, and the demand $d$. The goal is to compute if there exists a feasible solution whose total weight is at most $s$ and total profit is at most $d$. Here, feasible solutions are all subsets $\mathcal{S}$ of the items such that, for every item in $\mathcal{S}$, at least one of its neighbors in $\mathcal{G}$ is also in $\mathcal{S}$ for \hor, and all its neighbors in $\mathcal{G}$ are also in $\mathcal{S}$ for \hand~\cite{borradaile2012knapsack}. We study a relaxation of the above problems. Specifically, we allow all possible subsets of items to be feasible solutions. However, only those items for which we pick at least one or all of its neighbor (out-neighbor for directed graph) contribute to profit whereas every item picked contribute to the weight; we call the corresponding problems \sor and \sand. We show that both \sor and \sand are strongly \NPC even on undirected graphs. Regarding parameterized complexity, we show both \sor and \hor are \WTH parameterized by the size $s$ of the knapsack size. Interestingly, both \sand and \hand are \WOH parameterized by knapsack size, $s$ plus profit demand, $d$ and also parameterized by solution size, $b$. For \sor and \hor, we present a randomized color-coding-based pseudo-\FPT algorithm, parameterized by the solution size $b$, and consequently by the demand $d$. We then consider the treewidth of the input graph as our parameter and design pseudo fixed-parameter tractable (\FPT) algorithm parameterized by treewidth, $\text{tw}$ for all variants. Finally, we present an additive $1$ approximation for \sor when both the weight and profit of every vertex is $1$.

Knapsack on Graphs with Relaxed Neighborhood Constraints

TL;DR

The paper studies two relaxed graph-knapsack variants, Relaxed 1-Neighborhood Knapsack and Relaxed All-Neighborhood Knapsack, where all subsets are feasible but profit contributions depend on neighborhood inclusion. It delivers a comprehensive complexity landscape, proving strong NP-hardness and various parameterized hardness results, and advances the algorithmic side with treewidth-based pseudo-FPT dynamic programs, a randomized color-coding algorithm parameterized by the solution size (with a deterministic derandomization), and a pseudo-FPT algorithm parameterized by the demand. In addition, it provides an additive-1 approximation for Sor in the unit-weight/unit-profit case and identifies several tractable or near-tractable settings, including linear-time solutions on certain graph classes. Overall, the work broadens the understanding of knapsack-like problems on graphs under relaxed neighborhood constraints and offers multiple algorithmic avenues for practical instances with exploitable structure.

Abstract

In the knapsack problems with neighborhood constraints that were studied before, the input is a graph on a set of items, each item has a weight and profit , the size of the knapsack, and the demand . The goal is to compute if there exists a feasible solution whose total weight is at most and total profit is at most . Here, feasible solutions are all subsets of the items such that, for every item in , at least one of its neighbors in is also in for \hor, and all its neighbors in are also in for \hand~\cite{borradaile2012knapsack}. We study a relaxation of the above problems. Specifically, we allow all possible subsets of items to be feasible solutions. However, only those items for which we pick at least one or all of its neighbor (out-neighbor for directed graph) contribute to profit whereas every item picked contribute to the weight; we call the corresponding problems \sor and \sand. We show that both \sor and \sand are strongly \NPC even on undirected graphs. Regarding parameterized complexity, we show both \sor and \hor are \WTH parameterized by the size of the knapsack size. Interestingly, both \sand and \hand are \WOH parameterized by knapsack size, plus profit demand, and also parameterized by solution size, . For \sor and \hor, we present a randomized color-coding-based pseudo-\FPT algorithm, parameterized by the solution size , and consequently by the demand . We then consider the treewidth of the input graph as our parameter and design pseudo fixed-parameter tractable (\FPT) algorithm parameterized by treewidth, for all variants. Finally, we present an additive approximation for \sor when both the weight and profit of every vertex is .

Paper Structure

This paper contains 10 sections, 26 theorems.

Key Result

Proposition 8

In the undirected Relaxed 1-Neighborhood Knapsack problem, given an instance $\mathcal{G}$= ($\mathcal{V}$,$\mathcal{E}$) if a vertex $v \in \mathcal{V}\xspace$ has a self-loop, we can eliminate the self-loop by introducing a dummy vertex $v^\prime$ with zero weight and zero profit, and replacing t

Theorems & Definitions (33)

  • Definition 1: Knapsack
  • Definition 2: 1-Neighborhood Knapsack
  • Definition 3: Relaxed 1-Neighborhood Knapsack
  • Definition 4: All-Neighborhood Knapsack
  • Definition 5: Relaxed All-Neighborhood Knapsack
  • Definition 6: Set Cover
  • Definition 7: Cutting $\ell\xspace$ vertices
  • Proposition 8
  • Proposition 9
  • Proposition 10
  • ...and 23 more