 # Dividing a Graphical Cake

We consider the classical cake-cutting problem where we wish to fairly divide a heterogeneous resource, often modeled as a cake, among interested agents. Work on the subject typically assumes that the cake is represented by an interval. In this paper, we introduce a generalized setting where the cake can be in the form of the set of edges of an undirected graph. This allows us to model the division of road or cable networks. Unlike in the canonical setting, common fairness criteria such as proportionality cannot always be satisfied in our setting if each agent must receive a connected subgraph. We determine the optimal approximation of proportionality that can be obtained for any number of agents with arbitrary valuations, and exhibit tight guarantees for each graph in the case of two agents. In addition, when more than one connected piece per agent is allowed, we establish the best egalitarian welfare guarantee for each total number of connected pieces. We also study a number of variants and extensions, including when approximate equitability is considered, or when the item to be divided is undesirable (also known as chore division).

## Authors

##### This week in AI

Get the week's most popular data science and artificial intelligence research sent straight to your inbox every Saturday.

## 1. Introduction

Cake cutting refers to the problem of fairly allocating a divisible resource, often modeled as a cake, among agents with varying preferences. The problem dates back to shortly after the end of World War II (Steinhaus, 1948) and, not surprisingly given its wide range of applications, still enjoys significant attention in mathematics, computer science, economics, and political science to this day (Brams and Taylor, 1996; Robertson and Webb, 1998; Procaccia, 2016).

What does it mean for an allocation to be fair? Steinhaus Steinhaus (1948) proposed the following definition of fairness: if the cake is divided between agents, each agent should receive a part that she values at least of the entire cake. This definition became known as proportionality, and is one of the most fundamental notions in the literature of fair division. In his seminal article, Steinhaus showed that a proportional allocation can be found for any number of agents with arbitrary preferences over the cake—Steinhaus’ method, which he attributed to Knaster and Banach, was later formulated as a moving-knife procedure by Dubins and Spanier Dubins and Spanier (1961). The procedure works by having a referee move a knife over the cake from left to right. Whenever the left part has value of the entire cake for one of the agents, the agent takes that part of the cake and leaves; the procedure is then repeated among the remaining agents. In addition to ensuring proportionality, the Dubins-Spanier protocol has the important property that it always allocates to every agent a connected piece of the cake. Without this property, it may well be that an agent is presented with—in the words of Stromquist (Stromquist, 1980)—a “union of crumbs”.

The proportionality guarantee of the Dubins-Spanier protocol holds for a variety of items that one may wish to divide, since an item of any shape or form can be “projected” onto a line, which we can then run the protocol on. However, the connectivity property does not necessarily translate from the line back to the original shape. A simple illustrating example is when the item has the shape of a ring (e.g., a donut or a ring road): projecting the ring onto a line and applying Dubins-Spanier may result in an agent receiving disconnected pieces of the ring. For this example, the difficulty can be circumvented by cutting the ring at an arbitrary point, stretching it into a line, and running the protocol to achieve proportionality. Nevertheless, one may already begin to suspect that this type of fix no longer works when the shapes get more complex.

In this paper, we consider a natural setting where the cake is represented by the set of edges of an arbitrary undirected graph. The graph could correspond to a resource in the form of a network, such as a road or power cable network. The canonical cake-cutting setting, where the cake is assumed to be the interval , is a special case of our setting, with the graph consisting of a single edge. In this generalized graphical setting, we show that proportionality cannot always be attained if connectivity is required. Therefore, our goal in this work is to provide the best possible approximation of proportionality that can be achieved in each graph. As we will see, despite allowing arbitrary graphs and agents’ preferences in our model, we can still obtain several strong fairness guarantees. Furthermore, we study a number of variants and extensions, including when each agent can get more than one connected piece, or when the item to be divided is undesirable (often referred to as a chore).

### 1.1. Our Results

We assume throughout the paper that the agents are endowed with valuation functions that are additive and normalized with each agent having value for the whole cake; these assumptions are standard in the cake-cutting literature (Procaccia, 2016). We also assume that the pieces of cake that different agents receive may intersect in a finite number of points. Our formal model is described in Section 2.

In Section 3, we provide general guarantees that hold for any number of agents. For agents with arbitrary valuations and any graph, we establish the existence of a connected allocation that gives every agent a utility of at least . We also show that this bound is tight even when the agents have identical valuations and the graph is a star with edges. In addition, for every specific star graph, we determine the optimal utility that can be guaranteed for each number of agents.

In Section 4, we delve deeper into the case of two agents. While we know from Section 3 that both agents can be guaranteed a utility of in general, for certain graphs it is possible to do better. Perhaps surprisingly, we show that the optimal guarantee for each graph is always either or ; the latter case corresponds to a proportional allocation. The classification depends on a graph property that we call almost bridgeless—a graph satisfies this property if we can add an edge so that the resulting graph contains no bridges, where a bridge refers to an edge that is not contained in any cycle. We show that a guarantee of can be obtained if the graph is almost bridgeless, while is the best possible guarantee otherwise.

Next, we strengthen the result that both agents can be guaranteed a utility of for any graph by establishing the existence of a connected allocation such that the first agent receives value at least and the second agent at least . More generally, we characterize all pairs for which there always exists a connected allocation that yields utility at least and to the first and second agent, respectively. On the other hand, if we are only interested in giving utility to one agent and to the other, and are willing to give up control over which agent receives which guarantee, then additional pairs become achievable—again, we give a complete characterization of all such pairs. Moreover, we consider allocating more than one connected piece to each agent: we show that for any positive integer , both agents can be guaranteed a utility of if we allow the agents to receive a total of connected pieces, and this is tight. We also study approximate equitability and prove the existence of a connected allocation for which the agents’ utilities differ by no more than ; we again establish the tightness of the bound.

