Discrete Effort Distribution via Regret-enabled Greedy Algorithm
Abstract
This paper addresses resource allocation problem with a separable objective function under a single linear constraint, formulated as maximizing Σj=1nRj(xj) subject to Σj=1nxj=k and xj∈\0,…,m\. While classical dynamic programming approach solves this problem in O(n2m2) time, we propose a regret-enabled greedy algorithm that achieves O(n n) time when m=O(1). The algorithm significantly outperforms traditional dynamic programming for small m. Our algorithm actually solves the problem for all k~(0≤ k≤ nm) in the mentioned time.
Turn this paper into a full lesson
ArcXiv compiles a staged curriculum from this paper: 8-12 lessons across beginner → advanced, synthesised section guides, visuals, flashcards, a quiz, exercises, and on-demand deep dives per section. Grounded in the abstract, never invented.