Manuscript Offprint
arXiv:2610.09843Minimizing Cumulative Envy in Allocating a Sequence of Items
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Paul W. Goldberg, Isaac Robinson, and Nicholas Teh
University of Oxford, UK
{paul.goldberg,isaac.robinson,nicholas.teh}@cs.ox.ac.uk
Abstract. We study temporal fair division with indivisible goods that arrive sequentially and must be allocated irrevocably. In contrast to the usual online model, we assume that valuations and future arrivals are known in advance, and ask how unfairness evolves during the process. We introduce cumulative maximum envy: the sum, over all rounds, of the maximum pairwise envy at that round. Equivalently, this is the area under the worst-envy curve, and it captures both the magnitude and the duration of envy. For a fixed arrival order, we show that the corresponding decision problem is strongly NP-complete and that minimizing this objective admits no constant-factor approximation unless P = NP, even under identical valuations and even under binary valuations. We complement these hardness results with a dynamic program that gives pseudopolynomial-time solvability for a constant number of agents, polynomial-time algorithms in further restricted settings, and an FPTAS for fixed n under identical integer valuations. We then study a sequencing variant where the algorithm may choose the arrival order. This variant remains NP-complete even for two agents with identical valuations; however, a simple greedy algorithm achieves a 3/2-approximation for n = 2 agents, an -approximation for any number of agents, and an additive guarantee depending on the maximum value of any good.
1 Introduction
Fair division of indivisible goods is a fundamental, well-studied problem at the intersection of computer science and economics [12, 54], with applications ranging from divorce settlements to distributed load balancing. A central fairness notion in this context is envy-freeness, which requires that every agent values their allocated bundle at least as much as any other agent's bundle. However, this strong requirement is not always achievable; consider, for example, the case of two agents and a single good that both value positively, which must be allocated to one of them. As a result, recent years have seen considerable interest in relaxations of envy-freeness. Arguably, the two most prominent relaxations are envy-freeness up to one good (EF1) [14, 52] and envy-freeness up to any good (EFX) [15, 37]. An allocation is EF1 if, for any pair of agents, any envy
A preliminary version of this paper was presented at the 19th International Symposium on Algorithmic Game Theory (SAGT), 2026.
Paul W. Goldberg, Isaac Robinson, and Nicholas Teh
can be eliminated by removing one good from the envied agent's bundle, where goods are compared using the envious agent's valuation; in particular, removing a most-valued good is sufficient. It is EFX if the envy is eliminated even after removing a least-valued good.
The concept of EF1 originates from the seminal work of Lipton et al. [52], which introduced the first algorithmic approach for computing approximately envy-free allocations of indivisible goods. Their envy-cycle elimination algorithm remains a foundational tool and has since been used as a building block in tackling some of the most challenging problems in fair division, including the recent breakthrough on the existence of EFX allocations for three agents [17]. Interestingly, EF1 emerged from an effort to bound envy: if each agent's maximum envy can be bounded by the largest value of a single good, then a polynomial-time algorithm can achieve this relaxed form of envy-freeness. This same line of reasoning also motivates the optimization problem of minimizing envy, which was considered by Lipton et al. [52] (see also [59]). The optimization perspective has received comparatively less attention than discrete relaxations such as EF1 and EFX.
While most prior works study the fair division problem in the offline setting (i.e., all goods are immediately available and are allocated to agents in a single-shot), many real-world systems do not allocate all resources at once. Instead, indivisible goods become available over time and must be assigned as they appear: affordable housing units are completed in phases, public extraction permits are issued across multiple periods, and platforms assign arriving tasks or opportunities to workers. In such settings, stakeholders care not only about the final allocation, but also about the trajectory: large early imbalances can create lasting disadvantages, distort downstream behavior, or erode trust.
Several recent works have considered an online model where goods arrive one at a time, and must immediately and irrevocably be allocated to agents. This captures numerous application scenarios where goods need to be allocated in a sequential manner, such as assigning donations to food banks [1], allocating resources in cloud computing environments [9], or allocating impressions in recommendation systems [55]. In the standard online fair division model, it is usually assumed that each good's valuation is not known until its arrival. Most work on online fair division evaluates fairness only at the end of the process, once all goods have arrived and been allocated. In practice, agents experience the allocation process as it unfolds, and limiting unfairness throughout the process can be important for maintaining balance, participation, and trust, especially in long-term allocation systems.
This motivation is central to recently-studied temporal fair division model [25, 29], where the goal is to guarantee fairness not merely at the end, but at every prefix during the allocation process given information about future arrivals and valuations for each good-agent pair. This perspective provides a different lens on sequential fair division. In the standard and commonly-studied online model, agents have limited to no information about future arrivals, and fairness is evaluated only at the end (after all goods have arrived). In contrast to these standard online models with unknown future arrivals, the temporal fair division model assumes complete information about valuations and future arrivals while striving for typically stronger, cumulative fairness guarantees [25, 29]. Consider the allocation of pre-built affordable housing units that become available over time: while the housing authority knows when each unit will be ready, ensuring equitable distribution throughout the multi-year process—not just at the end—is essential for maintaining public trust and preventing systematic disadvantage to any group. Similarly, when allocating extraction rights for public natural resources across multiple time periods to private companies, temporal fairness ensures that no firm gains disproportionate early advantages that could distort market competition.
To quantify experienced unfairness over time, we take an optimization view rooted in classic envy minimization [52]. For an allocation process, let denote agent 's bundle after the first goods, and define . Let be the maximum envy after the first goods have been allocated. The sequence is the worst-envy curve of the process. Our objective is , the area under this curve. This objective is a simple, parameter-free baseline: it uses the standard maximum-envy measure at each round and aggregates it over time, so it penalizes both large envy and envy that persists for many rounds. We do not claim that this is the only meaningful temporal objective. Rather, it is a natural optimization counterpart to prefix-based temporal fairness notions, and it remains meaningful even when maintaining a strong fairness guarantee at every prefix is impossible.
For each agent , let and . Since , we have . Thus, our objective upper-bounds the cumulative envy experienced by every agent and is within a factor of the largest individual cumulative envy. In either of our two models, an optimal solution for our objective is therefore an -approximation for directly minimizing over the same feasible allocation processes. However, our objective need not distribute envy evenly across agents. Directly minimizing , , or weighted versions of these quantities is a natural direction for future work. It would also be useful to study objectives that directly minimize the largest or total individual cumulative envy.
We investigate cumulative maximum envy minimization in two related settings. First, we study the standard temporal model where the arrival order is fixed and may be adversarially chosen as part of the input. Second, we study a sequencing variant in which the algorithm may choose the order of the goods before allocating them. This models settings where all goods are known and can be held briefly before release; for example, a food bank may have several donated
Note that without this “cumulative fairness” consideration, the problem reduces to the standard offline model.
In online fair division, the term cumulative envy is sometimes used for the maximum envy after the first t goods have been allocated (see, e.g., [11]), which is in our notation. Our objective instead adds up the maximum envy over all rounds.
Paul W. Goldberg, Isaac Robinson, and Nicholas Teh
pallets in storage and choose which pallet to allocate next, or a public agency may choose the order in which approved permits are issued.
Motivated by these hardness results, in Section 4 we give a dynamic programming algorithm that computes an optimal allocation sequence in time , where is the number of agents, is the number of goods, and is the maximum value of any good to any agent. This gives pseudopolynomial-time solvability when is constant, and polynomial-time solvability under binary valuations for constant . If the number of goods is constant, an optimal solution can also be found by direct enumeration. We further show that binary identical valuations admit a simple polynomial-time optimal algorithm, and that identical integer valuations admit an FPTAS for every fixed . This contrasts with the offline setting, where the minimum maximum envy cannot be approximated within any factor unless , even for two agents with identical valuations [52]; the difference is that, under identical valuations, our objective is always at least a fraction of the total value of the goods.
In Section 5, we explore a natural variant of the model in which the algorithm is allowed to choose the arrival order of goods (while an adversary pre-selects the agents' valuations over the goods). We show that this variant remains NP-complete even for just two agents and identical valuations. On the positive side, when agents have identical valuations, we design a polynomial-time algorithm that achieves: (i) a 3/2-approximation for agents, (ii) a -approximation for general , and (iii) a -additive approximation to the optimal cost.
1.2 Related Work
We highlight the works most relevant to our focus on envy minimization in the temporal setting.
Offline Fair Division. In the offline fair division model, all goods are available simultaneously and allocated at once. Lipton et al. [52] investigate envy minimization in this setting, aiming to bound the maximum envy between any pair of agents. They introduce the well-known envy cycle elimination algorithm, which runs in polynomial time and guarantees an allocation where the maximum envy is at most the highest value of any good. This result also gives rise to the well-known EF1 concept. They also study the problem of computing an allocation with minimum maximum envy. Since deciding whether this minimum is zero is NP-hard even for two agents with identical valuations, no approximation within any factor is possible unless P = NP. They therefore also consider the envy-ratio; under identical valuations, they relate it to scheduling on identical machines and give a PTAS, as well as an FPTAS when the number of agents is constant. Nguyen and Rothe [59] show that minimizing the envy-ratio is APX-hard in general, and give an FPTAS for a constant number of agents with additive valuations.
Online Fair Division. In the online fair division model, goods arrive sequentially in a fixed order, and the algorithm has no knowledge of future items. Due to this uncertainty, most works on this model focus on ensuring fairness guarantees at the final round, once all goods have arrived and been allocated. Several works look at minimizing the maximum envy in this setting. Benadè et al. [10] (see also [11]) study a fully adversarial setting in which item values are chosen adaptively: an adversary observes the algorithm and all decisions made thus far, and selects the value of each incoming good to maximize envy at the end. They prove that, even with just two agents, any online algorithm must incur a maximum envy of for every constant , where is the number of goods, and that allocating each good to a uniformly random agent nearly matches this bound.
Recognizing that adaptive adversaries may be unrealistically powerful, Halpern et al. [42] consider an oblivious adversary model, where item values are fixed in advance and chosen to be worst-case with respect to the algorithm, but do not depend on the actual allocation decisions made in previous rounds. In this setting, they show connections to the online multicolor discrepancy problem and, in the special case of two agents, to online vector balancing [64]. Other works give the algorithm partial information about future goods [56], let it see a few goods ahead [4], or let it hold and reorder a bounded number of goods before allocating them [3]; the last two also give guarantees that hold after every allocated good. For approximate proportionality, Choo et al. [21] show that several natural greedy rules cannot guarantee any positive approximation to proportionality up to one good (PROP1) against an adaptive adversary, and Neoh and Teh [58] show that this holds for every online algorithm, and also for proportionality up to k goods with any fixed k; positive guarantees are possible against an oblivious adversary [21, 24] or when each agent's largest value for a good is known in advance [21, 58]. Online fair division under budget constraints has also been studied [23].
In contrast, our work assumes full information about the values of all goods from the outset, and focuses on cumulative envy minimization, aligning more with the temporal fair division model than with adversarial online models.
Temporal Fair Division. In the temporal fair division model (sometimes also referred to as the fully informed online fair division model), the sequence of goods is known in advance, allowing the algorithm to make allocation decisions with full knowledge of future arrivals. This setting enables us to introduce the study of fairness guarantees that are cumulative over time, rather than only at the final round. Cookson et al. [25] introduce temporal fair division and give ex-
Paul W. Goldberg, Isaac Robinson, and Nicholas Teh
istence/algorithmic guarantees for achieving EF1-type fairness simultaneously at multiple points in time, with stronger positive results in special cases (e.g., two agents or structured preferences). Elkind et al. [29] formalize temporal EF1 (TEF1) for sequential item arrivals, show that deciding whether a TEF1 allocation exists is NP-hard, and provide polynomial-time algorithms in several structured cases. He et al. [43] maintain EF1 at every round by allowing limited reallocations (or what they call adjustments), and quantify how many such changes are necessary (including separations between informed vs. uninformed settings); in particular, with full information about future goods, no adjustments are needed for two agents, whereas for three or more agents EF1 cannot always be maintained at every round without adjustments, so TEF1 allocations need not exist. Choi and Li [19] study temporal versions of EFX and maximin share fairness, and Choi and Li [18] further allow each good to be delayed by a bounded number of rounds before it is allocated. Choi et al. [20] identify settings with goods and chores in which TEF1 allocations exist and can be computed efficiently. In contrast to this constraint-based line of work (maintaining temporal EF1 at every prefix), we take an optimization view and minimize the cumulative “area under the envy curve”, which remains meaningful even when strong prefix-fairness constraints are infeasible. Fairness over time has also been studied in repeated allocation, where the same set of items is allocated in every round [46, 16]. Micheel and Wilczynski [53] study a related repeated house allocation model in which every round is a complete matching, so each agent receives one object. They focus on envy-based fairness across the repeated assignments, together with Pareto efficiency in each round. Their model differs from ours in two main ways: they make a complete assignment in every round, whereas we allocate one indivisible good irrevocably at each step; and they study fairness conditions across repeated assignments, whereas we minimize cumulative maximum envy. Lim et al. [51] study repeated matchings that maximize the minimum cumulative utility of an agent, either at the end or at every round. Fairness over time has also been studied in other collective decision problems, such as temporal slot assignment [28] and perpetual or temporal voting [50, 30].
2 Preliminaries
For each positive integer , we denote . An instance of the fair division problem is a tuple , where is the set of (fixed) agents, is a set of goods, and for each , the function is the valuation function of agent . We write instead of when all agents have identical valuation functions. In the temporal fair division problem, goods arrive sequentially according to some order , and we must allocate each good (to an agent) as it arrives. Let denote the space of all such arrival orders. In this work, we consider both the setting where is chosen by an adversary (i.e., the standard temporal fair division setting) and the setting where can be chosen by the algorithm.
As with most works in the fair division literature, we assume that valuation functions are additive, i.e., for any subset of goods , . For convenience, we write instead of for a single good . Every subset of goods in can also be referred to as a bundle. An allocation is a partition of the goods into bundles, with agent receiving bundle . For each and , let denote the partial allocation of agent after the -th arriving good is allocated to an agent and let be the initial empty allocation, and . Equivalently, we can represent an allocation by an allocation sequence , where for each , the -th entry specifies the agent that the -th arriving good is allocated to. Let the space of all such sequences be .
Next, we define envy and the envy minimization objective. Let be the allocation sequence corresponding to , given some order . Then, for any , the envy of agent toward agent is ; in particular, . The per-round cost is , and the cumulative maximum envy is , which we seek to minimize.
Maximum envy is a standard quantitative objective in both offline envy minimization [52] and online envy minimization [11, 42]. In most online models, fairness is evaluated only after the last item has been allocated. In the fully informed temporal model, however, future arrivals and valuations are known, so it is natural to ask for fairness over the trajectory of the allocation, not just at the end. One stronger requirement would be to optimize every prefix simultaneously (as in the anytime optimality notion of Lim et al. [51] for repeated matching), or to impose a fairness constraint at every prefix as in temporal EF1 [29]. We instead optimize the total area under the worst-envy curve. This permits short-term imbalances when they are compensated later, but penalizes imbalances that are large or long-lasting. This matches settings where temporary disparities are acceptable but prolonged severe unfairness is not.
Finally, optimizing only the final maximum envy can be badly misaligned with minimizing cumulative exposure to envy. Example 1 gives a linear separation even under identical valuations; conversely, cumulative maximum envy always controls final envy because is one of the terms in .
Example 1. Consider an instance with and identical valuation function . Fix any integer , let and . Then is odd and . Let be a fixed arrival order where for every and . For , we have for every .
– An allocation minimizing the final round cost. Allocate to agent 1 and to agent 2. Then and , so (and no allocation can have since ). Moreover, for each we have and , so . Thus, , which grows linearly in .
Paul W. Goldberg, Isaac Robinson, and Nicholas Teh
– An allocation with much smaller cumulative cost. Alternately allocate the first goods between the agents. Then for every , we maintain , so ; more precisely, on odd and on even . Since is even, . Allocating gives , so for all .
3 Intractability Results
We first present several results highlighting the computational intractability of envy minimization as an objective in the temporal fair division setting.
We begin by formalizing the decision problem.
TEMPORAL-ENVYMIN
Given an instance , an order over the goods in , and an integer , can we find an allocation sequence such that ?
Then, we show that the problem is computationally intractable even in the restricted setting where agents have identical valuation functions—that is, for any pair of agents and good , we have . Moreover, we go one step further by showing that a constant-factor approximation algorithm is unlikely to exist.
Theorem 1. TEMPORAL-ENVYMIN is strongly NP-complete even when agents have identical valuations. Moreover, in this setting, there exists no constant-factor approximation algorithm, unless .
Proof. We reduce from the 3-PARTITION problem, which is known to be strongly NP-complete [34]. An instance of 3-PARTITION is given by a multiset of positive integers (with ); it is a yes-instance if there exists a partition of into subsets (each containing three integers) such that for all , and a no-instance otherwise. Note that for each integer , we can without loss of generality assume that (otherwise it is trivially a no-instance).
Construct an instance of our problem, where and we have goods arriving in the order , with valuations defined as follows:
We first show that TEMPORAL-ENVYMIN is NP-complete (it is easy to see that the problem is in NP, we thus focus on proving NP-hardness). We do so by proving that there exists a solution to 3-PARTITION if and only if there exists an allocation (and hence corresponding allocation sequence ) such that for the above constructed instance.
( ) Suppose there exists a solution to 3-PARTITION. Consider the sequence :
Observe that for all , every agent holds at most three positively-valued goods, whose total value is at most . Thus, and , so we have that . Moreover, since each agent in has bundle value , we get that . Then,
( ) Suppose there does not exist a solution to 3-PARTITION. This means that there does not exist a partition of integers in into subsets of equal sum . Equivalently, there is no way to partition the goods into bundles each of total value .
Let be the agent that receives good , i.e., . We split our analysis into two cases.
Case 1: No good in allocated to agent . Let be allocated to agent . Then, and . Now, since no goods in was allocated to agent , for all , we have that , giving us . At round , agent receives a good valued at and thus has value exactly (since she received nothing earlier). If , then every agent must have value exactly at round (since the total value of the first goods is , equality across agents forces each to have value ). The agent holding the first good valued at (i.e., ) cannot hold any other positively-valued good (each such good has value > ), else it would exceed . Therefore, the remaining agents must partition the goods of values into bundles each of value . Since each such good has value strictly between and , each bundle must contain exactly 3 goods, and the parts in each bundle must sum to , which is a 3-PARTITION solution, giving us a contradiction. Thus, , and together with , we get .
Case 2: Some good in allocated to agent . Let be allocated to agent (note that it could be ). Since is also allocated good
Paul W. Goldberg, Isaac Robinson, and Nicholas Teh
, we have that . If , then 3k goods are distributed among agents, so some agent gets at most two goods from . If , then must have taken at least one of the 3k goods (since went to ), leaving at most 3k - 1 such goods for the remaining k agents in ; and by pigeonhole one of them gets at most two goods from . Now, for each , we know that (by our assumption that for each ). Then, . This means that . There are zero-valued goods after round , i.e., rounds . Since these goods do not change any bundle values, for all such . Thus,
which implies .
Next, we argue that in (the same) setting where agents have identical valuations, there exists no constant-factor approximation algorithm, unless P = NP.
Since 3-PARTITION is strongly NP-complete, meaning even when , the problem remains NP-complete. Thus, we can assume .
Then, note that in the reduction above, we showed that given an instance I and order , determining whether we can find an allocation sequence S such that is NP-complete. Equivalently,
– any yes-instance admits a sequence with , and in particular ;
– any no-instance will force any sequence to have .
Let and fix any constant . To amplify the gap, append zero-valued goods after . In a yes-instance, the allocation above still has cost at most , because the envy is already zero from round onward. In a no-instance, every allocation has positive envy after round ; since all appended goods have value zero, this envy persists through the appended rounds. Thus, every allocation has cost strictly larger than . Therefore, given a 3-PARTITION instance, run the assumed -approximation on the corresponding TEMPORAL-ENVYMIN instance and compare its returned cost with . If the original 3-PARTITION instance is a yes-instance, the returned cost is at most . If it is a no-instance, every feasible allocation has cost greater than . The assumed approximation algorithm would therefore decide 3-PARTITION in polynomial time, which is impossible unless .
Notably, the above hardness result continues to hold even when the maximum value of any good is bounded by a polynomial in n, owing to the strong NP-completeness property of the 3-PARTITION problem used in the reduction.
In the offline setting, the minimum maximum envy cannot be approximated within any factor simply because it may be zero [52]. This argument does not apply directly to our objective under identical valuations, since the first good with positive value always creates envy, so even yes-instances have positive optimal cost. Our reductions instead end with zero-valued goods, so that any envy remaining after the last positively valued good is counted in each of the remaining rounds.
We now turn to a different restricted setting in which agents have binary valuation functions—that is, for each agent and good , . In this case, we establish a second intractability result by reducing from a known NP-hard problem in the standard (offline) fair division literature: deciding whether there exists a complete envy-free allocation under binary valuations, a problem we refer to as BINARY-EF. This hardness was first shown implicitly by Aziz et al. [5] and later made explicit by Hosseini et al. [44]. As in the previous case, we show that a constant-factor approximation algorithm is unlikely to exist.
Theorem 2. TEMPORAL-ENVYMIN is NP-complete even when agents have binary valuations. Moreover, in this setting, there exists no constant-factor approximation algorithm, unless P = NP.
4 Tractability in Restricted Settings
Given the computational hardness of finding an envy-minimizing allocation sequence, even under two distinct restricted settings (identical valuations or binary valuations), a natural follow-up question is whether there exists any restricted setting for which an optimal solution can be computed efficiently.
We begin with a simple warm-up result. The most favorable remaining setting is when valuations are both binary and identical. While this does not exactly reduce the problem to one with identically-valued goods, it is closely related. In this case, a straightforward greedy algorithm (which allocates each arriving good to an agent with the currently lowest total bundle value) produces an allocation with minimum cost. This greedy rule is a special case of the algorithm that Elkind et al. [29] use to obtain TEF1 allocations under generalized binary valuations; we show that, under binary and identical valuations, it also minimizes the maximum envy at every round.
Proposition 1. Under binary and identical valuations, an optimal sequence can be computed in polynomial time.
Next, for the main result of this section, we present a dynamic programming algorithm that runs in time , where is the maximum value of any good in any agent's view (and we can assume valuations are encoded in unary and scaled to integers). For , let be the valuation matrix after the
This setting has also been studied in other fair division contexts; see, e.g., Elkind et al. [27].
Paul W. Goldberg, Isaac Robinson, and Nicholas Teh
first goods have arrived: is the value agent has for agent 's bundle thus far, and is the all-zero matrix.
The algorithm is presented as follows (Algorithm 1).
Algorithm 1 Dynamic programming algorithm that returns an optimal sequence
Input: Instance and order .
Output: Allocation sequence .
1: Let be the all-zero matrix
2: Create hash maps DP[0], ..., DP[m] mapping keys to predecessor pointers
3: Initialize DP[0][(0, )] ←
4: for do
5: for all states in DP[t] do
6: for do
7: (deep copy)
8: for do
9:
10: end for
11:
12: if then
13: DP[t+1][(c', )] ← ((c, M), s)
14: end if
15: end for
16: end for
17: end for
18: Let
19: Initialize and
20: for do
21: ((c_{\mathrm{prev}}, M_{\mathrm{prev}}), s_t) \leftarrow \mathrm{DP}[t][(c, M)]
22:
23:
24: end for
25: return
Intuitively, the algorithm explores every possible way to assign the first t goods while precisely tracking the valuation matrix M and cost (i.e., envy) incurred c. At each step, it branches on which agent receives the next good, updates the corresponding column of M, accrues the cost incurred, and records a predecessor pointer. At the end (layer m), it scans through all reachable pairs and returns the one minimizing cost, reconstructing a witnessing allocation by following the pointers backward. Our result is as follows.
Theorem 3. Algorithm 1 returns an optimal sequence in time .
Proof. We first prove correctness. Observe that the is the set of pairs attainable after all goods have arrived. Then, selecting with minimum (Line 18) corresponds to one with minimum cost (or cumulative envy). From there, our algorithm is able to reconstruct a corresponding allocation sequence (Lines 20–24).
Thus, it suffices for us to prove the following invariant. Let .
Invariant. For every and pair , exists if and only if there is an allocation sequence for the first goods (prefix ) such that the resulting valuation matrix is and . Moreover, the predecessor pointer encodes one such sequence.
We prove the invariant by induction on .
For the base case, at , only contains , where is the all-zero matrix; and the cost is 0. Thus the invariant holds trivially.
Next, we prove the inductive step. Assume the invariant holds for some . Since for each round , , we have .
Consider any state . By the induction hypothesis, there exists an allocation sequence of the first goods with valuation matrix and cost . When good arrives, Algorithm 1 considers every agent and for each , constructs by increasing column by . Hence every feasible extension is represented in .
Conversely, suppose is inserted into DP from predecessor using agent . By the induction hypothesis, arises from some allocation sequence with matrix and cost ; extending by gives us matrix and updating the cost to so corresponds to a feasible allocation of goods. Note that after updating column , is exactly the valuation matrix after items under the extended sequence. Therefore, the maximum envy at round is
so the cumulative cost is consistent with Line 11 of the algorithm. Thus the invariant holds for .
By induction, the invariant holds for all , and optimality follows.
Next, we prove the running time. The state space is indexed by with , , and . Thus, the number of states is
From each state, there are agents the algorithm can consider allocating the incoming good to, updates one column of and computes the new cost. Both operations (i.e., per transition) take time. Since there are transitions per state, it takes per state. Thus, the total running time is . Reconstruction follows pointers and is , which does not change the bound.
Paul W. Goldberg, Isaac Robinson, and Nicholas Teh
This result has two important implications. First, for fixed n, the running time is polynomial in m and ; thus the algorithm is pseudopolynomial. In particular, if item values are polynomially bounded integers (or given in unary), the algorithm runs in polynomial time.
Corollary 1. TEMPORAL-ENVYMIN is XP [33, 60] with respect to . Equivalently, it is solvable in pseudopolynomial time when n is bounded by a constant.
Second, in the case of binary valuations, the size of the state space in the dynamic program becomes more structured. Then, the number of agents is constant, the problem is polynomial-time solvable (i.e. slicewise polynomial in n).
Corollary 2. Under binary valuations, TEMPORAL-ENVYMIN is XP with respect to n.
These results show that, despite the general computational hardness of the problem, efficient algorithms are achievable under natural and practically motivated restrictions.
That being said, an intriguing open question remains: is the problem polynomial-time solvable when the number of agents is constant and agents have identical valuation functions? We conjecture that the answer is ‘no’.
As a partial positive result, we provide an FPTAS for identical valuations (with integer item values) when n is fixed.
Theorem 4. For any fixed , under identical valuations with integer-valued items, and for every , there exists a -approximation algorithm whose running time is polynomial in and .
Our FPTAS follows the standard approach of rounding the values and solving the rounded instance by dynamic programming [45, 62]; Lipton et al. [52] use the same approach for the envy-ratio with a constant number of agents. The step specific to our objective is a lower bound of on the cost of every allocation sequence, which bounds the rounding error added up over all m rounds.
5 Choosing the Arrival Sequence
The results presented in Section 3 show that computing a cost-minimizing allocation sequence is generally intractable, even under restricted settings such as identical or binary valuations. While Section 4 presents some positive algorithmic results under stronger assumptions, the overall hardness results align with existing impossibility results in the literature on online and temporal fair division: fairness objectives remain elusive in the presence of fixed input sequences. In fact, we illustrate with an example how an adversary deciding the arrival order can make a significant difference when it comes to minimizing cumulative envy.
Binary valuations are very well-studied in online fair division [1,2,67] and in the broader fair division literature [13,44,41,57,65].
Example 2. Consider an instance with and identical valuation function . Fix any integer , let , and set . Thus, is odd and . There is one good of value 100 and goods of value .
– If the arrival order is with and for all , then after round 1, for every allocation sequence . Furthermore, each subsequent -good can reduce the gap by at most , so for , . Allocating every -good to the currently lagging agent achieves equality at every round, and therefore , which is .
– In contrast, if the -goods arrive first (e.g., ), then allocating the first goods alternately keeps for all , and the last step contributes . Consequently, , which is in .
Thus, when one item dominates in value, placing it early can force cumulative cost that is a factor larger than an order that places it last.
Motivated by this example, we study a variant in which the algorithm chooses the order of the goods, while the agents' valuations are fixed in advance. This models settings where the full set of goods is known and goods can be held briefly before release. For example, a food bank may have several donated pallets in storage and choose which pallet to allocate next, or a public agency may choose the order in which approved permits are issued. We ask whether control over the order can reduce cumulative envy. Related forms of flexibility have recently been studied for existence questions: Choi and Li [18] allow each good to be delayed by a bounded number of rounds in order to obtain TEF1 allocations, and Amanatidis et al. [3] let an online algorithm hold and reorder a bounded number of goods. In our variant, the algorithm may choose any order, but each good is still allocated in its own round and the envy at every round counts; hence, choosing the order does not reduce our problem to the offline one.
Importantly, this setting is not inherently “stronger” or “weaker” than the standard one; it is simply of a different structure. Although the ability to control the arrival order offers additional flexibility, the benchmark for optimization also shifts: the optimal solution under this new setting may differ from that in the fixed-order setting. As a result, the optimization problem (e.g., obtaining approximation results) does not necessarily become easier—the performance is still measured relative to a stronger baseline, and the underlying computational challenges remain significant.
Observe that the cost objective is cumulative, so even when the final allocation can be envy-free, early rounds may still incur substantial envy. In the special case of identical valuations, Lemma 1 (stated below) implies the universal lower
Many related online problems assume a random arrival order as a way to circumvent impossibility results that arise under adversarial input models [6, 26, 31, 32, 36, 40, 48, 49].
Paul W. Goldberg, Isaac Robinson, and Nicholas Teh
bound . One might hope that by choosing the arrival order, the algorithm could always achieve this bound. Our next result shows that even deciding whether this lower bound is attainable is NP-complete.
TEMPORAL-ENVYMIN-SEQ
Given an instance and an integer , can we find a permutation over the goods in and an allocation sequence such that ?
Theorem 5. TEMPORAL-ENVYMIN-SEQ is NP-complete even for two agents with identical valuations.
Theorem 5 shows that allowing the algorithm to choose the arrival order does not eliminate computational intractability: the problem remains NP-hard even under identical valuations. Nevertheless, this setting admits simple algorithms with provable approximation and additive guarantees.
We first state a universal lower bound (independent of the chosen order), which will serve as a benchmark for both hardness and approximation results. Importantly, the bound holds for any number of agents, assuming identical valuations. Given an instance , let denote the minimum possible cost achievable over all arrival orders and allocation sequence .
Lemma 1. For any instance where and agents have identical valuations, . Moreover, the bound is tight.
Next, we introduce the following algorithm (Algorithm 2), designed for the setting where agents have identical valuations. The algorithm proceeds by first sorting the goods in increasing order of value (that will be the ), then iteratively allocating each good to the agent with the currently smallest bundle value. Despite its simplicity, we will show that this greedy approach is able to give us several positive approximation guarantees.
Relation to envy-cycle elimination and list scheduling. Under identical valuations, no envy cycle can arise, and an agent is unenvied exactly when her bundle has minimum value. Hence, Algorithm 2 is the envy-cycle elimination algorithm of Lipton et al. [52] applied to the goods in nondecreasing order of value. Their analysis, applied to the first t goods, shows that after each round the maximum envy is at most the largest value of a good allocated so far, i.e., ; our proofs combine this bound with the lower bound of Lemma 1 and with an exact expression for the cost of Algorithm 2. Note that Algorithm 2 uses the opposite order to Graham's greedy rule [39], which processes goods in nonincreasing order of value and, under identical valuations, yields EFX allocations [7, 61]; placing large goods last keeps the envy small in early rounds (cf. Example 2). Lipton
This setting has also been extensively studied both in sequential fair division models [29, 46, 66] and in the broader fair division literature [8, 22, 61, 63].
Algorithm 2 IDENTICAL-LOWEST-FIRST
Input: Instance .
Output: An order and allocation sequence .
1: Initialize and label goods such that
2:
3: for do
4: Let , with ties broken in favor of the lowest-index agent
5:
6:
7: for all
8: end for
9: return and allocation sequence
et al. [52] also observed that, under identical valuations, envy minimization is closely related to scheduling on identical machines. Indeed, Algorithm 2 has the same steps as shortest-processing-time-first list scheduling on identical machines: goods are jobs, agents are machines, and is the processing time of job g. The objectives are different, however. List scheduling is usually analyzed using the final makespan, that is, the largest final machine load. In our setting, is the difference between the largest and smallest loads after the first t jobs, and we minimize . Thus, the 3/2 factor in Theorem 6 does not follow from the usual list-scheduling analysis, although the common greedy rule may help explain why the same constant appears [38].
First, we show that in the case of two agents, we can get a 3/2-approximation to the optimal cost.
Theorem 6. When n = 2 and the agents have identical valuations, Algorithm 2 achieves a 3/2-approximation to the optimal cost.
We can extend the analysis to any , obtaining an -approximation (which approaches 1 as grows).
Theorem 7. For all , if the agents have identical valuations, then Algorithm 2 achieves a -approximation to the optimal cost.
For , the 3/2-approximation guarantee of Theorem 6 is tight; see Appendix C.5. For , Appendix C.6 provides an instance on which IDENTICAL-LOWEST-FIRST achieves approximation ratio .
Finally, we complement the multiplicative bounds with an additive approximation guarantee, stated in terms of .
Theorem 8. For all , if agents have identical valuations, then Algorithm 2 outputs an order and allocation sequence such that .
In Appendix C.8, we present a matching lower bound.
Paul W. Goldberg, Isaac Robinson, and Nicholas Teh
6 Conclusion
In this paper, we initiated the study of envy minimization in temporal fair division from an optimization perspective, departing from the traditional focus on discrete relaxations like EF1 and EFX and on the prefix-based notions studied in earlier temporal work. In the standard model where the order of goods is adversarially chosen and fixed, we show that minimizing this objective is computationally intractable and cannot be approximated within any constant factor unless P = NP. In spite of this, we provide a dynamic programming algorithm that computes an optimal solution in several special cases. We then explored a natural variant in which the algorithm is allowed to choose the arrival order of goods, while an adversary pre-selects the valuations. Even with this additional flexibility, we show that the problem remains NP-complete for just two agents and identical valuations. We complement this with efficient approximation algorithms.
Our results contribute to the growing understanding of temporal fairness in sequential allocation problems. Several directions remain open. In particular, it would be interesting to study discounted cumulative envy where recent unfairness matters more than past inequities; Kahana et al. [47] recently studied a related discounted model in an online setting.
Acknowledgments
PWG was supported by EPSRC grants EP/X040461/1 and EP/X038548/1. PWG and NT were supported by ARIA project “Aggregating Safety Preferences for AI Systems: A Social Choice Approach”. IR was supported by a Rhodes scholarship.
References
-
Martin Aleksandrov, Haris Aziz, Serge Gaspers, and Toby Walsh. Online fair division: Analysing a food bank problem. In Proceedings of the 24th International Joint Conference on Artificial Intelligence (IJCAI), pages 2540–2546, 2015.
-
Martin Aleksandrov and Toby Walsh. Pure nash equilibria in online fair division. In Proceedings of the 26th International Joint Conference on Artificial Intelligence (IJCAI), pages 42–48, 2017.
-
Georgios Amanatidis, Giulio Giaconi, Evangelos Markakis, and Nicos Protopapas. Online fair division meets reordering buffers. arXiv:2607.01159, 2026.
-
Georgios Amanatidis, Alexandros Lolos, Evangelos Markakis, and Victor Turmel. Online fair division for personalized 2-value instances. In Proceedings of the 18th International Symposium on Algorithmic Game Theory (SAGT), pages 209–227, 2025.
-
Haris Aziz, Serge Gaspers, Simon Mackenzie, and Toby Walsh. Fair assignment of indivisible objects under ordinal preferences. Artificial Intelligence, 227:71–92, 2015.
-
Moshe Babaioff, Nicole Immorlica, David Kempe, and Robert Kleinberg. A knapsack secretary problem with applications. In Proceedings of the 10th International Workshop on Approximation (APPROX) and the 11th International Workshop on Randomization, and Combinatorial Optimization. Algorithms and Techniques (RANDOM), pages 16–28, 2007.
-
Siddharth Barman and Sanath Kumar Krishnamurthy. Approximation algorithms for maximin fair division. ACM Transactions on Economics and Computation, 8(1):5:1–5:28, 2020.
-
Siddharth Barman and Ranjani G. Sundaram. Uniform welfare guarantees under identical subadditive valuations. In Proceedings of the 29th International Joint Conference on Artificial Intelligence (IJCAI), pages 46–52, 2020.
-
Xiaohui Bei, Zihao Li, and Junjie Luo. Fair and efficient multi-resource allocation for cloud computing. In Proceedings of the 18th Conference on Web and Internet Economics (WINE), pages 169–186, 2022.
-
Gerdus Benadè, Aleksandr M. Kazachkov, Ariel D. Procaccia, Alexandros Psomas, and David Zeng. Fair and efficient online allocations. Operations Research, 72(4):1438–1452, 2024.
-
Gerdus Benadè, Aleksandr M. Kazachkov, Ariel D. Procaccia, and Christos-Alexandros Psomas. How to make envy vanish over time. In Proceedings of the 19th ACM Conference on Economics and Computation (EC), pages 593–610, 2018.
-
Steven J. Brams and Alan D. Taylor. Fair Division: From Cake-Cutting to Dispute Resolution. Cambridge University Press, 1996.
-
Florian Brandl, Warut Suksompong, and Nicholas Teh. Fair division with binary valuations: Characterizations. In Proceedings of the 19th International Symposium on Algorithmic Game Theory (SAGT), 2026.
-
Eric Budish. The combinatorial assignment problem: Approximate competitive equilibrium from equal incomes. Journal of Political Economy, 119(6):1061–1103, 2011.
-
Ioannis Caragiannis, David Kurokawa, Hervé Moulin, Ariel D. Procaccia, Nisarg Shah, and Junxing Wang. The unreasonable fairness of maximum Nash welfare. ACM Transactions on Economics and Computation, 7(3):12:1–12:32, 2019.
-
Ioannis Caragiannis and Shivika Narang. Repeatedly matching items to agents fairly and efficiently. Theoretical Computer Science, 981:114246, 2024.
-
Bhaskar Ray Chaudhury, Jugal Garg, and Kurt Mehlhorn. Efx exists for three agents. Journal of the ACM, 71(1):1–27, 2024.
-
Kui-Wang Choi and Minming Li. Temporal fair division of indivisible goods with scheduling. arXiv:2601.12835, 2026.
-
Kui-Wang Choi and Minming Li. Temporal fair division of indivisible goods with structured constraints. In Proceedings of the 19th International Symposium on Algorithmic Game Theory (SAGT), 2026.
-
Kui-Wang Choi, Minming Li, and Nicholas Teh. Temporal fair division of indivisible mixed manna: Tractable settings. arXiv:2608.20033, 2026.
-
Davin Choo, Winston Fu, Derek Khu, Tzeh Yuan Neoh, Tze-Yang Poon, and Nicholas Teh. Approximate proportionality in online fair division. In Proceedings of the 43rd International Conference on Machine Learning (ICML), 2026.
-
Davin Choo, Yan Hao Ling, Warut Suksompong, Nicholas Teh, and Jian Zhang. Envy-free house allocation with minimum subsidy. Operations Research Letters, 54:107103, 2024.
-
Saar Cohen, Nicholas Teh, Paul W. Goldberg, and Michael J. Wooldridge. Online fair division with budget constraints. arXiv:2607.23310, 2026.
Paul W. Goldberg, Isaac Robinson, and Nicholas Teh
-
Saar Cohen, Nicholas Teh, and Michael Wooldridge. Online fair division against an oblivious adversary. arXiv:2609.28333, 2026.
-
Benjamin Cookson, Soroush Ebadian, and Nisarg Shah. Temporal fair division. In Proceedings of the 39th AAAI Conference on Artificial Intelligence (AAAI), pages 13727–13734, 2025.
-
Nikhil R. Devanur and Thomas P. Hayes. The adwords problem: online keyword matching with budgeted bidders under random permutations. In Proceedings of the 10th ACM Conference on Electronic Commerce (EC), pages 71–78, 2009.
-
Edith Elkind, Ayumi Igarashi, and Nicholas Teh. Fair division of chores with budget constraints. In Proceedings of the 17th International Symposium on Algorithmic Game Theory (SAGT), pages 55–71, 2024.
-
Edith Elkind, Sonja Kraiczy, and Nicholas Teh. Fairness in temporal slot assignment. In Proceedings of the 15th International Symposium on Algorithmic Game Theory (SAGT), pages 490–507, 2022.
-
Edith Elkind, Alexander Lam, Mohamad Latifian, Tzeh Yuan Neoh, and Nicholas Teh. Temporal fair division of indivisible items. In Proceedings of the 24th International Conference on Autonomous Agents and Multiagent Systems (AAMAS), pages 676–685, 2025.
-
Edith Elkind, Svetlana Obraztsova, and Nicholas Teh. Temporal fairness in multiwinner voting. In Proceedings of the 38th AAAI Conference on Artificial Intelligence (AAAI), pages 22633–22640, 2024.
-
Jon Feldman, Nitish Korula, Vahab Mirrokni, S. Muthukrishnan, and Martin Pál. Online ad assignment with free disposal. In Stefano Leonardi, editor, Proceedings of the 5th International Workshop on Internet and Network Economics (WINE), pages 374–385, 2009.
-
Jon Feldman, Aranyak Mehta, Vahab Mirrokni, and S. Muthukrishnan. Online stochastic matching: Beating 1-1/e. In Proceedings of the 50th Annual IEEE Symposium on Foundations of Computer Science (FOCS), pages 117–126, 2009.
-
Jörg Flum and Martin Grohe. Parameterized Complexity Theory. Texts in Theoretical Computer Science. An EATCS Series. Springer, 2006.
-
Michael R. Garey and David S. Johnson. Complexity results for multiprocessor scheduling under resource constraints. SIAM Journal on Computing, 4(4):397–411, 1975.
-
Michael R. Garey and David S. Johnson. Computers and Intractability: A Guide to the Theory of NP-Completeness. W. H. Freeman, 1979.
-
Gagan Goel and Aranyak Mehta. Online budgeted matching in random input models with applications to adwords. In Proceedings of the 19th Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 982–991, 2008.
-
Laurent Gourvès, Jérôme Monnot, and Lydia Tiliane. Near fairness in matroids. In Proceedings of the 21st European Conference on Artificial Intelligence (ECAI), pages 393–398, 2014.
-
Ronald L. Graham. Bounds for certain multiprocessing anomalies. The Bell System Technical Journal, 45:1563–1581, 1966.
-
Ronald L. Graham. Bounds on multiprocessing timing anomalies. SIAM Journal on Applied Mathematics, 17(2):416–429, 1969.
-
MohammadTaghi Hajiaghayi, MohammadReza Khani, Debmalya Panigrahi, and Max Springer. Online algorithms for the Santa Claus problem. In Proceedings of the 36th International Conference on Neural Information Processing Systems (NeurIPS), pages 30732–30743, 2022.
-
Daniel Halpern, Ariel D. Procaccia, Alexandros Psomas, and Nisarg Shah. Fair division with binary valuations: One rule to rule them all. In Proceedings of the 16th Conference on Web and Internet Economics (WINE), pages 370–383, 2020. Extended version available at arXiv:2007.06073v2.
-
Daniel Halpern, Alexandros Psomas, Paritosh Verma, and Daniel Xie. Online envy minimization and multicolor discrepancy: Equivalences and separations. In Proceedings of the 26th ACM Conference on Economics and Computation (EC), page 188, 2025.
-
Jiafan He, Ariel D. Procaccia, Alexandros Psomas, and David Zeng. Achieving a fairer future by changing the past. In Proceedings of the 28th International Joint Conference on Artificial Intelligence (IJCAI), pages 343–349, 2019.
-
Hadi Hosseini, Sujoy Sikdar, Rohit Vaish, Hejun Wang, and Lirong Xia. Fair division through information withholding. In Proceedings of the 34th AAAI Conference on Artificial Intelligence (AAAI), pages 2014–2021, 2020.
-
Oscar H. Ibarra and Chul E. Kim. Fast approximation algorithms for the knapsack and sum of subset problems. Journal of the ACM, 22(4):463–468, 1975.
-
Ayumi Igarashi, Martin Lackner, Oliviero Nardi, and Arianna Novaro. Repeated fair allocation of indivisible items. In Proceedings of the 38th AAAI Conference on Artificial Intelligence (AAAI), pages 9781–9789, 2024.
-
Ido Kahana, Erel Segal-Halevi, and Noam Hazon. Perpetual fully-online approximate fairness. arXiv:2605.19844, 2026.
-
Chinmay Karande, Aranyak Mehta, and Pushkar Tripathi. Online bipartite matching with unknown distributions. In Proceedings of the 43rd Annual ACM Symposium on Theory of Computing (STOC), pages 587–596, 2011.
-
Robert Kleinberg. A multiple-choice secretary algorithm with applications to online auctions. In Proceedings of the 16th Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 630–631, 2005.
-
Martin Lackner. Perpetual voting: Fairness in long-term decision making. In Proceedings of the 34th AAAI Conference on Artificial Intelligence (AAAI), pages 2103–2110, 2020.
-
Eugene Lim, Tzeh Yuan Neoh, and Nicholas Teh. Fairness in repeated matching: A maximin perspective. In Proceedings of the 40th AAAI Conference on Artificial Intelligence (AAAI), pages 17111–17119, 2026.
-
Richard Lipton, Evangelos Markakis, Elchanan Mossel, and Amin Saberi. On approximately fair allocations of indivisible goods. In Proceedings of the 5th ACM Conference on Electronic Commerce (EC), pages 125–131, 2004.
-
Karl Jochen Micheel and Anaëlle Wilczynski. Fairness in repeated house allocation. In Proceedings of the 27th European Conference on Artificial Intelligence (ECAI), pages 3549–3556, 2024.
-
Hervé Moulin. Fair Division and Collective Welfare. MIT Press, 2003.
-
Riley Murray, Christian Kroer, Alex Peysakhovich, and Parikshit Shah. Robust market equilibria with uncertain preferences. In Proceedings of the 34th AAAI Conference on Artificial Intelligence (AAAI), pages 2192–2199, 2020.
-
Tzeh Yuan Neoh, Jannik Peters, and Nicholas Teh. Online fair division with additional information. In Proceedings of the 43rd International Conference on Machine Learning (ICML), 2026.
-
Tzeh Yuan Neoh and Nicholas Teh. Understanding efx allocations: Counting and variants. In Proceedings of the 39th AAAI Conference on Artificial Intelligence (AAAI), pages 14036–14044, 2025.
-
Tzeh Yuan Neoh and Nicholas Teh. Closing gaps in online fair division. arXiv:2609.05310, 2026.
Paul W. Goldberg, Isaac Robinson, and Nicholas Teh
-
Trung Thanh Nguyen and Jörg Rothe. Minimizing envy and maximizing average Nash social welfare in the allocation of indivisible goods. Discrete Applied Mathematics, 179:54–68, 2014.
-
Rolf Niedermeier. Invitation to Fixed-Parameter Algorithms. Oxford University Press, 2006.
-
Benjamin Plaut and Tim Roughgarden. Almost envy-freeness with general valuations. SIAM Journal on Discrete Mathematics, 34(2):1039–1068, 2020.
-
Sartaj Sahni. Algorithms for scheduling independent tasks. Journal of the ACM, 23(1):116–127, 1976.
-
Jonathan Scarlett, Nicholas Teh, and Yair Zick. For one and all: Individual and group fairness in the allocation of indivisible goods. In Proceedings of the 22nd International Conference on Autonomous Agents and Multiagent Systems (AAMAS), pages 2466–2468, 2023.
-
Joel Spencer. Balancing games. Journal of Combinatorial Theory, Series B, 23(1):68–74, 1977.
-
Warut Suksompong and Nicholas Teh. On maximum weighted Nash welfare for binary valuations. Mathematical Social Sciences, 117:101–108, 2022.
-
Nicholas Teh, Saar Cohen, Karen Frilya Celine, Benjamin Yu, and Michael J. Wooldridge. Online house allocation with subsidy. arxiv:2609.29691, 2026.
-
Yuanyuan Wang and Tianze Wei. Online fair allocations with binary valuations and beyond. In Proceedings of the 40th AAAI Conference on Artificial Intelligence (AAAI), pages 17267–17275, 2026.
Appendix
A Omitted Proofs from Section 3
A.1 Proof of Theorem 2
We reduce from the BINARY-EF problem, which is known to be NP-hard [5, 44]. An instance of BINARY-EF is given by a set of agents , a set of goods , and a valuation profile where agents have additive binary valuations over the set of goods; it is a yes-instance if there exists an allocation of goods to agents such that is envy-free, i.e., for every pair of agents , and a no-instance otherwise.
Construct an instance of our problem, where and we have goods arriving in the order , with valuations defined as follows:
We first show that TEMPORAL-ENVYMIN is NP-complete (it is easy to see that the problem is in NP, we thus focus on proving NP-hardness). We do so by proving that there exists an envy-free allocation for BINARY-EF if and only if there exists an allocation (and hence corresponding allocation sequence ) such that for the above constructed instance.
The zero-valued goods make any envy present after the first rounds persist. If the BINARY-EF instance is a yes-instance, we allocate the first goods according to an envy-free allocation, so all later rounds have zero envy. If it is a no-instance, every allocation has maximum envy at least 1 at round , and this remains true while the zero-valued goods arrive. The same idea, with additional zero-valued goods, gives the constant-factor inapproximability result.
(⇒) Suppose there exists an envy-free allocation for BINARY-EF. Then, consider the sequence whereby
Observe that for each , , and , since is envy-free, which means under , there is no envy (and cost is 0). Thus, we
This is because under binary valuations, at round t, each bundle contains at most t goods and each good is worth at most 1 to any agent.
Paul W. Goldberg, Isaac Robinson, and Nicholas Teh
also get that for , , giving us
Then, for all .
(⇔) Suppose there does not exist an envy-free allocation for BINARY-EF. This means that for any sequence , the allocation induced on the first goods is not envy-free, and . Since the next goods are zero-valued, we have that . Thus, for any sequence ,
Next, we argue that in (the same) setting where agents have binary valuations, there exists no constant-factor approximation algorithm, unless P = NP.
Note that in the reduction above, we showed that given an instance I and order , determining whether we can find an allocation sequence S such that is NP-complete. Equivalently,
– any yes-instance admits a sequence with ;
– any no-instance will force any sequence to have .
Observe that for yes-instances, , which means the cost of is incurred at earlier rounds, whereas for no-instances, .
Let and fix any constant . We may assume , so . Append
additional zero-valued goods. If the Binary-EF instance is a yes-instance, the same allocation still has cost at most B. If it is a no-instance, then envy is at least 1 from round onward, and therefore it remains at least 1 throughout the appended zero-valued rounds. Thus every no-instance has cost at least
Thus, running an -approximation on the constructed TEMPORAL-ENVYMIN instance and comparing its returned cost with would decide the original BINARY-EF instance in polynomial time. This is impossible unless P = NP.
B Omitted Proofs from Section 4
B.1 Proof of Proposition 1
Consider the greedy algorithm that, at each round , allocates the arriving good to an agent with minimum current bundle value . This can be implemented in time.
Since valuations are binary and identical, each bundle value is an integer that represents the number of goods of value 1 assigned to agent i among the first t arrivals. Let be the number of goods of value 1 among the first t goods in . Under identical valuations,
Then, since and all are integers,
Thus, for every allocation,
which equals 0 if and only if , and equals 1 otherwise.
We claim the greedy algorithm maintains
proved by induction on : initially it is 0. If the arriving good has value 0, bundle values do not change. If it has value 1, the algorithm adds 1 to a minimum bundle value, so the gap cannot increase beyond 1. Thus, always. Moreover, if , the bundle values cannot be equal integers summing to , so and thus . If , the gap forces equality, giving us . To see why, if , then all . Writing for the number of agents with value , we have . If , then , but , thus and all values equal.
Thus, the greedy algorithm achieves a per-round lower bound for every , and summing over shows that it minimizes .
B.2 Proof of Theorem 4
Fix a constant , an instance with identical valuation function , and a fixed arrival order . Let denote the optimal cumulative maximum envy for this fixed order under .
If , then every bundle has value 0 at every round, so for all and all . Hence OPT = 0, and any allocation sequence is optimal. We therefore assume . Set
Paul W. Goldberg, Isaac Robinson, and Nicholas Teh
and define a scaled (integer) valuation by
Let be the scaled instance. Compute an allocation sequence that optimizes for the instance and the same order (e.g., using Algorithm 1 together with Theorem 3), and output for the original instance.
For every ,
so (for fixed ). By Theorem 3, for fixed , Algorithm 1 runs in time polynomial in and , hence polynomial in and .
Now, we prove the approximation guarantee. For any allocation sequence S and any round t, write
Since for each good and (because at most goods have arrived by round ), we have that for every and ,
Define and , and similarly and . Under identical valuations we have
From (1), we get and , thus
Also and , hence
Therefore, for every S,
(2)
Since , (2) becomes
Let be optimal for the original instance (so ). By optimality of for the scaled instance, . Applying (3) first to and then to gives us
It remains to lower bound OPT in terms of . Fix any sequence and define as above. If is allocated to agent , then . Since and ,
Using , we get
Summing over and using gives us
Since , it follows that . Minimizing over yields
Finally, by our choice of ,
where the inequality follows from (4). Consequently,
which proves the claimed -approximation and completes the proof.
C Omitted Proofs from Section 5
C.1 Proof of Theorem 5
Membership in NP is easy to see: given and , we can compute all partial bundles and the values for each
Paul W. Goldberg, Isaac Robinson, and Nicholas Teh
, and verify whether in polynomial time. Thus, we focus on showing NP-hardness.
We reduce from the NP-hard PARTITION problem [35]. An instance of PARTITION consists of positive integers with total sum ; we may assume is even (otherwise it is a trivial no-instance). We construct an instance of TEMPORAL-ENVYMIN-SEQ with and identical additive valuations (so ). Let . Create 2q goods (thus the number of goods is ), consisting of pairs for each , where
Then the total value is
and let
which is an integer since T is even.
We will use the following fact, which holds for every order and sequence in this constructed instance. Since and valuations are identical, for every we have
Define , so . For each , the -th arriving good is allocated to exactly one agent, so and therefore . By the triangle inequality, we have that
for all . Summing (5) over we get
The left-hand side equals , so
Moreover, after the first good arrives exactly one agent has received and the other has an empty bundle, thus . Substituting gives us
Since , we conclude that for every ,
We now prove correctness of the reduction.
(⇒) Suppose the PARTITION instance is a yes-instance, so there exists with . We define a permutation of the 2q goods by listing the goods in consecutive pairs as follows:
– for each , place the pair in ,
– for each , place the pair in ,
with all pairs corresponding to indices appearing first (in arbitrary order among themselves), followed by all pairs corresponding to indices (in arbitrary order among themselves).
Next define an allocation sequence by the greedy rule: at each round , allocate to an agent in (break ties arbitrarily). We analyze the contribution of each consecutive pair to the total cost. Fix a pair and let be the absolute difference immediately before the first good of the pair is allocated.
We first consider pairs with . During this part of the sequence, the difference is the sum of the -values of some already-processed indices in , hence . Assume w.l.o.g. that , so . The greedy rule gives to agent 1, so the new difference is and the incurred cost at that round is . Now agent 2 has the smaller bundle, so is given to agent 2; the new difference becomes
and the cost at the next round is . Therefore, this pair contributes to , and the absolute difference after the pair increases by .
After all are processed, the absolute difference equals .
Next, we consider pairs with . At the start of this part, the difference is , and we maintain the invariant that after processing some subset , the current absolute difference is . In particular, before processing any remaining , we have . Again assume w.l.o.g. that agent 1 has the smaller bundle before the pair, so agent 2 is ahead by . The greedy rule assigns to agent 1. Since , the new difference is and the cost at that round is . Then the greedy rule assigns to agent 2, and the new difference becomes
using . The pair therefore contributes
to and decreases the absolute difference by , preserving the invariant. After all are processed, the absolute difference returns to 0.
Paul W. Goldberg, Isaac Robinson, and Nicholas Teh
Summing contributions over all q pairs,
Thus, there exists with .
(⇔) Conversely, suppose there exist and with . By (6), we must have . From and , we get . Also, define for each the slack from (5). Since equality holds in the summed inequality, we must have , and therefore for every , i.e., for all ,
Rearranging gives us for all , and unrolling this recurrence, we get
Since is even and , we get
Every good in has value either or . Write , where and each appears exactly once among the 's (coming from the unique good of value ). Since there are exactly even positions and odd positions, the -terms cancel, giving us
Because , each side must equal . Let be the set of indices such that the good (the unique good of value ) appears in an even position of . Then
so the original PARTITION instance is a yes-instance.
This completes the reduction, and proves our result.
C.2 Proof of Lemma 1
Fix any arrival order and allocation sequence . For each define
Under identical valuations,
Now fix any and let be the agent who receives . By additivity, . Since and , we have
Using , this becomes
Summing over and using , we get
Rearranging gives us
Finally,
so . Taking a minimum over gives us the same bound for .
Next, we prove the factor is tight. For any , take goods each with value 1, so . Consider the round-robin allocation (one good per agent each cycle). At every round that is not a multiple of , the bundle values differ by exactly 1, so ; at rounds that are multiples of , all bundle values are equal and . Thus , matching the lower bound.
Paul W. Goldberg, Isaac Robinson, and Nicholas Teh
C.3 Proof of Theorem 6
Consider any instance where and agents have identical valuations. Let be the allocation sequence induced from the order and allocation returned by the algorithm.
Also consider any . Suppose, without loss of generality, that . Then,
We first prove the following claim.
Claim. Under Algorithm 2 with and goods ordered so that , we have for every . Thus, after allocating to the agent with the smaller current bundle value, that agent becomes (weakly) the one with a larger bundle value, and therefore (equivalently, .
Proof (Proof of Claim). We prove this claim by induction. For the base case: , so . For the inductive step: assume . Then, after allocating to the agent with the smaller bundle, . In particular, . Thus, , i.e., .
Thus, Algorithm 2 will allocate to agent 1, giving us
Then, we get that
Thus, for all ,
Together with the fact that , we get
Algebraic manipulation gives us
From Lemma 1, we know that
If , then
If , then given that , we have
To see why : For any order and sequence , let be a maximum-valued item (so ). If then . If , then by the inequality , we get . Thus, .
Using this, we obtain
where the strict inequality follows from the fact that .
Thus, in both cases, we get that
as desired.
C.4 Proof of Theorem 7
Consider any instance in which agents have identical valuations. Let be the order produced by Algorithm 2 (i.e., the goods are labeled so that ), and let be the allocation
To see this inequality, let . After item is allocated, . Thus, .
Paul W. Goldberg, Isaac Robinson, and Nicholas Teh
sequence induced by Algorithm 2 on this order. For each and , let denote agent 's bundle after the first goods of have been allocated.
For each , define
Since valuations are identical, for every we have
Indeed, for any , , and equality is achieved by choosing and .
We now prove that
by induction on (this is the bound of envy-cycle elimination [52] applied to the first goods; we include a proof for completeness).
Base case . After allocating , some agent has value , and since , at least one agent has value 0. Thus, and . Therefore,
Inductive step. Fix and assume . Since Algorithm 2 sorts goods by nondecreasing value, , and thus
which implies
Algorithm 2 allocates to some agent , so . After allocating we have
and for every , . Thus,
Moreover, since and all other bundle values remain unchanged (and are therefore at most ), we have
Therefore,
where the last inequality follows from the fact that . This completes the induction.
Summing the per-round bound gives us
since is a permutation of . By Lemma 1, , and therefore
so Algorithm 2 is a -approximation.
C.5 Tightness of IDENTICAL-LOWEST-FIRST Analysis for n = 2
We provide an example for which the IDENTICAL-LOWEST-FIRST algorithm has an approximation ratio of 3/2 for n = 2
Example 3. Consider an instance with n = 2 and m = 3 where agents have identical valuations and the multiset of good values is .
– IDENTICAL-LOWEST-FIRST (Algorithm 2): Sorting gives the order . Using the algorithm with its stated tie-breaking rule (lowest-index agent), the induced allocation sequence is , which gives us , , , and .
– Optimal: Let the order be and allocate according to . Then, , , , and so . By Lemma 1 (with ), , so this is optimal.
Therefore, on this instance Algorithm 2 has approximation ratio 3/2, matching the bound in Theorem 6.
C.6 Approximation Ratio Lower Bound of for
We provide an example for which the IDENTICAL-LOWEST-FIRST algorithm has an approximation ratio of for .
Example 4. Fix any . Consider an instance with identical valuation function and goods. Let two goods have value 1 and goods have value 2. Thus, we have that .
– IDENTICAL-LOWEST-FIRST (Algorithm 2): Sorting gives the order . Using the algorithm with its stated tie-breaking rule (lowest-index agent), after allocating the first two goods of value 1, we have bundle values . Then the next goods each of value 2 are allocated one by one to agents , giving us bundle values
Paul W. Goldberg, Isaac Robinson, and Nicholas Teh
after round ; the final 2 is then allocated to agent 1, giving us after round . Let be the induced allocation sequence.
Under identical valuations, the per-round cost is the gap between the maximum and minimum bundle values. Thus the maximum envy values are , , (for , ), and . Therefore,
- Optimal solution. Consider the arrival order , and allocate the first and last value 1 goods to agent 1, while allocating the value 2 goods to agents (one each). Denote the resulting allocation sequence by . Then the per-round maximum envy values are , for , , . Consequently, . By Lemma 1, , giving us .
Thus, on this instance, Algorithm 2 has approximation ratio
C.7 Proof of Theorem 8
Fix an instance with identical valuations, where . Let Algorithm 2 order the goods as with , and let be the induced allocation sequence. For each define
where denotes agent 's bundle after round (and ). Under identical valuations, .
We claim that for all . For , after allocating we have and (since means some agent is still empty after round 1), thus, . Now fix and assume inductively that . Since the goods are sorted, , so . Algorithm 2 allocates to an agent with minimum bundle value at time , i.e., . After allocation,
so becomes a (weak) maximizer and therefore . Also . Thus
proving the claim.
In particular, .
From we have, for every , ; equivalently, .
Summing over gives us
and thus
Let , so , while every other bundle is . Thus,
Rearranging, we get
Plugging this into (8) gives us
Using , we get
By Lemma 1, . Therefore,
which completes the proof.
C.8 Tightness of the Additive Approximation Guarantee
We provide an example showing that the additive error term in Theorem 8 is tight.
Paul W. Goldberg, Isaac Robinson, and Nicholas Teh
Example 5. Fix any . Consider an instance with identical valuation function and the following multiset of good values: for each there are exactly goods of value , and there are goods of value . Thus , the number of goods is , and
– IDENTICAL-LOWEST-FIRST (Algorithm 2) Sorting gives the order
For each , when the goods of value arrive, all bundle values are equal at the start of this block, so the greedy rule gives one such good to each agent. Thus, during this block, the gap (maximum minus minimum bundle value) is for the first arrivals and on the -th, contributing to the cumulative cost. After the first arrivals, every agent has value
The remaining goods (each of value ) are then given to distinct agents; after each such round, the gap is exactly . Therefore,
– Optimal solution. We show a pair that achieves the universal lower bound of Lemma 1. Define an arrival order in blocks as follows: for each , append the block
Note that for each , value appears times in block (once at the start, and times at the end), and appears times in block .
Thus, the total number of times value appears is . Also, value appears exactly times in block .
Let allocate each arriving good to an agent with currently minimum bundle value (break ties arbitrarily).
Claim. After the block for k is processed, the multiset of bundle values is
where and for .
Proof of claim. For , the first block is , and
allocating each good to a minimum-valued agent yields agents at value and one agent at value , so . For the inductive step, assume the claim holds after the block for (so the current gap is ). The next block is
The first goes to a minimum agent, bringing her up to the current maximum. Then the goods of value are given to the remaining minimum agents, making them the new maxima. Finally, each of the goods of value is given to a (new) minimum agent; after all are assigned, we obtain agents at value and agents at value , i.e., the claim with .
In particular, after the final block , all agents have equal value . Unrolling the recurrence,
Moreover, each arriving good is allocated to an agent with minimum bundle value. As in the proof of Lemma 1, this implies
By Lemma 1, , so we conclude .
Paul W. Goldberg, Isaac Robinson, and Nicholas Teh
Finally, we have that
Thus, the additive term cannot be improved in general.