Finally, in Section 5, we turn our attention to chore division. In the case of two agents there is a simple reduction between the settings of cake and chores, so all of our results in Section 4 carry over to chore division. By contrast, when there are more than two agents, the relationship between the two settings is much less clear. We show that there exists a connected allocation that incurs cost at most for , and that no better bound can be obtained for any .

We remark that all of our positive results are constructive: for each result, we exhibit a moving-knife protocol that achieves the desired guarantee. Moreover, one can make these protocols discrete, so that they only use the cut and evaluation queries allowed by the Robertson-Webb query model in order to access the valuation functions of the agents (Robertson and Webb, 1998).

### 1.2. Further Related Work

While our graphical cake model is new to the best of our knowledge, graphs have recently been studied in the context of allocating

indivisible items. In particular, the items correspond to vertices of an undirected graph, and each agent must be allocated a connected subgraph of the graph. A line of work has explored existence and complexity questions for several fairness notions, both in the case of goods (Bouveret et al., 2017; Lonc and Truszczynski, 2018; Bilò et al., 2019; Bei et al., 2019; Igarashi and Peters, 2019; Suksompong, 2019) and chores (Bouveret et al., 2019).

Connectivity constraints are commonly considered in the cake-cutting literature, where each agent is allocated a single subinterval of the interval cake (Stromquist, 1980, 2008; Su, 1999; Bei et al., 2012; Cechlárová and Pillárová, 2012; Aumann et al., 2013; Cechlárová et al., 2013; Aumann and Dombb, 2015; Segal-Halevi et al., 2016). Segal-Halevi et al. (Segal-Halevi et al., 2017) studied the fair division of land and introduced geometric constraints to the setting by requiring that allocated pieces be of certain shape—such requirements are important since a long but narrow piece of land is likely to be of little practical use. Similarly to our setting, a proportional allocation does not always exist in the presence of these constraints, and the authors examined the approximations of proportionality that can be obtained.

## 2. Preliminaries

Let be the set of agents, and be a finite and connected undirected graph representing the cake, with no loops but possibly with multiple edges joining the same pair of vertices.111A loop can be represented in our model by adding a new vertex inside the loop, thereby breaking the loop into two edges joining the same pair of vertices. Denote by the number of edges. Each edge in can be viewed as an interval of the cake. For any points on an edge, we write or to denote the interval of the cake between and ; we sometimes identify a vertex with the corresponding endpoint of the edges adjacent to .

A piece of cake is a finite union of disjoint intervals, where each interval is a subinterval of an edge and the intervals in the piece may belong to different edges.222As is commonly done in cake cutting, we assume that all intervals are closed intervals. Two intervals are said to be disjoint if they intersect in at most one point, and two pieces of cake are said to be disjoint if they intersect in a finite number of points. If we adopt the stricter convention that each point can only be allocated to one agent (so intervals can be open, half-open, or closed) and two intervals are disjoint only if their intersection is empty, there are strong negative results. For example, on a star graph, at most one agent would be able to receive intervals from more than one branch in a connected allocation. A piece of cake is said to be connected if for any two points in the piece, it is possible to get from one point to the other along the graph by only traversing this piece of cake. Each agent has a nonnegative valuation function (or utility function) , which specifies the agent’s value for each piece of cake. An instance consists of the graph , the agents, and their valuation functions. As is standard in the cake-cutting literature (Procaccia, 2016), we assume that the valuation functions are

• normalized: the value of an agent for the entire cake is ;

• divisible: for each interval and , there is a point such that ;

• additive: the value of an agent for a piece of cake is the sum of her values for the intervals in the piece.

An allocation

of the cake is denoted by a vector

, where each is a piece of cake, and and are disjoint for all . An allocation is said to be complete if the entire cake is allocated, and connected if each is a connected piece of cake. The egalitarian welfare of an allocation is defined as . An allocation is proportional if its egalitarian welfare is at least . The inequity of an allocation is defined as ; an allocation with inequity is said to be equitable.

We make analogous assumptions for chore division (Section 5). Each agent has a nonnegative cost function for the chore, which is normalized, divisible, and additive. The egalitarian cost of an allocation is defined as . Naturally, we require the entire chore to be allocated, so we restrict our attention to complete allocations of the chore.

## 3. Any Number of Agents

In this section, we present an egalitarian welfare guarantee that holds for any number of agents and arbitrary graphs, and derive improved guarantees in the case where the graph is a star.

### 3.1. General Guarantees

We begin by showing that it is always possible to give every agent a utility of at least , and this bound is tight. Similarly to the Dubins-Spanier protocol, our algorithm proceeds by identifying a piece that is valuable enough for one agent but at the same time not too valuable for the other agents, allocating such a piece to the former agent, and recursing on the latter agents.

###### Theorem 3.1 ().

For any graph , there exists a connected allocation with egalitarian welfare at least . On the other hand, there exists a graph and identical valuations of the agents such that any connected allocation yields egalitarian welfare at most .

###### Proof.

