arrow
Return

Pseudo-polynomial algorithms for solving the Knapsack Problem with between items

delete2023-10-01
delete0
PRE
AI
M
Mohammed Lalou *
H
Hamamache Kheddouci
DOI:10.1016/j.cor.2023.106281delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
We consider a new variant of the Knapsack Problem with dependencies between items. In this variant, the set of items is partitioned into subsets with dependencies among them, and an item can be selected from a subset only if at least one item is selected from each of its dependent subsets. We develop pseudo-polynomial algorithms to solve this new constrained version in the cases where the dependencies (between the subsets of items rather than items) are represented by out-trees, in-trees, and directed acyclic graphs. We consider both cases, when the weight and profit of each item are similar, which is the classical Subset Sum problem, and the case when they take arbitrary non-negative values. The proposed algorithms run in O(nW) times and spaces for out-trees, while for in-trees and acyclic digraphs it runs in O(nW +m(W )) and O(nW + max{m(W ),m(nW)}), 2 2 respectively, where n is the number of items, W is the knapsack capacity, and m is the number of nodes. Experiments on randomly generated knapsack instances with different graphs of dependency are carried out to assess algorithm efficiency, and show the running dependency on different instance parameters.
Keywords:
Constrained knapsack problem
Dynamic programming
Complexity
In-trees
Out-trees
Directed acyclic graphs

Journal

C
Computers and Operations Research
IF:
4.3
Papers:
6.5K
Citations:
1.8W

Organization

U
Universite Claude Bernard Lyon 1
Scholars:
2.4W
Papers: 1.7W
Citations: 156
U
Universite de Bourgogne
Scholars:
5.2K
Papers: 3.3K
Citations: 235