PofoliaDaily literature tracker

International Transactions in Operational Research· 2026Q1

The colored knapsack problem: structural properties and exact algorithms

Fabio Ciccarelli, Alexander Helber, Erik Mühmer

Short summary

A new variant of the knapsack problem, the colored knapsack problem (ColKP), is introduced where selected items cannot have consecutive identical colors. Two exact dynamic programming algorithms are developed, running in O(nC^2) and O(n^2C) time, where n is the number of items and C is the knapsack capacity.

AI-generated from the title and abstract; the full text is not read.

Key points

  • Introduces the colored knapsack problem (ColKP) with a constraint on consecutive item colors.
  • Proves the weak NP-hardness of the ColKP.
  • Develops two exact dynamic programming algorithms with O(nC^2) and O(n^2C) time complexity.
  • Shows that the linear-programming relaxation can be solved in O(n log n) time with at most two fractional items.
  • Computational experiments indicate algorithms perform well on instances derived from colored bin packing.

AI-generated from the title and abstract; the full text is not read.

Abstract

Abstract We study the colored knapsack problem (ColKP), a generalization of the classical knapsack problem in which items are partitioned into color classes and selected items must be orderable with no two consecutive items sharing a color. We prove weak NP‐hardness and develop two exact dynamic programming algorithms, running in and time, where is the knapsack capacity. We strengthen both algorithms with dominance and fathoming rules. We further show that the linear‐programming relaxation of the ColKP natural formulation admits an optimum with at most two fractional items and can be solved in time. Computational experiments on instances derived from the colored bin packing problem and on synthetic ColKP instances show that the algorithms perform particularly well on the former, while a general‐purpose solver is preferable for synthetic instances with large capacities.

The authors' abstract, as published at the source. International Transactions in Operational Research, 2026 · DOI ↗

TakeawaysPremium Ask the paperFree account

Continue with a free account

Ask the paper: 5 free questions a day about this paper; save it, get its citation, new summaries every day for your field. Takeaways are Premium.

Continue free on the web

Sign in with Google or Apple; no card needed. You come back to this paper.

On your phone:

Field: Industrial and Manufacturing Engineering

Industrial and Manufacturing EngineeringEngineering