Let . To show the second part of the theorem, let be a star with edges such that every agent values each edge exactly , and the value is distributed uniformly within the edge. Assume for contradiction that there is a connected allocation with egalitarian welfare strictly greater than . Consider any agent . The agent must receive intervals from at least two edges, and these intervals must be connected via the center vertex. Note that the unallocated parts of these edges cannot be allocated to other agents, since any agent who receives an interval from such a part cannot receive intervals from other edges and would therefore obtain value less than . Hence, at least two edges are only allocated to agent . However, this means that there must be at least edges in total, a contradiction.

We now prove the first part of the theorem. Let be an arbitrary graph. We will show that there exists a moving-knife algorithm that produces a connected allocation with egalitarian welfare at least . We proceed by induction on ; the statement trivially holds for since we can simply allocate the entire cake to the only agent. Assume that the statement holds for agents, and consider an instance with agents.

First, we claim that we can turn into a tree. As long as contains at least one cycle, pick an edge that belongs to a cycle, add a new vertex , and replace this edge by an edge while keeping the remaining edges of the graph as before. Since at least one cycle is removed by this operation and no new cycle is created, eventually becomes a tree. Note that any connected allocation of the modified graph is a connected allocation in the original graph with the same value for every agent, so it suffices to prove the theorem for the modified graph.

Choose an arbitrary vertex of the tree as its root. Let be a vertex such that the subtree rooted at yields value at least to some agent, and the same does not hold for the subtree rooted at any child of . Let be the children of . We consider two cases:

• Case 1: At least one of the branches of along with the corresponding subtree yields value at least to some agent. Assume without loss of generality that the branch containing is one such branch. By our assumption, the subtree rooted at yields value less than to all agents. Hence, by moving a knife from to , we can find the point closest to such that some agent values the interval together with the subtree rooted at exactly , and all other agents value this piece of cake at most . We allocate this piece of cake to agent , and make a new vertex in the remaining graph, which has value at least for each of the remaining agents. By the inductive hypothesis, there exists a connected allocation of the remaining graph to the agents such that every agent receives value at least , as desired.

• Case 2: Every branch of along with the corresponding subtree yields value less than to all agents. Let be the smallest number such that the first branches and their subtrees together yield value at least to some agent . We allocate this piece of cake to agent . For every other agent, the first branches is worth less than and the th branch is also worth less than , so the piece of cake allocated to agent is worth less than . By the inductive hypothesis, there exists a connected allocation of the remaining graph to the agents such that every agent receives value at least , as desired.

The two cases together complete the induction. ∎

Note that by following the algorithm in the proof of Theorem 3.1, we also obtain the following statement, which will be useful for our later results.

###### Lemma 3.2 ().

Let be a connected piece of cake in a graph , and suppose that all agents have value for . For any , there exists a partition of into two connected pieces such that one of the agents has value at least for the first piece, while all of the remaining agents have value at most for this piece.

### 3.2. Stars

For certain graphs, it is possible to improve upon the guarantee provided by Theorem 3.1—an obvious example is the graph consisting of a single edge, for which the Dubins-Spanier protocol yields an egalitarian welfare of at least . We now derive the optimal egalitarian welfare guarantee in the case where the graph is a star. For integers and , define

 f(n,k)=⎧⎪ ⎪ ⎪⎨⎪ ⎪ ⎪⎩1n+⌈k/2⌉−1for k<2n−1;12n−1for k≥2n−1.
###### Theorem 3.3 ().

Let and , and let be a star with edges. There exists a connected allocation with egalitarian welfare at least . Moreover, the bound is tight.

The values of for small and are shown in Table 1.

###### Proof.

We proceed by induction on . For the base case , the lower bound of follows from Theorem 3.1. To see that is also an upper bound, assume that both agents value three of the edges uniformly at exactly and have no value for the remaining edges. Any connected allocation with egalitarian welfare greater than would give rise to a connected allocation of a three-edge star with egalitarian welfare greater than , which by Theorem 3.1 does not exist.

Assume that the statement holds for agents. First, we show that there exists a connected allocation with egalitarian welfare at least . If , this follows immediately from Theorem 3.1. Suppose that . We have , or . Hence, every agent has value at least for some edge of the star. We choose one such edge for an arbitrary agent and move a knife from its outer endpoint to the center of the star, stopping when the covered part has value for some agent . We allocate this piece of cake to agent , and make the cut point a new vertex in the remaining graph, which has value at least for each of the remaining agents. The remaining graph is still a star with edges (possibly with a degenerate edge), so by the inductive hypothesis, there exists a connected allocation of the remaining graph to the agents with egalitarian welfare at least

 f(n−1,k)⋅(1−f(n,k))=1n+⌈k/2⌉−2⋅n+⌈k/2⌉−2n+⌈k/2⌉−1=1n+⌈k/2⌉−1,

where the first equality follows from the observation that for all .

Next, we show that is tight for all and . If , this follows from the instance in Theorem 3.1 and by adding extra edges of zero value. Suppose that and that the agents have identical valuations. Each agent has value for of the edges and for the th edge, and the values are distributed uniformly across each edge. Note that as in the preceding paragraph, we have , and therefore . Assume for contradiction that there is a connected allocation with egalitarian welfare strictly greater than . Any agent must either receive intervals from at least two edges (perhaps including the th edge), or only receive an interval from the th edge. The number of agents of the first type is at most . The number of agents of the second type is strictly less than

 1−(k−1)f(n,k)f(n,k)=n−⌊k/2⌋n+⌈k/2⌉−11n+⌈k/2⌉−1=n−⌊k/2⌋.

This means that the total number of agents is strictly less than , yielding the desired contradiction. ∎

## 4. Two Agents

In this section, we focus on the case of two agents. We establish the optimal egalitarian welfare that can be obtained for each graph and derive utility frontiers when the agents may have different entitlements. In addition, we explore the extent to which our guarantees can be improved if we allow more than one connected piece per agent, and also consider approximate equitability.

### 4.1. Graph-Specific Guarantees

Before we can state our results for specific graphs, we need some graph-theoretic terminology. Recall that a bridge of a graph is an edge that is not contained in any cycle. A graph is said to be bridgeless if it contains no bridges.

###### Definition 4.1 ().

A graph is said to be almost bridgeless if we can add an edge so that the resulting graph is bridgeless.

Note that according to this definition, every connected bridgeless graph with at least two vertices is also almost bridgeless, since we can add a copy of an existing edge.

Next, we define an oriented labeling of a graph.

###### Definition 4.2 ().

An oriented labeling of a graph with edges is a labeling of the edges with numbers , using each number exactly once, together with a labeling of one endpoint of each edge with and the other endpoint with (so each vertex receives a number of labels equal to the number of edges adjacent to it). An oriented labeling is said to be contiguous if:

• For each , the edges labeled form a connected subgraph, and the vertex labeled belongs to one of these edges.

• For each , the edges labeled form a connected subgraph, and the vertex labeled belongs to one of these edges.

It turns out that a graph admitting a contiguous oriented labeling is equivalent to it being almost bridgeless.

###### Lemma 4.3 ().

A graph is almost bridgeless if and only if it admits a contiguous oriented labeling.

###### Proof.

() Assume that a graph admits a contiguous oriented labeling. Add an edge between the vertices labeled and . We claim that the resulting graph is bridgeless. Since the vertices and are connected in the original graph, the new edge is part of a cycle. Now, consider any edge in the original graph; assume that the edge has label . The vertices and are connected by a path that only goes through edges between and . Likewise, the vertices and are connected by a path that only goes through edges between and . Hence, the edge belongs to a cycle that goes through the two paths, the edge between and , and itself.

() Assume that a graph is almost bridgeless. We will label all edges with labels and orient each edge in one direction (the source of edge corresponds to the vertex and the sink to the vertex ) so that the labeling is a contiguous oriented labeling.

Suppose that the graph becomes bridgeless if we add an edge . Consider a path from to , and sort the edges and orient them along this path. We will iteratively construct ears until all edges are used. Each ear is a path starting at a vertex of a previous ear and ending at a vertex of a previous ear (possibly the same as the former vertex, in which case the path becomes a cycle) but not going through any other vertex of a previous ear; the only exception is the first ear, which is the path from to . Suppose that we have constructed some ears, and not all edges have been used. If there are edges that connect only vertices in the existing ears, we make each such edge into a new ear. If some edges still remain after this process, then since the graph is connected, there must be an edge such that belongs to an existing ear but does not. By assumption, is contained in a cycle if the edge is added, so we can follow the edges in this cycle until we reach a vertex in an existing ear for the first time (possibly ). Since we stop if we reach either or , edge cannot be part of this trail, so we have a new ear. Assume without loss of generality that either , or the first edge directed into appears no later than the first edge directed into in the current edge order, or both. Orient the edges of the new ear along the trail from to . If , insert these edges consecutively at the beginning of the order. Else, insert them consecutively after the first edge directed into . After all edges have been added, label them from to according to the final order. Observe that the edge with label is always adjacent to , and the edge with label is always adjacent to .

We claim that the resulting oriented labeling is contiguous. First, we show that for each , the edges labeled form a connected subgraph. We proceed by induction on , with the base case holding trivially. Assume that the edges form a connected subgraph for some . If edge is not the first edge in its ear, its predecessor in its ear has label at most , so the induction hypothesis implies that the edges form a connected subgraph. Moreover, in this case, vertex belongs to the predecessor edge with label at most . Suppose now that edge is the first edge in its ear, and assume that the edge is directed from to . If , then since , the edge with label is an edge with a lower label that is adjacent to . Else, the first edge directed into has label at most . In either case, the induction hypothesis implies that the edges form a connected subgraph, and vertex is adjacent to a vertex with label at most . This completes the induction and moreover shows that for each , vertex belongs to one of the edges .

Next, we show that for each , the edges labeled form a connected subgraph. We proceed by downward induction on , with the base case holding trivially. Assume that the edges form a connected subgraph for some . If edge is not the last edge in its ear, its successor in its ear has label at least , so the induction hypothesis implies that the edges form a connected subgraph. Moreover, in this case, vertex belongs to the successor edge with label at least . Suppose now that edge is the last edge in its ear, and assume that the edge is directed from to . If , then since , the edge with label is an edge with a higher label that is adjacent to . Suppose that , which also implies that

does not belong to the first ear. Consider the moment when we insert the ear that contains

, and assume that this ear begins at vertex . If , then the edges of this ear are placed at the beginning of the order; since appears in a previous ear, there is an edge adjacent to it that comes after edge in the order. Suppose therefore that , so that at the moment before we insert the ear containing , the first edge into appears no later than the first edge directed into in the order. We place the edges of the new ear after the first edge into . If , there is an edge adjacent to that comes after this ear in the order. Else, , and this vertex is different from and . Consider the earliest ear that contains , and note that in this ear, there is an edge into and another edge out of ; let and be the label of the two edges respectively. The first edge into appears no later than , so the ear containing appears before in the ordering. Hence, there is an edge with label at least adjacent to . This completes the induction. It also follows from our argument that for each , the vertex belongs to one of the edges . Combined with the previous paragraph, we find that our oriented labeling is contiguous, as claimed. ∎

Given a graph with vertices, a bipolar numbering of is a labeling of the vertices with numbers , with each number used exactly once, such that every vertex with label greater than has a neighbor with a smaller label and each vertex with label smaller than has a neighbor with a larger label. Bilò et al. Bilò et al. (2019) characterized the class of graphs that admit a bipolar numbering as the graphs with the property that if the vertices of the graph represent indivisible items of possibly different values to the two agents, there always exists a connected ‘envy-free up to one item’ allocation. We show that the class of graphs that admit a bipolar numbering forms a strict subclass of the almost bridgeless graphs (which, by Lemma 4.3, is equivalent to the class of graphs that admit a contiguous oriented labeling).

###### Proposition 4.4 ().

Any graph that admits a bipolar numbering is almost bridgeless, but the converse does not hold.

###### Proof.

Assume that a graph admits a bipolar numbering with the vertices labeled . This means that for any vertex , there exists a path from to that only goes through vertices , and a path from to that only goes through vertices . Add an edge between vertices and . We will show that the resulting graph is bridgeless, i.e., every edge is contained in a cycle. This is clear for the new edge. For any edge in the original graph between vertices and with , we can construct a cycle containing it by following a path from to that only uses vertices , traversing the added edge from to , and following a path from to that only uses vertices .

To show that the converse does not hold, consider the graphs shown in Figure 1. Since every edge in both graphs is contained in a cycle, both graphs are bridgeless and therefore almost bridgeless. On the other hand, one can check that neither graph admits a bipolar numbering. ∎

We are now ready to show our classification result: the optimal egalitarian welfare that can always be obtained for a graph is if the graph is almost bridgeless, and otherwise. The former is shown in Theorem 4.5, while the latter follows from Theorems 3.1 and 4.7.

###### Theorem 4.5 ().

For and any almost bridgeless graph , there exists a connected proportional allocation.

###### Proof.

Suppose that is almost bridgeless. By Lemma 4.3, it admits a contiguous oriented labeling. We move a knife over the edges of in increasing order of the label. For each edge with label , the knife goes from vertex to vertex . If the knife is currently on edge , we stop when the piece of cake containing edges , together with the interval of edge between and the current position of the knife, yields value exactly to one of the agents. We allocate this piece of cake to the agent who receives value , and the remainder of the cake to the other agent. Both agents receive value at least and, by definition of the labeling, obtain a connected allocation of the cake. ∎

###### Lemma 4.6 ().

Let be a nonempty set of bridges in a graph. If no path contains all bridges in , there exist three bridges in such that no path contains all three bridges.

###### Proof.

Assume that no path contains all bridges in . Since bridges are not contained in cycles, there is a spanning tree that contains . Let be a minimal subtree of that contains . Since cannot be a path, it has a vertex with degree at least . Each of the (at least three) branches of must contain a bridge from —otherwise the branch can be removed to obtain a smaller subtree than .

Let be bridges contained in three distinct branches. Suppose for contradiction that they are contained in a path. By reversing the direction of the path if necessary, we may assume that the path traverses at least two of the edges away from with respect to . Assume further that two of these edges are and , and that the path traverses before . After traversing , the path must reach another vertex in that lies on the same side as with respect to both and (possibly the endpoint of or closer to ). By combining the portion of the path from to with the path in from to , we find that lies on a cycle, a contradiction. ∎

###### Theorem 4.7 ().

For and any graph that is not almost bridgeless, there exist identical valuation functions of the two agents such that any connected allocation yields egalitarian welfare at most .

###### Proof.

Suppose that is not almost bridgeless. Then no path can contain all bridges of : if there exists such a path, we can eliminate all bridges by adding an edge that connects the endpoints of this path. By Lemma 4.6, there exist three bridges of such that no path contains all three bridges. For each of the three bridges, the other two bridges must lie on the same side of it, since otherwise we can construct a path that contains all three bridges.

Assume that both agents value each of the three bridges exactly (and every other edge ), and the value is distributed uniformly within each bridge. Suppose for contradiction that there exists a connected allocation with egalitarian welfare strictly greater than . This means that each agent must receive intervals from at least two bridges. However, when an agent receives intervals from two bridges, each interval must contain the endpoint of the bridge that is on the same side as the other two bridges. This is impossible since there are only three bridges, yielding the desired contradiction. ∎

### 4.2. Utility Frontiers

In this subsection, we establish the frontiers of the utilities that we can guarantee to the two agents regardless of the graph, assuming that the agents may have different entitlements. We begin by observing that the cut-and-choose protocol allows us to find an allocation that gives utility to the first agent and to the second agent; this generalizes the case of Theorem 3.1.

###### Theorem 4.8 ().

For and any graph , there exists a connected allocation such that the first agent receives value at least and the second agent receives value at least .

###### Proof.

By Theorem 3.1, there exists a partition of the cake into two connected pieces such that the second agent values both pieces at least . The first agent can then simply choose the piece that she prefers and obtain value at least . ∎

The next proposition follows from Theorem 3.1.

###### Proposition 4.9 ().

