Answers are grounded in this paper and cite their sources.
Analysis reveals strong NP-completeness and insights into parameterized complexity for knapsack variants.
In the knapsack problems with neighborhood constraints that were studied before, the input is a graph G on a set V of items, each item v ∈ V has a weight wᵥ and profit pᵥ, 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 S of the items such that, for every item in S, at least one of its neighbors in G is also in S for , and all its neighbors in G are also in S for ~{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 and . We show that both and are strongly even on undirected graphs. Regarding parameterized complexity, we show both and are parameterized by the size s of the knapsack size. Interestingly, both and are parameterized by knapsack size, s plus profit demand, d and also parameterized by solution size, b. For and , we present a randomized color-coding-based pseudo- 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 () algorithm parameterized by treewidth, tw for all variants. Finally, we present an additive $1$ approximation for when both the weight and profit of every vertex is $1$.
No takes yet. Share an insight, caveat, or question.
Dey et al. (2025) studied this question.
Synapse has enriched 8 closely related papers on similar clinical questions. Consider them for comparative context: