English

Average sensitivity of the Knapsack Problem

Data Structures and Algorithms 2024-05-24 v1

Abstract

In resource allocation, we often require that the output allocation of an algorithm is stable against input perturbation because frequent reallocation is costly and untrustworthy. Varma and Yoshida (SODA'21) formalized this requirement for algorithms as the notion of average sensitivity. Here, the average sensitivity of an algorithm on an input instance is, roughly speaking, the average size of the symmetric difference of the output for the instance and that for the instance with one item deleted, where the average is taken over the deleted item. In this work, we consider the average sensitivity of the knapsack problem, a representative example of a resource allocation problem. We first show a (1ϵ)(1-\epsilon)-approximation algorithm for the knapsack problem with average sensitivity O(ϵ1logϵ1)O(\epsilon^{-1}\log \epsilon^{-1}). Then, we complement this result by showing that any (1ϵ)(1-\epsilon)-approximation algorithm has average sensitivity Ω(ϵ1)\Omega(\epsilon^{-1}). As an application of our algorithm, we consider the incremental knapsack problem in the random-order setting, where the goal is to maintain a good solution while items arrive one by one in a random order. Specifically, we show that for any ϵ>0\epsilon > 0, there exists a (1ϵ)(1-\epsilon)-approximation algorithm with amortized recourse O(ϵ1logϵ1)O(\epsilon^{-1}\log \epsilon^{-1}) and amortized update time O(logn+fϵ)O(\log n+f_\epsilon), where nn is the total number of items and fϵ>0f_\epsilon>0 is a value depending on ϵ\epsilon.

Keywords

Cite

@article{arxiv.2405.13343,
  title  = {Average sensitivity of the Knapsack Problem},
  author = {Soh Kumabe and Yuichi Yoshida},
  journal= {arXiv preprint arXiv:2405.13343},
  year   = {2024}
}

Comments

23 pages, ESA 2022

R2 v1 2026-06-28T16:35:12.867Z