For , there exists a graph and identical valuations of the two agents such that any connected allocation yields egalitarian welfare at most .

To complete the utility frontier, we show that if we are required to give a utility of more than to the first agent, it may be impossible to provide any nontrivial guarantee for the second agent.

###### Proposition 4.10 ().

Let and . There exists an instance with such that no connected allocation yields value at least to the first agent and at least to the second agent.

###### Proof.

Fix and , and assume that consists of a single edge represented by the interval . Suppose that the first agent values the entire interval uniformly, while the second agent values the interval uniformly and nothing else. In any connected allocation that yields value at least to the first agent, this agent must receive the entire interval . However, that means the second agent receives value from the allocation. ∎

Combining Theorem 4.8 with Propositions 4.9 and 4.10, we find that the values of for which a connected allocation that yields utility to the first agent and to the second agent always exists are as shown in Figure 2.

While Figure 1 completely captures the shares that can be guaranteed to the two agents, if we do not fix the entitlements of the agents in advance, it is possible to achieve better guarantees. As an example, consider the case where the graph consists of a single edge. In this case, Proposition 4.10 shows that any entitlements with and cannot be achieved. On the other hand, for any , it is possible to give one agent a value of at least and the other agent a value of at least (while not fixing which agent receives which share). Indeed, if we run a moving knife on the single edge and stop when the part already covered by the knife yields value to some agent, the two pieces can be allocated to yield the desired guarantee. In what follows, we determine all shares for which there always exists a connected allocation that yields value to one agent and to the other agent regardless of the graph. Note that Theorem 4.8 carries over, and so does Proposition 4.9 since it holds for agents with identical valuations. We fill in the utility frontier, starting with the negative results.

###### Proposition 4.11 ().

Let and . There exists an instance with and identical valuations such that no connected allocation yields value at least to one agent and at least to the other agent.

###### Proof.

Let be a star with four edges such that every agent values each edge exactly , and the value is distributed uniformly within the edge. Assume for contradiction that there is a connected allocation that yields value at least to one agent and at least to the other agent; since the agents have identical valuations, we may assume without loss of generality that these are agents 1 and 2 respectively. Agent 1 must receive intervals from at least three edges, and these intervals must be connected via the center vertex. Note that the unallocated parts of these edges cannot be allocated to agent 2, since agent 2 would receive value less than . Similarly, agent 2 must receive intervals from at least two edges, and these intervals, which again must be connected via the center vertex, cannot be allocated to agent 1. However, this means that there must be at least five edges in total, a contradiction. ∎

###### Proposition 4.12 ().

Let and . There exists an instance with and identical valuations such that no connected allocation yields value at least to one agent and at least to the other agent.

###### Proof.

Choose such that . Let be the graph shown in Figure 3, where the value of each agent for each edge is as shown in the figure and distributed uniformly across the edge. Assume for contradiction that there is a connected allocation that yields value at least to one agent and at least to the other agent; since the agents have identical valuations, we may assume without loss of generality that these are agents 1 and 2 respectively. Agent 2 must receive part of the middle edge; otherwise she has value at most . Moreover, she must receive part of some left edge and part of some right edge; otherwise she has value at most . Hence, the agent must receive the entire middle edge. This means that agent 1 can receive intervals from only one non-middle edge. Her value is therefore at most , a contradiction. ∎

We now move on to the positive result, which shows the additional guarantee that we can obtain if we give up control over which agent receives which entitlement.

###### Theorem 4.13 ().

Let . For and any graph , there exists a connected allocation such that one agent receives value at least and the other agent receives value at least .

###### Proof.

This follows immediately from Lemma 3.2 by taking to be the entire graph . ∎

Combining Theorem 4.13 with Propositions 4.11 and 4.12, we find that the values of for which a connected allocation that yields utility to one agent and to the other agent always exists are as shown in Figure 4.

### 4.3. Beyond One Connected Piece

As we mentioned in the introduction, one important motivation for considering connected allocations is to avoid situations where an agent receives a “union of crumbs”. In light of this motivation, it is interesting to explore whether we can obtain improved guarantees if we allow the agents to receive a small number of connected pieces. We demonstrate in this subsection that such improvements are indeed possible by presenting a tight bound of on the egalitarian welfare that can be guaranteed when a total of connected pieces are permitted. We first establish the lower bound.

###### Theorem 4.14 ().

Let be a positive integer. For and any graph , there exists an allocation in which the two agents receive a total of at most connected pieces and the egalitarian welfare is at least .

###### Proof.

Let be an arbitrary graph. It suffices to show that there exists a partition of into two parts with at most connected pieces in total such that both parts yield value at least to the first agent. Indeed, given such a partition, we can let the second agent choose the part that she prefers and obtain value at least . We therefore consider only the first agent from now on.

We proceed by induction on ; the base case follows from Theorem 4.8. Suppose that the statement holds for , i.e., there exists a partition of into two parts with at most connected pieces in total such that both parts yield value at least to the agent. Assume without loss of generality that the second part has value at least , so the first part has value for some . Since the second part consists of at most connected pieces, it contains a connected piece of value at least . Denote this piece by .

Since , we have . By creating a duplicate of our agent and applying Lemma 3.2, we can partition into two connected pieces in such a way that our agent has value in the range for the first piece. Move this piece from the second part of our partition of to the first part. The resulting partition of consists of at most connected pieces in total, and the first part of this partition has value in the range . This implies that both parts of the partition yield value at least , completing the induction. ∎

