English

Discrete Effort Distribution via Regret-enabled Greedy Algorithm

Data Structures and Algorithms 2025-09-10 v3

Abstract

This paper addresses resource allocation problem with a separable objective function under a single linear constraint, formulated as maximizing j=1nRj(xj)\sum_{j=1}^{n}R_j(x_j) subject to j=1nxj=k\sum_{j=1}^{n}x_j=k and xj{0,,m}x_j\in\{0,\dots,m\}. While classical dynamic programming approach solves this problem in O(n2m2)O(n^2m^2) time, we propose a regret-enabled greedy algorithm that achieves O(nlogn)O(n\log n) time when m=O(1)m=O(1). The algorithm significantly outperforms traditional dynamic programming for small mm. Our algorithm actually solves the problem for all k (0knm)k~(0\leq k\leq nm) in the mentioned time.

Keywords

Cite

@article{arxiv.2503.11107,
  title  = {Discrete Effort Distribution via Regret-enabled Greedy Algorithm},
  author = {Song Cao and Taikun Zhu and Kai Jin},
  journal= {arXiv preprint arXiv:2503.11107},
  year   = {2025}
}
R2 v1 2026-06-28T22:20:10.579Z