arXiv:2611.12740cs.GTNov 2026

Manuscript Offprint

arXiv:2611.12740

Computing EF1 Allocations under Budget Constraints in Polynomial Time

Tingwei Hu, Lili Mei, Guochuan Zhang

Abstract

We study the fair allocation of indivisible items to agents with budget constraints and additive valuations. Each agent compares its own bundle with the subsets of another bundle that fit its budget. An allocation is envy-free up to one item (EF1) if, for every agent and every nonempty subset under comparison, removing an item of maximum value to that agent eliminates its envy. We require EF1 both between agents and towards the charity, which contains all unallocated items. EF1 allocations exist, but computing them in polynomial time has remained open even for homogeneous valuations [1]. We resolve this problem with a polynomial-time algorithm for EF1 allocations under heterogeneous valuations. We also prove that detecting an EF1 violation is NP-complete. Equivalently, checking whether a given allocation is EF1 is coNP-complete. Finally, we give polynomial-time algorithms for envy-freeness up to any item (EFX) both when each agent's valuation is proportional to item size and when each agent has a fixed number of distinct positive item values. As an application, for homogeneous valuations and any ε>0\varepsilon > 0, we obtain an EF1 allocation with at least a (1/2−ε)(1/2 - \varepsilon) fraction of the maximum social welfare in time polynomial in the input length and 1/ε1/\varepsilon.

1 Introduction

We study the fair allocation of indivisible items among agents with budget constraints. Each item has a size, and each agent has a budget and an additive valuation. A bundle is budget-feasible for an agent if its total size does not exceed the agent's budget. Our goal is to find a fair allocation in which every agent receives a budget-feasible bundle.

A standard fairness criterion is envy-freeness, which requires each agent to value its own bundle at least as much as any other agent's bundle. However, envy-free allocations need not exist when items are indivisible, even with a single item and two agents. This motivates envy-freeness up to one item (EF1) [3, 4], which allows envy to be eliminated by removing a suitable item from the other agent's bundle.

With different budgets, one agent's bundle may be infeasible for another agent. In this setting, we require each agent to be EF1 towards every subset of another agent's bundle that is feasible under its own budget. That is, for each such nonempty subset, the agent values its own bundle at least as much as the subset after removing a suitable item.

Budget constraints may also prevent all items from being allocated. We call the set of unallocated items the charity. In addition to EF1 between agents, we require every agent to be EF1 towards the charity. The existence of allocations satisfying both requirements follows from the stronger feasible EFX result of Barman et al. [5]. The remaining difficulty is computational. For homogeneous valuations, Barman et al. [2] give a polynomial-time EF2 algorithm, where envy can be eliminated by removing at most two items. However, obtaining exact EF1 in polynomial time has remained open, even in this homogeneous setting. Elkind, Igarashi, and Teh [1] also highlight this question.

References (27)