Next, we show that the bound established in Theorem 4.14 is tight for every . First we need the following technical lemma.

###### Lemma 4.15 ().

Let be a positive integer, and let be (not necessarily distinct) integers and . Then

 ∣∣∣ε1⋅3a1+ε2⋅3a2+⋯+εt⋅3at−12∣∣∣≥12⋅3t.
###### Proof.

We proceed by strong induction on . The base case follows from the observation that the terms of the form closest to are and , and . Suppose that the statement holds up to , and assume without loss of generality that . We process the sum from right to left. Consider the moment when we process terms involving . If there are two terms involving with coefficients of opposite signs, we either cancel them or combine them into one term. So we may assume that all terms with have the same sign, say positive. If there are two terms , we combine them into ; if there is a term and , we combine them into ; and if there are two terms , we replace them with and . Our operations do not increase the number of terms, so our procedure terminates with at most one term involving each power of .

If the number of terms is now less than , we may apply the induction hypothesis and obtain our desired conclusion. Assume therefore that the number of terms is still , and . We have

 ∣∣ ∣∣t∑i=2εi⋅3ai∣∣ ∣∣≤t∑i=2|εi⋅3ai|≤2⋅t∑i=23ai<2⋅∞∑i=23ai=3a2+1≤3a1.

If is negative, we have , so the desired statement holds. Assume now that is positive. If , we have , so the desired statement holds in this case.

Suppose that . If , we have

 ∣∣ ∣∣t∑i=1εi⋅3ai−12∣∣ ∣∣=∣∣ ∣∣t∑i=2εi⋅3ai−16∣∣ ∣∣=13∣∣ ∣∣t∑i=2εi⋅3ai+1−12∣∣ ∣∣≥13⋅12⋅3t−1=12⋅3t,

where the inequality follows from the inductive hypothesis. Similarly, if , we have

 ∣∣ ∣∣t∑i=1εi⋅3ai−12∣∣ ∣∣=∣∣ ∣∣t∑i=2εi⋅3ai+16∣∣ ∣∣=13∣∣ ∣∣t∑i=2(−εi)⋅3ai+1−12∣∣ ∣∣≥13⋅12⋅3t−1=12⋅3t.

Suppose now that . If , we have

 ∣∣ ∣∣t∑i=1εi⋅3ai−12∣∣ ∣∣=∣∣ ∣∣t∑i=2εi⋅3ai+12∣∣ ∣∣=∣∣ ∣∣t∑i=2(−εi)⋅3ai−12∣∣ ∣∣≥12⋅3t−1>12⋅3t,

where the first inequality follows from the inductive hypothesis. If , we have , so the desired statement holds.

Finally, suppose that . If , we have , so the desired statement holds. Assume now that . If and is negative, we may combine the terms and into and apply the induction hypothesis. So we may assume that either or is positive. In either case, we have , so the desired statement again holds. ∎

###### Theorem 4.16 ().

Let be a positive integer. There exists an instance with and identical valuations such that any allocation in which the two agents receive a total of at most connected pieces yields egalitarian welfare at most .

###### Proof.

Let be a rooted tree with layers, where the first layer consists only of the root of the tree. The root has one child, and every vertex in subsequent layers up to the st layer has three children. In particular, the nd layer consists of leaves. The tree for the case is shown in Figure 5. Suppose that both agents value each edge adjacent to a leaf exactly with the value distributed uniformly within the edge, and do not value any other edge.

Consider an arbitrary allocation in which the two agents receive a total of at most connected pieces. We will show that the egalitarian welfare is at most . If there are unallocated parts of the cake, we arbitrarily allocate these parts so that the number of connected pieces that each agent receives does not increase; this does not lower the egalitarian welfare of the allocation. Hence we may assume that the entire cake is allocated (i.e., the allocation is complete). Denote by the connected pieces that agent 1 receives, and the connected pieces that agent 2 receives, where . We assume that each edge has length , and refer to the distance along the (unique) path between two points in simply as the distance between these two points. Note that every connected piece has a unique point closest to the root: if there are two such points, they must be connected via a point that is strictly closer to the root than both of them. For every connected piece , denote by the unique point in closest to the root and the utility of the piece . We will define a connected piece as follows:

• If is not a vertex of , let be the set of points such that the path from to the root goes through . In other words, is the part of the tree “below” .

• If is a vertex of , let be the set of points such that the intersection of and the path from to the root has nonzero measure. Equivalently, consists of the edges adjacent to that have a nontrivial overlap with , along with everything “below” these edges.

Assume without loss of generality that agent 1 receives a piece containing the root of the tree. We claim that . First, note that for each where , every connected piece and is either contained in in its entirety or not at all. Hence can be written as a sum of distinct ’s and ’s. Moreover, one can verify from the definition that a connected piece is contained in if and only if or the path from to the root has a nontrivial overlap with . This path alternates between pieces and and ends with a piece . Therefore, each is contained in exactly once more than in , while each is contained in the two sums an equal number of times. This yields the claimed equality.

Next, observe that each can be written as for some nonnegative integer , or for some nonnegative integer , or for some . Note also that since agent receives a piece containing the root of the tree, for this piece we have . It follows that can be written as , where is a sum of a number of terms (say, terms, where ) of the form with and an integer, and . Hence, letting , we have

 d =∣∣∣([u(X∗1)+⋯+u(X∗p)]−[u(Y∗1)+⋯+u(Y∗q)])−12∣∣∣ ≥12⋅3r−k−r3k=3k−r−2(k−r)2⋅3k≥12⋅3k,

