Almost Envy-Free Allocations with Connected Bundles
Vittorio Bilò, Ioannis Caragiannis, Michele Flammini, Ayumi Igarashi, Gianpiero Monaco, Dominik Peters, Cosimo Vinci, William S. Zwicker
Introduction
A famous literature considers the problem of cake-cutting (Brams and Taylor, 1996; Robertson and Webb, 1998; Procaccia, 2016). There, a divisible heterogeneous resource (a cake, usually formalized as the interval $nn$ pieces, and allocate each piece to one agent, in a “fair” way. By fair, we will mean that the allocation is envy-free: no agent thinks that another agent’s piece is more valuable than her own.
When there are two agents, the classic procedure of cut-and-choose can produce an envy-free division: a knife is moved from left to right, until an agent shouts to indicate that she thinks the pieces to either side are equally valuable. The other agent then picks one of the pieces, leaving the remainder for the shouter. As is easy to see, the result is an envy-free allocation. For three or more agents, finding an envy-free division has turned out to be much trickier. An early result by Dubins and Spanier (1961) used Lyapunov’s Theorem and measure-theoretic techniques to show, non-constructively, that an envy-free allocation always exists. However, as Stromquist (1980) memorably writes, “their result depends on a liberal definition of a ‘piece’ of cake, in which the possible pieces form an entire -algebra of subsets. A player who only hopes for a modest interval of cake may be presented instead with a countable union of crumbs.” In many applications of resource allocation (such as land division, or the allocation of time slots), agents have little use for a severely disconnected piece of cake.
Stromquist (1980) himself offered a solution, and gave a new non-constructive argument (using topology) which proved that there always exists an envy-free division of the cake into intervals. Forest Simmons later observed that the proof could be simplified by using Sperner’s lemma, and this technique was subsequently presented in a paper by Su (1999). For the three-agent case, Stromquist (1980) also presented an appealing moving-knife procedure that more directly yields a connected envy-free allocation. For agents, no explicit procedures are known to produce a connected envy-free allocation (i.e., an allocation where the cake is cut in exactly places). However, for , several moving-knife procedures exist that only need a few cuts; for example, the Brams–Taylor–Zwicker (1997) procedure requires 11 cuts, and a protocol of Barbanel and Brams (2004) requires 5 cuts.
In many applications, the resources to be allocated are not infinitely divisible, and we face the problem of allocating indivisible goods. Most of the literature on indivisible goods has not assumed any kind of structure on the item space, in contrast to the rich structure of the interval $$ in cake-cutting. Thus, there has been little attention on minimizing the number of “cuts” required in an allocation. However, when the items have a spatial or temporal structure, this consideration is important.
In this paper, we study the allocation of items that are arranged on a path or other structure, and impose the requirement that only connected subsets of items may be allocated to the agents. Formally, we work in the model of Bouveret et al. (2017), who assume that the items form the vertex set of a graph , and a bundle is connected if it induces a connected subgraph of . For example, such connectivity requirements are encountered in allocation problems in which the items correspond to indivisible pieces of an underlying region of Euclidean space (such as plots of land), and each allocated bundle (i.e., a collection of pieces) must be a connected portion of the space. We are most interested in the case when is a path, on which connectivity requirements are natural when the items are time slots, for example. In practice, connectivity may not be a hard constraint, and agents may find bundles with few connected components acceptable, but we will not consider such relaxations.
In the work of Bouveret et al. (2017), it became apparent that techniques from cake-cutting can be usefully ported to achieve good connected allocations in the indivisible case. For example, moving-knife procedures that achieve proportionality in cake-cutting have analogues that produce allocations that satisfy the maximin share guarantee (Budish, 2011).Another paper by Suksompong (2019) works in the same model, and also found that procedures for proportionality and other concepts can be applied to the indivisible setting.
Do envy-free procedures for cake-cutting also translate to the indivisible case? Of course, in general, it is impossible to achieve envy-freeness with indivisibilities (consider two agents and a single desirable item), but we can look for approximations. A relaxation of envy-freeness that has been very influential recently is envy-freeness up to one good (EF1), introduced by Budish (2011). It requires that an agent’s envy towards another bundle vanishes if we remove some item from the envied bundle. In the setting without connectivity constraints and with additive valuations, the maximum Nash welfare solution satisfies EF1, as does a simple round-robin procedure (Caragiannis et al., 2019). The well-known envy-graph algorithm (Lipton et al., 2004) also guarantees EF1. However, none of these procedures respects connectivity constraints.
When items are arranged on a path, we prove that connected EF1 allocations exist when there are two, three, or four agents. As was necessary in cake-cutting, we use successively more complicated tools to establish these existence results. For two agents, there is a discrete analogue of cut-and-choose that satisfies EF1. In that procedure, a knife moves across the path, and an agent shouts when the knife reaches what we call a lumpy tie, that is when the bundles to either side of the knife have equal value up to one item. For three agents, we design an algorithm mirroring Stromquist’s moving-knife procedure which guarantees EF1. For four agents, we show that Sperner’s lemma can be used to prove that an EF1 allocation exists, via a technique inspired by the Simmons–Su approach, and an appropriately triangulated simplex of connected partitions of the path. For five or more agents, we were not able to establish the existence of EF1 allocations on a path, but we can show (again via Sperner’s lemma) that EF2 allocations exist, strengthening a prior result of Suksompong (2019). We also show that if all agents have the same valuation function over bundles, then an egalitarian-welfare-optimal allocation, after suitably reallocating some items, is EF1.
These existence results require only that agents’ valuations are monotonic (they need not be additive), and in addition, ensure that the constructed allocation satisfies the maximin share guarantee (see Appendix A.1). Moreover, the fairness guarantee of our algorithms is slightly stronger than the standard notion of EF1: in the returned allocations, envy can be avoided by removing just an outer item – one whose removal leaves the envied bundle connected. Computationally speaking, all our existence results are constructive in the weak sense that an EF1 allocation can be found by iterating through all connected allocation (this stands in contrast to cake-cutting where we cannot iterate through all possibilities). While we know of no faster algorithms to obtain an EF1 or EF2 allocation in the cases where we appeal to Sperner’s lemma, our other procedures (for two or three agents, or for identical valuations) can all be implemented efficiently to produce a fair allocation in polynomial time. We summarize our results concerning paths in Table 1.
In simultaneous and independent work, Oh et al. (2019) designed protocols to find EF1 allocations in the setting without connectivity constraints, aiming for low query complexity. They found that adapting cake-cutting protocols to the setting of indivisible items arranged on a path is an especially potent way to achieve low query complexity. This led them to also study a discrete version of the cut-and-choose protocol which achieves connected EF1 allocations for two agents, and they found an alternative proof that an EF1 allocation on a path always exists with identical valuations. They also present a discrete analogue of the Selfridge–Conway procedure which, for three agents with additive valuations, produces an allocation of a path into bundles that have a constant number of connected components. However, they do not study connected allocations on graphs that are not paths, and they do not consider the case of (non-identical) general valuations with more than two agents.
A recurring theme in our algorithms is the specific way that the moving knives from cake-cutting are rendered in the discrete setting. While one might expect knives to be placed over the edges of the path, and ‘move’ from edge to edge, we find that this movement is too ‘fast’ to ensure EF1 (see also footnote 5 regarding EF2). Instead, our knives alternate between hovering over edges and items. When a knife hovers over an item, we imagine the knife’s blade to be ‘thick’: the knife covers the item, and agents then pretend that the covered item does not exist. These intermediate steps are useful, since they can tell us that envy will vanish if we hide an item from a bundle.
What about graphs other than paths? Our existential results for paths immediately generalize to traceable graphs (those that contain a Hamiltonian path), since we can run the algorithms pretending that the graph only consists of the Hamiltonian path. For the two-agent case, we completely characterize the class of graphs that guarantee the existence of EF1 allocations: Our discrete cut-and-choose protocol can be shown to work on all graphs that admit a bipolar numbering, which exists if and only if the biconnected components (blocks) of can be arranged in a path. By constructing counterexamples, we prove that no graph failing this condition (for example, a star) guarantees EF1, even for identical, additive, binary valuations. For the case of three or more agents, it is a challenging open problem to characterize the class of graphs guaranteeing EF1 (or even to find an infinite class of non-traceable graphs that guarantees EF1).
Preliminaries
We say that the agents have identical valuations if, for all and every bundle , we have . A valuation function is additive if for each bundle . Many examples in this paper will use identical additive valuations, and will take to be a path. In this case, we use a shorthand to specify these examples; the meaning of this notation should be clear. For example, we write “2–1–3–1” to denote an instance with four items arranged on a path, and where , …, for each . For such an instance, an allocation will be written as a tuple, e.g., (2, 1–3–1) denoting an allocation allocating bundles and , noting that with identical valuations it does not usually matter which agent receives which bundle.
An allocation is envy-free if for every pair of agents, that is, if every agent thinks that their bundle is at least as good as any other bundle in the allocation. It is well-known that an envy-free allocation may not exist (consider two agents and one good). The main fairness notion that we study is a version of envy-freeness up to one good (EF1), a relaxation of envy-freeness introduced by Budish (2011), adapted to the model with connectivity constraints. This property states that an agent will not envy another agent after we remove some item from ’s bundle. Since we only allow connected bundles in our set-up, we may only remove an item from if removal of this item leaves the bundle connected.
An allocation satisfies EF1 if, for any pair of agents, either or there is a good such that is connected and .
In the instance 2–1–3–1 for two agents, the allocation (2–1, 3–1) is EF1, since the left agent’s envy can be eliminated by removing the item of value 3 from the right-hand bundle. However, the allocation (2, 1–3–1) fails to be EF1 according to our definition, since eliminating either outer good of the right bundle does not prevent envy.This example shows that our definition is strictly stronger than the standard definition of EF1 without connectivity constraints. In the instance 2–1–3–1, considered without connectivity constraints, the allocation (2, 1–3–1) does satisfy EF1 since in the standard setting we are allowed to remove the middle item (with value 3) of the right bundle.
A graph guarantees EF1 for agents if, for all possible monotonic valuations for agents, there exists some connected allocation that is EF1. A graph guarantees EF1 for agents and a restricted class of valuations if, for all allowed valuations, a connected EF1 allocation exists.
Thus, an allocation satisfies EF1 if and only if for any pair of agents.
As we show in the appendix in Example A.5, allocations satisfying a strengthened version of EF1 called envy-freeness up to the least good (EFX) (Caragiannis et al., 2019) may not exist on a path.
Given an ordered sequence of the vertices , and with , we write for the subsequence from to , so . With a little abuse of notation, we often identify a subsequence with the bundle of the corresponding vertices. Let be the subsequence of vertices strictly left of and be the subsequence of vertices strictly right of . When graph is a path, we always implicitly assume that its vertices are numbered from left to right according to the order they appear along the path, so that the set of the edges of is . Each connected bundle in the path clearly corresponds to a subpath or subsequence of the vertices. A Hamiltonian path of a graph is a path that visits all the vertices of the graph exactly once. A graph is traceable if it contains a Hamiltonian path.
EF1 existence for two agents
In cake-cutting for two agents, the standard way of obtaining an envy-free allocation is the cut-and-choose protocol: Alice divides the cake into two equally-valued pieces, and Bob selects the piece he prefers; the other piece goes to Alice. The same strategy almost works in the indivisible case when items form a path; the problem is that Alice might not be able to divide the items into two exactly equal pieces. Instead, we ask Alice to divide the items into pieces that are equally valued “up to one good”. The formal version is as follows. For a sequence of vertices and an agent , we say that is the lumpy tie over for agent if is the smallest index such that
For example, when has additive valuations 1–3–2–1–3–1, then the third item (of value 2) is the lumpy tie for , since and . The lumpy tie always exists: taking to be the smallest index such that (which exists as the inequality holds for by monotonicity), the first part of (3.1) holds. If , the second part of (3.1) is immediate by monotonicity. If , then since is minimal, we have as required.
Using lumpy ties, our discrete version of the cut-and-choose protocol is specified as follows.
The discrete cut-and-choose protocol for agents on a sequence proceeds as follows:
Step 1. Alice selects her lumpy tie over .
Step 2. Bob chooses a weakly preferred bundle among and .
Step 3. Alice receives the bundle of all the remaining vertices, including .
Intuitively, the protocol allows Alice to select an item that she will receive for sure, with the advice that the two pieces to either side of should have almost equal value to her. Then, Bob is allowed to choose which side of he wishes to receive. In our example with valuations 1–3–2–1–3–1, Alice selects the lumpy tie of value 2, then Bob chooses the bundle 1–3–1 to the right and receives it, and Alice receives the bundle 1–3–2. The result is EF1. This is true in general, and also if valuations are not identical.
When is a path and there are agents, the discrete cut-and-choose protocol yields an EF1 allocation.
Clearly, the protocol returns a connected allocation. The returned allocation satisfies EF1: Bob does not envy Alice up to item , since Bob receives his preferred bundle among and . Also, by (3.1), Alice does not envy Bob, since Alice either receives the bundle which she weakly prefers to Bob’s bundle , or she receives the bundle , which she weakly prefers to Bob’s bundle . ∎
Proposition 3.2 implies that an EF1 allocation always exists on a path. Hence, an EF1 allocation exists for every traceable graph : simply use the discrete cut-and-choose protocol on a Hamiltonian path of . In fact, the discrete cut-and-choose protocol works on a broader class of graphs: We only need to require that the vertices of the graph can be numbered in a way that the allocation resulting from the discrete cut-and-choose protocol is guaranteed to be connected. Since the protocol always partitions the items into an initial and a terminal segment of the sequence, such a numbering needs to satisfy the following property.
A bipolar numbering of a graph is an ordering of its vertices such that for all , the sets and are connected in .
In a slightly different context, bipolar numberings are known as -numberings and turn out to be useful in algorithms for testing planarity and for graph drawing (Lempel et al., 1967; Even and Tarjan, 1976; Tarjan, 1986). The more common (equivalent) definition is phrased to say that a numbering is bipolar if, for every , the vertex has a neighbor that appears earlier in the sequence, and a neighbor that appears later in the sequence.
Clearly, every traceable graph has a bipolar numbering, since we can just use a Hamiltonian path. However, there are also non-traceable graphs that admit a bipolar numbering. Figure 1 shows some examples.
When there are agents, then the discrete cut-and-choose protocol run on a bipolar numbering of yields an EF1 allocation.
The discrete cut-and-choose protocol returns an allocation whose bundles are either initial or terminal segments of the ordered sequence . By definition of a bipolar numbering, such an allocation is connected, and it is EF1 by the same argument as in Proposition 3.2. ∎
It is clear that the discrete cut-and-choose protocol cannot be extended to graphs other than those admitting a bipolar numbering. However, it could be that a different protocol is able to produce EF1 allocations on other graphs. In the remainder of this section, we prove that this is not the case: for agents, a connected graph guarantees the existence of an EF1 allocation if and only if it admits a bipolar numbering. This completely characterizes the class of graphs that guarantee EF1 existence in the two-agent case.Note that no non-trivial disconnected graph guarantees EF1 for two agents: If is disconnected, take a connected component with at least two vertices. Let both agents have additive valuations that value each item in at 1, and value items outside of at 0. Then, in a connected allocation, all items in must go to a single agent, since the other agent needs to receive items from another connected component. This induces envy in the other agent that is not bounded by one good.
For a different number of agents, the class of graphs guaranteeing an EF1 allocation will be different. In particular, the star with three leaves does not guarantee an EF1 allocation for two agents (as it does not have a bipolar numbering, see below), but one can check that this star does guarantee an EF1 allocation for three or more agents (see Example A.6 in the appendix).
Based on a known characterization of graphs admitting a bipolar numbering, we characterize this class in terms of forbidden substructures. We then show that these forbidden structures are also forbidden for EF1: if a graph contains such a structure, we can exhibit an additive valuation profile for which no EF1 allocation exists.
As a simple example, consider the star with three leaves, which is the smallest connected graph that does not have a bipolar numbering.
Take two agents with identical additive valuations that value each item at 1. Any connected allocation must allocate three items to one agent, and a single item to the other agent. Then the latter agent envies the former agent, even up to one good. This star is an example of a forbidden substructure called a trident, which takes one of two forms, illustrated in Figure 2.
there is a vertex whose removal from leaves three or more connected components (a type I trident), or
there are subgraphs of such that (i) are vertex-disjoint, (ii) each contains at least two vertices, (iii) has exactly one contact vertex in common with , , and (iv) for , removal of vertex from disconnects from (hence from the other two ) in (a type II trident).
We will prove that a graph fails to admit a bipolar numbering, and fails to guarantee EF1 for two agents, if and only if contains a trident. To reason about these structures, it is useful to consider the standard concept of the block decomposition of a graph (see, e.g., the textbook Bondy and Murty, 2008, Sec. 5.2).
A decomposition of a graph is a family of edge-disjoint subgraphs of such that where is the set of edges of . A vertex is called a cut vertex of a graph if removing it increases the number of connected components of . A graph is biconnected if is connected and does not have a cut vertex. A block of is a maximal biconnected subgraph of .
Equivalently, a block of a graph can be defined as a maximal subgraph of where each pair of vertices lie on a common cycle (Bondy and Murty, 2008). Given a connected graph , we define a bipartite graph with bipartition , where is the set of blocks of and is the set of cut vertices of ; a block and a cut vertex are adjacent in if and only if includes . Since every cycle of a graph is included in some block, the graph is a tree:
any two blocks of have at most one cut vertex in common;
the set of blocks forms a decomposition of ; and
Thus, for a connected graph , we call the block tree of . It turns out that admits a bipolar numbering if and only if is a path. For example, the graphs shown in Figure 1 all have their blocks arranged in a path (so that is a path), as shown in Figure 3.
A graph admits a bipolar numbering if its block tree is a path.
Lempel et al. (1967) show that admits a bipolar numbering if there are such that adding an edge to makes it biconnected. If is a path, let and be the leaf blocks at the ends of the path . Take any and . If we add the edge to , the graph becomes biconnected. Hence, admits a bipolar numbering. ∎
There is a linear-time algorithm based on depth-first search to construct a bipolar numbering for any biconnected graph (Even and Tarjan, 1976; Tarjan, 1986), and one can also calculate the block tree of a given graph in linear time (Hopcroft and Tarjan, 1973). Thus, in linear time, we can compute a bipolar numbering of a graph or report that none exists. Clearly, given a bipolar numbering, the discrete cut-and-choose protocol can also be run in linear time.
Next, we show that if is not a path, then cannot guarantee EF1. The proof constructs explicit counter-examples, which have a very simple structure. We say that additive valuations are binary if for every .
If the block tree of is not a path, then contains a trident.
If contains a trident, then there exist identical, additive, binary valuations over for two agents such that no connected allocation is EF1.
If is not a path, then it contains a vertex with at least three neighbors, and thus either
there is a cut vertex adjacent to three blocks , , and ; or
there is a block adjacent to three different cut vertices , , and .
Note that in both cases, all blocks contain at least two vertices each, as maximality guarantees that a block in a connected graph never consists of a single vertex, unless itself has only one vertex. Thus, in case (a), contains a type I trident. In case (b), the cut vertices , , and serve as the contact vertices in the earlier definition of type II tridents and are adjacent to blocks that serve as the subgraphs , , and . This proves the first part.
To prove the second part, we construct identical additive valuations that do not admit an EF1 allocation. If contains a type I trident, let be the corresponding cut vertex, and choose vertices from each of three different connected components that remain after is deleted from . The two agents have utility for each of , , , and , and for the remaining vertices. Now take any connected allocation . One of the bundles, say , includes the cut vertex . Then can contain at most one of the vertices , , , since is connected and does not contain yet any path between distinct and goes through . Hence . Now, the bundle contains and at least two of , , , so . Thus, the allocation is not EF1.
Suppose contains a type II trident consisting of subgraphs with contact vertices . Then for choose a vertex from . The two agents have utility for each of , , , , , and , and for the remaining vertices. Now take any connected allocation . One of the bundles, say , contains at least two contact vertices and the other contains at most one contact vertex . Say that . Now, has at least three connected components, and since is connected, it must be contained in one of these components. But each component contains at most two vertices with utility 1, so . Since there are six vertices with utility 1 in total, . Thus, the allocation is not EF1. ∎
Combining these results, we obtain the promised characterization.
The following conditions are equivalent for every connected graph :
guarantees EF1 for two agents with identical, additive, binary valuations.
The implication follows from Proposition 3.4 which shows that the discrete cut-and-choose protocol yields a connected EF1 allocation when run on a bipolar numbering. The implication is immediate. The implications and follow from Lemma 3.9 which proves the contrapositives. Finally, follows from Lemma 3.8. ∎
The equivalence is noteworthy and perhaps surprising: It is often easier to guarantee fairness when agents’ valuations are identical, yet in terms of the graphs that guarantee EF1 for two agents, there is no difference between identical and non-identical valuations. Intriguingly, even for more than two agents, we do not know of a graph which guarantees EF1 for identical valuations, but fails it for non-identical valuations.
EF1 existence for three agents: A moving-knife protocol
We will now consider the case of three agents. Stromquist (1980) designed a protocol that results in an envy-free contiguous allocation of a divisible cake. We now give a brief outline of the protocol, illustrated by Figure 4.
A referee holds a sword over the cake. Each of the three agents holds their own knife over the portion of the cake to the right of the sword, positioning it so that this portion is divided into two pieces they judge to have the same value. Now, initially, the sword is at the left end of the cake. It starts moving at a constant speed from left to right, while the agents continuously move their knives to keep dividing the right-hand portion into equally-valued pieces. At some point (when the leftmost piece becomes valuable enough), one of the agents shouts “cut”, and the cake will be cut twice: once by the sword, and once by the middle one of the three knives. Agents shout “cut” as soon as the left piece is a highest-valued piece among the three. The agent who shouts receives the left piece. The remaining agents each receive a piece containing their knife. The resulting allocation is envy-free, since the agent receiving the left piece prefers it to the other pieces, and the other agents who are not shouting receive at least half the value of the part of the cake to the right of the sword.
Let be a path, . There are several difficulties in translating Stromquist’s continuous procedure to the discrete setting for . First, agents need to divide the piece to the right of the sword in half, and this might not be possible exactly given indivisibilities; but this can be handled using our concept of lumpy ties from Section 3. Next, when the sword moves one item to the right, the lumpy ties of the agents may need to jump several items to the right, for example, because the new member of the leftmost bundle is very valuable. To ensure EF1, we will need to smoothen these jumps, so that the middle piece grows one item at a time. Also, it will be helpful to have the sword move in half-steps: it alternates between being placed between items (so it cuts the edge between the items), and being placed over an item, in which case the sword covers the item and agents ignore that item. Finally, while the sword covers an item, we will only terminate if at least two agents shout to indicate that they prefer the leftmost piece; this will ensure that there is an agent who is flexible about which of the bundles they are assigned. The algorithm moves in steps, and alternates between moving the sword, and updating the lumpy ties.
In our formal description of the algorithm, we do not use swords and knives. Instead, we maintain three bundles , , and that can be seen as resulting from a certain configuration this cutting implements. We also need a few definitions. For a subsequence of vertices and an agent , recall that () is the lumpy tie over for if is the smallest index such that
Here, the definitions of and apply to the subsequence . The lumpy tie always exists by the discussion after equation (3.1). Each of the three agents has a lumpy tie over ; a key concept for us is the median lumpy tie which is the median of the lumpy ties of the three agents, where the median is taken with respect to the ordering of . We say that is a left agent (respectively, a middle agent or a right agent) over if the lumpy tie for appears strictly before (respectively, is equal to, or appears strictly after) the median lumpy tie. Note that by definition of the median, there is at most one left agent, at most one right agent, and at least one middle agent. Suppose that the median lumpy tie over the subsequence is , and let be an agent. Then using the definitions of lumpy tie and left/right agents, we find that
Given the median lumpy tie over , and a two-agent set , we define to be the allocation of the items in to such that
if is a left agent and is a right agent, then receives and receives ;
if is a middle agent, then agent receives ’s preferred bundle among and , and agent receives the other bundle along with .
Using (4.1) and (4.2), we see that is an EF1 allocation:
Let and let be the median lumpy tie over . Then is an EF1 allocation of the items in to . Further, each agent in weakly prefers their bundle to and .
The discrete moving-knife protocol for agents on a sequence proceeds as follows. We say that an agent is a shouter if and .
The moving-knife protocol finds an EF1 allocation for three agents and runs in time, when is a path.
The algorithm terminates and returns an allocation, since the bundle grows throughout the algorithm until eventually, at least two agents will think that is a best bundle and thus will shout and thereby terminate the algorithm. We will now consider every possible way that the algorithm could have terminated, and show that the resulting allocation is EF1.
Step 4(a). We first prove that if is a shouter who did not shout in the previous step, then
In the previous step (which was either Step 3 or Step 4), the middle bundle was and the right bundle was . (While Step 4 allows for the possibility that the middle and right bundles are not changed in Step 4, this is not the case if we enter Step 4(a): if the bundles are unchanged and two agents shout, these agents already shouted in Step 3, contradicting that we did not terminate then.) Since did not shout with the middle and right bundles of the previous step, we have
Since is a shouter, , so that the first case is impossible by monotonicity. Hence , showing (4.5), when combined with .
Agent does not envy others up to one good:
EF2 existence for any number of agents
For two or three agents, we have seen algorithms that are guaranteed to find an EF1 allocation on a path (and on traceable graphs). Both algorithms were adaptations of procedures that identify envy-free divisions in the cake-cutting problem. For the case of four or more agents, we face a problem: there are no known procedures that find connected envy-free division in cake-cutting if the number of agents is larger than three. However, in the divisible setting, a non-constructive existence result is known: Su (1999) proved, using Sperner’s lemma, that for any number of agents, a connected envy-free division of a cake always exists. One might try to use this result as a black box to obtain a fair allocation for the indivisible problem on a path: Translate an indivisible instance with additive valuations into a divisible cake (where each item corresponds to a region of the cake), obtain an envy-free division of the cake, and round it to get an allocation of the items. Suksompong (2019) followed this approach and showed that the result is an allocation where any agent ’s envy is at most , where is the maximum valuation for a single item.
In this section, rather than using Su’s (1999) result as a black box, we directly apply Sperner’s lemma to the indivisible problem. This allows us to obtain a stronger fairness guarantee: We show that on paths (and on traceable graphs), there always exists an EF2 allocation.To see that EF2 is a stronger property than bounding envy up to , consider a path of four items and two agents with additive valuations –––. The allocation –– is not EF2, but the first agent has an envy of . An allocation is EF2 if any agent’s envy can be avoided by removing up to two items from the envied bundle. Again, we only allow removal of items if this operation leaves a connected bundle.
An allocation satisfies EF2 if, for any pair of agents, either , or there are two goods such that is connected and .
Let us first give a high-level illustration with three agents of how Sperner’s lemma can be used to find low-envy allocations.
Given a path , the family of connected partitions of can naturally be arranged as the vertices of a subdivided simplex, as in Figure 5.
For each of these partitions, each agent labels the corresponding vertex by the index of a bundle from that partition that most-prefers. For example, the top vertex will be labelled as “index 1” by all agents, since they all most-prefer the leftmost bundle in . Now, Sperner’s lemma will imply that at least one of the simplices (say the shaded one) is “fully-labeled”, which means that the first agent most-prefers the leftmost bundle at one vertex, the second agent most-prefers the middle bundle at another vertex, and the third agent most-prefers the rightmost bundle at the last vertex. Notice that the partitions at the corner points of the shaded simplex are all “similar” to each other (they can be obtained from each other by moving only one item). Hence, we can “round” the corner-partitions into a common allocation , say by picking one of the corner partitions arbitrarily and then allocating bundles to agents according to the labels. The resulting allocation has the property that any agents’ envy can be eliminated by moving at most one good.One can generalize this argument to show that on paths, there exists an allocation satisfying a weak form of EF1: for any , we have for some items such that and are connected. For additive valuations, this implies that envy is bounded by , which is the result of Suksompong (2019).
The argument sketched above does not yield an EF1 nor even an EF2 allocation. Intuitively, the problem is that the connected partitions at the corners of the fully-labeled simplex are “too far apart”, so that no matter how we round the corner partitions into a common allocation , some agents’ bundles will have changed too much, and so we cannot prevent envy even up to one or two goods. In the following, we present a solution to this problem, by considering a finer subdivision: we introduce knives which move in half-steps (rather than full steps), and which might ‘cover’ an item so that it appears in none of the bundles. The result is that the partial partitions in the corners of the fully-labeled simplex are closer together, and can be successfully rounded into an EF2 allocation .
In our approach, we use a specific triangulation (Kuhn’s triangulation, Kuhn, 1960). This triangulation has the needed property that the partitions at the corners of sub-simplices are close together, and adjacent partitions can be obtained from each other in a natural way. While this type of triangulation has also been used in cake-cutting, e.g., by Deng et al. (2012), there it was only used to speed up algorithms (compared to the barycentric subdivision used by Su (1999)), not to obtain better fairness properties.
For each main vertex of the simplex, assigns color to : ; and
for any vertex belonging to the -face of not containing .
Sperner’s lemma states that if is a proper labeling function, then there exists an elementary simplex of whose vertices have all different labels.
We will consider a generalized version of Sperner’s lemma, proved, for example, by Bapat (1989). In this version, there are labeling functions , and we are looking for an elementary simplex that is fully-labeled for some way of assigning labeling functions to vertices, where we must use each labeling function exactly once. The formal definition is as follows.
The generalized version of Sperner’s lemma that we consider, taken from Bapat (1989), guarantees the existence of a fully-labeled simplex.
Let be a triangulation of an -simplex , and let be proper labeling functions. Then there is a fully-labeled simplex of .
2 Existence of EF2 allocations
Consider the -simplexThe simplex is affinely equivalent to the standard -simplex via . In these coordinates, is the length of the -th piece (times ).
where is the -th unit vector.
Property (5.2) means that, if we visit the knife positions at the corners of an elementary simplex in the listed order, then at each step exactly one of the knives moves by half a step, and each knife moves only at one of the steps.
If there are several most-preferred bundles in , ties can be broken arbitrarily. However, we insist that the index always corresponds to a non-empty bundle (this can be ensured since always contains a non-empty bundle, and is monotonic).
The labeling functions are proper. For each , the main vertex of the simplex has the form , where the first entries are and the rest are . In the partition , the bundle contains all the items, so is most-preferred (since is monotonic and by our tie-breaking), and so . Further, any vertex belonging to the -face of not containing satisfies , and thus in partition , bundle is empty, hence is not selected, and so .
The fully-labeled elementary simplex corresponds to a sequence of partial partitions of , which we call the Sperner sequence, where for each . An example of a Sperner sequence is shown in Figure 6. From the labeling, for each agent , since , the bundle with index in the partition is a best bundle for :
Now, for each , we define the basic bundle to be the bundle of items that appear in the -th bundle of every partition in the Sperner sequence. The set of basic bundles is a partial partition. Let us analyze the items between basic bundles.
From (5.2), each of the knives moves exactly once, by half a step, while passing through the Sperner sequence . Thus, the numbers take on two different values, one of which is integral and the other half-integral. We write for the integral value (so for some ), and call a boundary item. The -th knife covers the item in some, but not all, of the partial partitions in the Sperner sequence. Now, there are two cases:
and for some , so that never occurs in the -th bundle in the Sperner sequence but sometimes occurs in the -th bundle, or
and for some , so that sometimes occurs in the -th bundle in the Sperner sequence but never occurs in the -th bundle.
Since is sometimes covered by a knife, it is not part of any basic bundle. Note that
We now construct a complete partition of the path into the bundles which are defined as follows:
Thus, the bundle contains the basic bundle , plus all of the boundary items or that occur in the -th bundle at some point of the Sperner sequence. Precisely, for each boundary item , , the item is placed in bundle in case (a) above, and it is placed in bundle in case (b). Thus, every item is allocated to exactly one bundle.
We first show that the partition is such that agents’ expectations about the value of the bundles are approximately correct (up to two items):
This follows by monotonicity of , since by (5.4).
Now, based on the partition, we define an allocation by for each agent . Then satisfies EF2: For any pair of agents, we have
Hence, we have proved the main result of this section:
On a path, for any number of agents with monotone valuation functions, a connected EF2 allocation exists.
EF1 existence for four agents
We have seen that Sperner’s lemma can be used to show EF2 existence for any number of agents. Why does our proof in the previous section only establish EF2, and not EF1? The reason is that agents’ expectations about the contents of a bundle might differ by up to two goods from what the bundle will actually contain. In the notation of the previous section, an agent may be presented with a partial partition where the -th bundle is the basic bundle, i.e., . The agent then selects their favorite bundle from , implicitly assuming that the -th bundle in the rounded partition will also equal , i.e., that . However, it may happen that in fact , and then envies the agent who receives bundle by a margin of two goods.
For four agents, we can adapt our argument to achieve EF1. To do this, we both change the way we round the Sperner sequence into an allocation, and define new labeling functions that better anticipate how a partial partition will be rounded into the final allocation. In this way, agents’ expectations about bundles can only be wrong up to one good. In crude terms, agents will expect that each of the two interior bundles will be assigned at least one of the boundary items, and the rounding method ensures that this will indeed happen.
Thus, for an interior bundle , if both the items and to either side of the bundle are covered by a knife, an agent expects that one of these items (the less-valuable one) will be put into bundle of the final rounded allocation (recall the definition of in equation (2.1)). For exterior bundles, (resp. ), if the item (resp. ) is not covered by a knife, the agent does not expect the interior item (next to the knife) to belong to the final bundle , even though it belongs to the observed bundle . Otherwise, the virtual allocations are equal to , so the agent expects that . Later, we show that these expectations are correct up to one item.
One can check that these valuation functions are still proper.
To shorten a case distinction, we assume that , i.e., that the boundary item appears in the second but not in the third bundle in the Sperner sequence. This assumption is without loss of generality, since by the left-right symmetry of the definition of virtual valuations, if necessary we can reverse the path and consider the same elementary simplex with vertices ordered in reverse (); it will still be fully-labeled.
With this assumption made throughout the rest of the argument, we now round the Sperner sequence into a complete partition of defined as follows:
Depending on the placement of the boundary item , we will either have or ; and either or . With these choices, each interior bundle () receives at least one of the boundary items adjacent to it.
The main part of showing that the partition can be made into an EF1 allocation is an analogue of (5.5), which shows that agents’ expectations about their bundle are approximately correct. The following analogous proposition is proved by case analysis.
For each and each , we have .
We consider each bundle separately.
so that , and so , or
so that , and so .
In either case, , so .
Suppose , and suppose that
Otherwise . Since (because ), we have that is either or . So since .
Suppose , and suppose that .
Otherwise . First note that : this is because both and appear in the second bundle of the Sperner sequence (by the case and the wlog assumption), so that and . Since at least one of or is not integral, at least one of or must be in . Hence is either or or . In each case, since .
Otherwise, since does not appear in (by our wlog assumption), we have that is either or . Now since .
so , or
so .
In either case, .∎
Now again, based on the partition, we can define an allocation by for each agent . Thus, each agent receives the bundle in the complete partition corresponding to ’s most-preferred index . We prove that satisfies EF1: For any pair of agents, we have
Hence, we have proved the main result of this section:
On a path, for four agents with monotone valuation functions, a connected EF1 allocation exists.
For five or more agents, we were not able to construct labeling functions and a rounding scheme which ensure that agents’ expectations are correct up to one item. In the four-agent case, each interior bundle is adjacent to an exterior bundle (which helps in the construction), but for five agents, there is a middle bundle whose neighboring bundles are also interior.
EF1 existence for identical valuations
A special case of the fair division problem is the case of identical valuations, where all agents have the same valuation for the goods: for all agents and every bundle , we have . We then write for the common valuation of bundle . The case of identical valuations often allows for more positive results and an easier analysis. Indeed, we can prove that, for identical valuations and any number of agents, an EF1 allocation connected on a path is guaranteed to exist and can be found in polynomial time.
Now, one might guess that in the restricted case of identical valuations, egalitarian allocations are EF1. However, the leximin-optimal connected allocation may fail EF1: Consider a path with five items and additive valuations 1–3–1–1–1 shared by three agents. The unique leximin allocation is (1, 3, 1–1–1), which induces envy even up to one good. The same allocation also uniquely maximizes Nash welfare, so the Nash optimum also does not guarantee EF1. In contrast, when requiring bundles to satisfy matroid constraints (rather than connectivity constraints), the Nash optimum is EF1 with identical valuations (Biswas and Barman, 2018).
Maximizing an egalitarian objective seemed promising because it ensures that no-one is too badly off, and therefore has not much reason to envy others. The problem is that some bundles might be too desirable. To fix this, we could try to reallocate items so that no bundle is too valuable. This is exactly the strategy of our algorithm: It starts with a leximin allocation, and then moves items from high-value bundles to lower-value bundles, until the result is EF1. In more detail, the algorithm identifies one agent who is worst-off in the leximin allocation, and then adjusts the allocation so that does not envy any other bundle up to one good. The algorithm does this by going through all bundles in the allocation, outside-in, and if envies a bundle even up to one good, it moves one item from inwards (in ’s direction), see Figure 7. As we will show, a key invariant preserved by the algorithm is that the value of never increases, and remains worst-off. Thus, since does not envy others up to one good, the allocation at the end is EF1.
Formally, a leximin allocation is an allocation which maximizes the lowest utility of an agent; subject to that it maximizes the second-lowest utility, and so on. In particular, if the highest achievable minimum utility is , then the leximin allocation is such that every agent has utility at least , and the number of agents with utility exactly is minimum.
For identical valuations on a path, Algorithm 1 finds an EF1 allocation.
For an allocation , write for the minimum utility obtained in , and write for the set of agents (losers) who obtain this utility. For the leximin allocation obtained at the start of the algorithm, write and . Note that by leximin-optimality, for every allocation we must have , and if then . Let be the agent fixed at the start of the algorithm.
Claim 1. Throughout the algorithm, and .
The claim is true before we start the for-loops. Suppose the claim holds up until some iteration of the first for-loop, and we now move an item from to , obtaining the new bundles and in the new allocation . Then , where the strict inequality holds by the if- and until-clauses. Since no agent other than has become worse-off in , it follows that . As noted, by optimality of , we have . Hence . Thus, by optimality of , we have . Because agent has not become a loser (since as shown before) and no other agent has become a loser, we have . Thus , as required. The second for-loop is handled similarly.
Claim 2. After both for-loops terminate, agent does not envy any agent up to one good.
For any , agent does not envy up to one good immediately after the relevant loop has handled , and at no later stage of the algorithm does change.
It follows that the allocation returned by the algorithm is EF1: By Claim 1, we have , so that for all . By Claim , agent does not envy any other agent up to one good, so that for all . Hence, for all , we have , that is, no agent envies another agent up to one good. ∎
Algorithm 1 can be implemented to run in polynomial time, because with identical valuations, one can use dynamic programming to find a leximin allocation in time , and the remainder of Algorithm 1 takes time , as each item is moved at most times. A slight speed-up can be achieved by observing that the proof of Theorem 7.1 only needed that the initial allocation optimizes the egalitarian welfare and minimizes the cardinality of the set of losers. Such an allocation can be found by dynamic programming in time , and, after some refinements on the implementation of the dynamic programming approach, the running time can be lowered to (see Algorithm 2 in the appendix).
The reallocation stage of our algorithm bears some similarity to Suksompong’s (2019, Thm. 2) proof that a -equitable allocation exists. Oh et al. (2019, Lem. C.2) proved independently, using an inductive argument, that EF1 allocations on a path exist for identical valuations, and can be found in polynomial time. More recently, Misra et al. (2021) presented another algorithm for this task in the context of aiming for connected allocations satisfying equitability up to one good (EQ1).
Concluding remarks
We have studied the existence of EF1 allocations under connectivity constraints imposed by an undirected graph. We have shown that for two, three, or four agents, an EF1 allocation exists if the graph is traceable and if the agents have monotone valuations. For any number of agents, we also proved that traceable graphs guarantee the existence of an EF2 allocation. The latter two results are proved using Sperner’s lemma, which has been used many times in economics and game theory to show the existence of equilibria and fair allocations (Scarf, 1982; Su, 1999). Unusually, in our application we were able to use Sperner’s lemma in a setting with indivisibilities. We leave as an open question whether EF1 allocations on a path exist for five and more agents.
Our procedures for identical valuations as well as for the cases of two or three agents can be efficiently implemented, so that we can find EF1 allocations in polynomial time. For our results based on Sperner’s lemma, it is not clear how to compute EF1 and EF2 allocations efficiently. On the other hand, as is the case with the computation of other structures whose existence follows from Sperner’s lemma (such as Nash equilibrium or more broadly PPAD problems), our proof based on Sperner’s lemma allows for a “path-following” algorithm through the subdivided simplex. This type of algorithm has been observed to be practically efficient in other contexts (Scarf, 1967), and may also be efficient in our allocation setting on practical instances. Formally, we do not know of a computational complexity result for the problem of finding EF1 or EF2 allocations on a path. For divisible cake-cutting, it is PPAD-complete to find an -approximate envy-free allocation (Deng et al., 2012), implying that it is unlikely that there is an algorithm that runs in time polynomial in and . However, the PPAD-hardness proof of Deng et al. (2012) uses non-monotone valuations, and thus does not easily extend to our setting, where we assume monotone valuations. For general graphs, Deligkas et al. (2021, Thm. 2) recently showed that deciding whether an EF1 allocation exists on a given instance is NP-hard. Their result applies when the underlying graph is a star, and holds even if the agents have binary additive valuations.
Regarding strategic aspects, existing results from the literature imply that there are no EF1 allocation rules which are strategyproof.In this paragraph, we follow the exposition of Peters (2019, Chapter 12). Amanatidis et al. (2017a) characterized all strategyproof allocation mechanisms when there are agents with additive valuations over indivisible items (with no connectivity constraints). They then proved that no mechanism in their class guarantees EF1 (Amanatidis et al., 2017a, Sec. 4.2) for items. It follows that there is also no strategyproof EF1 mechanism that respects connectivity constraints. We can also obtain such a result by reduction from divisible cake-cutting. Fix some , and suppose we had a mechanism for allocating a path of items among agents while being strategyproof and EF1. Then we can use this mechanism as a mechanism for cake-cutting: Given continuous agent valuations over the interval $MM\varepsilon\varepsilon\varepsilon\varepsilon\varepsilon\varepsilonMn=2n=2m=5$ items on a line.
We gave a forbidden minor type characterization of all graphs that guarantee the existence of EF1 allocations for two agents. It is natural to also consider the case of more than two agents. However, there are several difficulties in extending the characterization result beyond two agents. First, one cannot generalize the notion of a bipolar ordering in a meaningful way; indeed, a tripolar ordering, requiring each initial, middle, and last segment to be connected in a given graph, reduces to the notion of a Hamiltonian path because every consecutive pair of such an ordering must be connected. Second, our two-agent characterization heavily depends on having a simple envy-free protocol: the cut-and-choose procedure. Unfortunately, for three agents, the known protocol becomes much more complex (see Section 4), and for four agents, there is no known explicit protocol that constructs an envy-free division. Nevertheless, Igarashi and Zwicker (2021) recently proposed a forbidden minor type conjecture for the continuous variant of our problem. It would be interesting to explore the discrete version of their conjecture.
In the setting without connectivity constraints, it is possible to achieve efficiency and fairness simultaneously: the maximum Nash welfare solution yields an allocation that is both EF1 and Pareto-optimal (Caragiannis et al., 2019). In our model, this is unfortunately impossible, since on a path there are instances where there is no connected allocation which is EF1 and Pareto-optimal, and it is NP-hard to decide whether such an allocation exists (Igarashi and Peters, 2019).
In this paper, we have only considered goods, with monotonic valuations. The setting where some or all items are undesirable (so-called chores) is also of interest (Aziz et al., 2019; Bogomolnaia et al., 2016; Meunier and Zerbib, 2019; Segal-Halevi, 2018; Bouveret et al., 2019; Höhne and van Stee, 2021). On a path, a connected allocation satisfying proportionality up to one good (PROP1) always exists (Aziz et al., 2019), but the existence of EF1 or EF2 allocations in this domain is open. For cake-cutting, when agents consider some parts of the cake undesirable, Sperner’s lemma does not directly produce a connected envy-free allocation (Segal-Halevi, 2018), but other methods can prove the existence of such allocations in most cases (Segal-Halevi, 2018; Meunier and Zerbib, 2019).
References
Appendix A Appendix
The maximin share guarantee of an agent is
where denotes the space of all partitions of into connected bundles. An allocation is a maximin share (MMS) allocation if for each agent . (Note that the maximum is taken only over connected partitions, so the MMS value could be lower than the standard definition from the model without connectivity constraints.) Bouveret et al. (2017) showed that an MMS allocation exists if the underlying graph is a tree. On the other hand, MMS allocations need not exist on a cycle (Bouveret et al., 2017; Lonc and Truszczynski, 2020) or on a complete graph (Kurokawa et al., 2018). The computational complexity of determining the existence of MMS allocations under several graph constraints has also been investigated (Greco and Scarcello, 2020).
Since we have seen that EF1 or EF2 allocations are guaranteed to exist on a path, it is natural to ask whether we can additionally require MMS: on a path, does there always exist an allocation that satisfies EF1 and MMS?
First, let us note that not every EF1 allocation is also MMS. For 3–1–1–1–3 and three agents, the MMS value is 3 via the partition (3, 1–1–1, 3), but the EF1 allocation (3–1, 1, 1–3) gives the middle agent a utility of only 1. In fact, one can show that this example is worst possible, for subadditive valuations. Valuations are subadditive if, for any bundles , we have . An allocation satisfies -MMS for some if for each agent . As MMS allocations need not exist in general, -MMS allocations have been widely investigated (Amanatidis et al., 2017b, 2018; Kurokawa et al., 2018).
For subadditive valuations, an EF1-allocation on a path guarantees 1/3-MMS.
Let be an EF1 allocation, write for all , and fix some agent . For each , let be an item such that . We show that .
Let be a partition of the items into bundles such that for each . Since there are bundles in but only items , there must be some bundle such that for all ; we show that .
Suppose for a contradiction that there are three distinct agents such that for . Since and the ’s are all intervals of a path, the middle interval must be completely contained in , that is, for some . Hence , contradicting the choice of . So intersects at most two bundles from other than . Thus, for some , we have , and thus by subadditivity,
Hence, we have , as required. ∎
Interestingly, using a similar proof, one can show that the two agents receiving the outer bundles of the path both get at least half of their MMS value. This is also tight; consider 1–1–2–2–1–1 for four agents, and the EF1 allocation (1,1–2,2–1,1).
If we do not restrict valuations to be subadditive, then EF1 does not guarantee -MMS for any : Consider a path of three items, and two agents with identical valuations defined so that if or , and otherwise. Then the MMS value is 1 via the partition (–, ), but the allocation (, –) is EF1 and gives the left agent utility 0.
For graphs that are not paths, Proposition A.1 does not hold. For a complete graph (i.e., in the absence of connectivity constraints), EF1 only implies -MMS (Caragiannis et al., 2019; Amanatidis et al., 2018).
While we have seen that EF1 on a path does not immediately imply MMS, it does imply MMS in many cases. The following lemma will be useful to show that the allocations produced by our arguments in the main text all satisfy the MMS guarantee.
Suppose there are agents, and the items are arranged on a path. Take any items , and define the bundles as follows:
Then for any agent , there is some such that .
Let be a connected partition of the items (ordered left-to-right) so that for all . Since there are bundles in but only items , there exists a bundle in that does not contain any . Writing , we see that there is some such that
Thus, we have so that . ∎
For a path, the EF1 allocations constructed by any of our methods guarantee MMS.
Discrete cut-and-choose protocol for two agents. Suppose Alice’s lumpy tie is . Then, using the definition of lumpy tie, a connected partition witnessing Alice’s MMS value is either or . At the end of the procedure, Alice receives either or . For either of these options, there is a bundle in and a bundle in which are weakly worse. So Alice receives a bundle that satisfies her MMS value. For Bob, he receives his preferred bundle among or . These two bundles are of the shape described in Lemma A.2 with , so Bob’s choice satisfies his MMS value.
Identical valuations. Algorithm 1 gives each agent a utility of at least . By their definitions, the MMS-value is the same as the optimal egalitarian welfare under identical valuations.
EF2 via Sperner’s lemma. For each agent , by Lemma A.2, there exists a basic bundle whose value is at least . We showed that the allocation is such that agent weakly prefers the bundle receives in to any basic bundle. Hence, is an MMS allocation.
EF1 for four agents via Sperner’s lemma. For each vertex of the full-labeled simplex , invoke Lemma A.2 with , , . By case-analysis one can check that for each , where the ’s are defined like in Lemma A.2. By Proposition 6.1, we have that . ∎
A.2 Example of an instance with no EFX allocation
An allocation satisfies EFX (Envy-freeness up to any outer good) if the envy is bounded up to the least valuable outer good, i.e., for any pair of agents, and for every good such that is connected, we have .
Consider the instance 2–3–1–3 for three agents. This instance admits no connected EFX allocation: It is clear that no allocation in which some bundle is empty satisfies EFX. In (2, 3, 1–3), the left agent envies the right agent even after removing the outer good of value 1; in (2, 3–1,3), the left agent envies the middle agent even after removing the outer good of value 1; and in (2–3, 1,3), the middle agent envies the left agent even after removing the outer good of value 3. One can also consider the instance 1–1–3–3 for two agents. ∎
A.3 Example of a non-traceable graph that guarantees EF1
Consider a star with three leaves. We will divide the graph among three agents. Consider the allocation where each agent chooses the most favorite leaf-vertex among the unallocated vertices in order, with the last agent in that order being assigned to the central vertex of the star. The resulting allocation satisfies EF1, since the envy towards agents allocated to a single item can be bounded up to one good, and the first and second agent do not envy the third agent if one removes the central vertex from his bundle. ∎
A.4 Efficient computation of SMMS allocations for identical valuations
In this section, we discuss how to compute the initial allocation that is needed for Algorithm 1 to obtain an EF1 allocation under identical valuations (Theorem 7.1).
Given a path , agents with identical monotonic valuations , and an allocation , write to denote the egalitarian welfare of , i.e., the minimum valuation in among all agents, and for the set of agents who obtain this minimum utility. We refer to the agents in as the losers.
An allocation of a path for agents with identical monotonic valuations satisfies strong maximin share (SMMS) if it minimizes the number of losers among all allocations maximizing the egalitarian welfare.
In the following, we provide an efficient dynamic programming algorithm for computing an SMMS allocation. We first present a simple algorithm that runs in time , and then we refine it to improve the running time to .
In order to use a dynamic programming approach, we start by deriving a recurrence relation characterizing the SMMS allocations.
Given two partial allocations , we write if either holds, or both and hold; furthermore, we write if both and hold. We observe that an allocation of path for agents is SMMS iff it is “optimal” according to the ordering relation , i.e., iff for any allocation (of path for agents).
For any and , let be the utility assigned by to the path segment from to . If then we use the convention that and . Given and , let be an SMMS allocation of the subpath for agents. Also, let and denote the egalitarian welfare and the number of losers of the SMMS allocation . Note that our ultimate aim is to find .
For any , and , let be an allocation of the subpath for agents that is optimal according to after constraining the -th bundle to be equal to the subpath ; furthermore, let and denote the egalitarian welfare and the number of losers of allocation . Observe that we allow to reach the value in order to model the case in which the -th agent gets an empty bundle. By definition, it holds that
where and .
One can easily observe that, for any fixed and , an optimal allocation of subpath for agents can be computed according to the following recurrence relation:
where the quality of each allocation depends on and only.
The recurrence relation (A.3) can be used to design a dynamic programming algorithm that computes the SMMS allocation in time . To do this, we will iteratively compute an integer such that for all and for all .
To do this, in each round , we identify the allocations for each , and compute the corresponding values and using (A.1) and (A.2). Using the computed values and we can then use (A.3) to find the index such that is optimal, and we store the resulting values and (which will be used in the subsequent rounds). Then we proceed to the next round. Finally, at the end of the last round , we can recursively reconstruct the optimal allocation by using the indices of type previously stored.
By (A.3), the resulting algorithm returns an SMMS allocation, and its time complexity is , given by the number of rounds (which is the number of pairs which is ) multiplied by the complexity of each round (checking each value of which is in ).
An improved algorithm.
By exploiting the monotonicity properties of the valuation functions, we can improve the above algorithm and lower its running time. In particular, we will see how to execute each round in constant amortized time, thus lowering the overall time complexity to .
The problem with the existing algorithm is we need to check all possible values of . Instead we will introduce three quantities , , and , each of which can be computed quickly, and prove that one of the three values provides a suitable value of . Specifically, for any and , letIn the definition of , if the set is empty, taking the maximum between and guarantees that is equal to in this extreme case.
By the monotonicity of the utility function, we have that, for any fixed value of , is non-decreasing in . This implies that for and fixed , the value is non-decreasing in . Hence the integers of type can be recursively written as
In Lemma A.9 we will show that can be set equal to the best allocation among the three allocations of type (with ). We first outline some preliminary properties in Lemma A.8.
is non-decreasing in , it is constant in , and it is non-increasing in .
We first show (i). Given and , let be the allocation obtained from by adding item to the last bundle of . By the optimality of , we have that , and this shows (i).
Now, we show (ii). We have the following properties: (a) is non-decreasing in (by (i)), and (b) is non-increasing in (by the monotonicity of the valuation function). Thus, we get the following additional properties, that immediately imply (ii):
for any (by definition of and because of (a) and (b)), and then is non-decreasing in (by (a));
for any (by definition of and because of (a) and (b)), and then is non-increasing in (by (b));
in (by definition of both and ), and then is necessarily constant in (by (a) and (b)). ∎
Given and , at least one index guarantees that is an SMMS allocation of subpath for agents (i.e., ).
Let , , and let be an index such that is optimal (i.e., SMMS). We consider three cases, depending on the value of .
Suppose . By exploiting the monotonicity properties of Lemma A.8 and the definition of , we will show that . By Lemma A.8, the set of integers such that is an integer interval having as its maximum, thus both and belong to . Furthermore, for any , the egalitarian welfare of each allocation is equal to that of allocation , and the set of losers in is the same as in (indeed, agent is not a loser since ). Thus, since (by Lemma A.8(i)), we necessarily have that for any , and this shows the optimality of allocation .
Suppose . Then we can analogously show that . The set of values with and is an integer interval having as its maximum, thus both and belong to . For any , the valuation for the -th bundle of is equal to the egalitarian welfare of the allocation restricted to the first bundles (by definition of and , and by Lemma A.8(ii)). Thus, the number of losers in allocation is equal to (i.e., the quantity of losers among the first agents) plus (i.e., agent ). As (by Lemma A.8(i)) and , we necessarily have that for any . We conclude that the best allocation of type with is achieved by , and this shows the optimality of .
Suppose . Then we can also show that . The set of values with is an interval whose minimum is , thus both and belong to . As (by definition of ), we have that agent is a loser in , and it is the only one. Thus, allocation must be necessarily optimal. ∎
By exploiting (A.3) and the characterization of optimal allocations given in Lemma A.9, we can derive an efficient dynamic programming algorithm (Algorithm 2) that computes an SMMS allocation.
Algorithm 2 computes an SMMS allocation in time.
We first show that the output of Algorithm 2 is an SMMS allocation. In lines 1–5 of the algorithm we initialize, for or , the maximum egalitarian welfare and the number of losers of the optimal allocation (of path for agents). By using the characterization provided in Lemma A.9, in lines 6–14 we iteratively compute an index such that is an SMMS allocation of subpath for agents, and we compute the corresponding maximum egalitarian welfare and number of losers . Finally, in lines 15–20 we recursively reconstruct the optimal allocation that is returned as output.
Now, we show that the time complexity of Algorithm 2 is . Observe that the body of the nested for-loops in lines 6–14 can be performed in time , where is a constant that does not depend on and . Indeed, this running time depends on the computation in lines 8–9 of each index for , and to compute it we can simply analyze all the indices from to only. We conclude that the time complexity of the nested for-loops in lines 6–14 satisfies
Since the time complexity of the other parts of the algorithm is clearly , it follows that Algorithm 2 terminates in time. ∎