where the first inequality follows from the triangle inequality, the second inequality follows from Lemma 4.15, and the last inequality holds since for any integer . This implies that the egalitarian welfare is at most , as claimed. ∎

Recall that the height of a rooted tree is the length of the longest path from the root to a leaf vertex. For example, a star rooted at the center vertex has height . Our next theorem shows that for graphs that can be represented as a tree of height at most , we can obtain full proportionality provided that we allow two connected pieces per agent.

###### Theorem 4.17 ().

For and any graph that can be represented as a rooted tree of height at most , there exists a proportional allocation such that each agent receives at most two connected pieces.

###### Proof.

Let be a rooted tree with root , and let be the children of (see Figure 6). We move the knife in the following order: For , we move the knife from down to its first child, from down to its second child, and so on until we reach its last child, then from up to . This process ensures that the knife goes through all edges of . We stop when the part already covered by the knife is worth to one of the agents. We allocate the covered part of the cake to that agent, and the remaining part to the other agent.

Clearly, the resulting allocation is proportional; it remains to show that each agent receives at most two connected pieces. We consider two cases:

• Case 1: The knife stops on its way from a vertex to its child (possibly at ). This means that the first branches of the tree have been covered, and they are connected through . Moreover, the covered part in the th branch are connected through . Hence the covered part forms two connected pieces of the cake. The uncovered part in the th branch besides the edge is connected through , and it is connected to the remaining uncovered part from the st branch onwards through . The uncovered part of the edge forms one connected piece. It follows that both agents receive at most two connected pieces.

• Case 2: The knife stops on its way from a vertex to the root (possibly at ). The same argument as in Case 1 shows that the covered part forms two connected pieces of the cake. The uncovered part in the th branch is contained in the edge , and it is connected to the remaining uncovered part from the st branch onwards through . It follows that both agents receive at most two connected pieces.

The two cases together complete the proof. ∎

### 4.4. Equitability

We end this section by briefly considering another well-established fairness notion: equitability. Interestingly, while for approximate proportionality it is useful to consider the maximum among the agents’ values for the current piece (Theorem 3.1), for approximate equitability in the case of two agents, the appropriate quantity to consider is the sum of these values. Note that an empty allocation is always equitable but yields the lowest possible welfare of zero, so we are interested in complete allocations.

###### Theorem 4.18 ().

For and any graph , there exists a complete and connected allocation with inequity at most . Moreover, the bound is tight.

###### Proof.

To show tightness, let be a star with three edges such that every agent values each edge exactly , and the value is distributed uniformly within the edge. In any complete and connected allocation, one of the agents must receive two full edges (and possibly part of the third). This implies that the inequity in such an allocation is at least .

We now prove the first part of the theorem. Let be an arbitrary graph. Our goal is to find a complete, connected allocation such that . Since the allocation is complete, we may write . The desired condition can be rewritten as . We use a similar procedure as in Theorem 3.1, turning the graph into a tree and considering a minimal subtree that has value at least with respect to . We stop either when the knife cuts a subtree such that (Case 1), or when a set of branches satisfies for the first time (Case 2). An analogous argument shows that we must have , which yields the desired inequality. ∎

## 5. Chore Division

In this section, we assume that the graph represents a chore, i.e., an item that yields negative value to the agents. This models, for example, a situation where we wish to divide the responsibilities of maintaining a road or cable network.

For the case of two agents, all results in cake cutting (Section 4) can be translated to analogous results in chore division using a simple reduction. The idea is that given a chore instance, we can turn it into a cake instance by pretending that the cost functions are cake valuation functions, applying a result in the cake setting to obtain an initial allocation of the chore, and having the agents swap their assigned piece to arrive at the final allocation. This reduction works for translating positive results to the chore setting. For negative results, we can use the reduction in the opposite direction, starting from a chore instance and reducing it to a cake instance. As an illustrating example, we show how to deduce an analogue of Theorem 4.8 in the chore setting.

###### Theorem 5.1 ().

In chore division, for and any graph , there exists a connected allocation such that the first agent incurs cost at most and the second agent incurs cost at most .

###### Proof.

Consider an arbitrary chore division instance. If we treat the chore valuations as cake valuations, then by Theorem 4.8, there exists a (complete) connected allocation such that the first agent receives value at least and the second agent receives value at least . Let the agents swap their assigned pieces in this allocation. In the resulting allocation, which is also connected, the first agent incurs cost at most and the second agent incurs cost at most . ∎

When there are more than two agents, the relationship between the cake and the chore setting becomes much less clear, and we do not know how to translate results from one setting to the other. In the chore setting, we show that for each , the egalitarian cost may need to be as high as .

###### Proposition 5.2 ().

In chore division, there exists a graph and identical valuations of the agents such that any connected allocation yields egalitarian cost at least .

###### Proof.

Let be a star with edges such that every agent has cost exactly for each edge, and the cost is distributed uniformly within the edge. Assume for contradiction that there is a connected allocation with egalitarian cost strictly less than . Let be the endpoints of the edges different from the center of the star. For each , some agent must be allocated a piece containing . If an agent receives a piece containing two endpoints, she incurs cost at least , which is impossible. So every agent’s piece contains at most one endpoint . However, since there are agents and endpoints, some endpoint is left unallocated, a contradiction. ∎

The bound is tight for due to Theorem