Manuscript Offprint
arXiv:2611.08978On the Communication Complexity of Shortcut Set Computation
Abstract
A recent breakthrough of Kogan and Parter (SODA '22) provided the first polynomial improvement in decades on the size/diameter tradeoff available for shortcut sets. However, algorithmic applications of shortcut sets have mostly not taken advantage of these new bounds. A barrier is that many shortcut set applications occur in decentralized settings, and we generally lack decentralized algorithms implementing the Kogan-Parter bounds.
To this end, we study the communication complexity of constructing Kogan-Parter shortcut sets. The edges of an -node directed graph are split between two players, Alice and Bob, who are also given a target diameter . Our main result is a protocol that, for , allows Alice and Bob to agree on a shortcut set matching the Kogan-Parter tradeoff between size and diameter, while exchanging only bits of communication. We also provide (non-matching) lower bounds on the communication complexity required to find a correct -diameter shortcut set of any size.
The main technical ingredient for the upper bounds is a low-communication protocol for finding a path cover, a common subroutine in shortcut set constructions that has attracted some independent interest. Our protocol crucially avoids applications of Menger's theorem or antichain decompositions, as often done in prior work. On the lower bounds side, we relate the communication complexity of the shortcut set problem to the size of bridge-free path systems.
2012 ACM Subject Classification Theory of computation → Design and analysis of algorithms
Keywords and phrases Graph algorithms, communication complexity, distributed computation, shortcut sets
Communication Complexity of Shortcut Set Computation
1 Introduction
We study shortcut sets, a recently-popular primitive in network design:
► Definition 1 (Shortcut Sets [48]). Given a directed n-node graph with transitive closure , a -diameter reducing shortcut set is a set of edges such that, for all pairs , we have .
Shortcut sets are studied in part for their algorithmic applications in various decentralized models of computation, like the parallel, distributed, or dynamic models. In these settings, there are some popular algorithms for reachability or distance problems where the main complexity measure scales with the diameter of the input graph. A shortcut set can be added to the graph as a preprocessing step, thus reducing complexity while leaving reachability information unchanged. This strategy has been extensively used in recent work on reachability and shortest path computation, e.g., [6,10,11,12,13,16,17,21,22,23,24,27,29,35,40,49].
| Shortcut Set size | Citation |
|---|---|
| [49] (see also [7,25,35]) | |
| [5] | |
| [38] (see also [2]) | |
| [33] (see also [9,30]) | |
| [8] | |
| [52] |
Table 1 Known upper and lower bounds on the size of -diameter reducing shortcut sets.
For these applications, it is typically necessary to limit the number of edges in the shortcut set to (roughly) the number of edges in the input graph, so that adding the shortcut edges does not asymptotically change . This has motivated a long line of work studying the extremal tradeoff between the size and diameter bound ; we summarize the progression of results in Table 1. For example, for many years, essentially the best known construction was a simple folklore random sampling algorithm attributed to Ullman and Yannakakis [49], which guaranteed shortcut sets of size that reduced diameter to . Although this algorithm was centralized, this size/diameter tradeoff was later recovered by various decentralized algorithms [7,25,35], which unlocked algorithmic applications. The first polynomial improvement on the Ullman-Yannakakis tradeoff was only achieved recently, in a 2022 breakthrough by Kogan and Parter [38]:
► Theorem 2 ([38]). Every directed n-node graph has a -diameter reducing shortcut set of size .
One would naturally hope to apply these new shortcutting bounds to improve algorithmic applications. However, there is a barrier: so far the algorithms implementing Theorem 2 have been centralized. It is not yet clear how to efficiently construct these shortcut sets in decentralized models, with sufficiently favorable complexity to avoid wiping out the savings from using shortcut sets in the first place. The goal of this paper is to take a step in this direction, by implementing Theorem 2 (and other points on the size/diameter tradeoff curve proved by Kogan and Parter [38]) with low communication complexity. In addition to intrinsic interest in communication complexity as a decentralized model, it is studied due to its extensive connections to other decentralized domains. For an overview we refer to the lecture notes of Roughgarden [47]; some specific applications of communication complexity in the CONGEST distributed model can be found in [1,14,18,19,20,26,31,42,43,44], for example.
► Theorem 3 (Main Result, Upper Bound). For any -node directed graph and any integer , in the two-party communication model where Alice has and Bob has , there is a randomized communication protocol that (deterministically) produces an edge set of size
and (deterministically) uses bits of communication, and where is a -diameter reducing shortcut set with high probability.
These shortcut sets match the size/hopbound tradeoff proved by Kogan and Parter [38] in the parameter range .¹ Our second main result is on the lower bound side.
► Theorem 4 (Main Result, Lower Bound). For any integer and constant , there is a constant such that the following holds. For all sufficiently large and every integer , any randomized two-party protocol that, on every input, makes both players agree on a valid -diameter-reducing shortcut set with probability at least requires
bits of communication in the worst case. This lower bound holds even when there is no restriction on the size of the shortcut set.
To illustrate: for the choice as in Theorem 2, the lower bound on bits of communication is
This is optimized equally well by the choices or , both of which lead to a lower bound of on communication. For , the lower bound is
¹ Kogan and Parter also gave bounds for the regime , where the shortcut set will have size . We do not reproduce these.
Communication Complexity of Shortcut Set Computation
which is optimized by the choice , giving an improved lower bound of . In general, smaller functions will be optimized by larger integers , and yield higher lower bounds. The lower bound in Theorem 4 arises from a reduction to the extremal function of dense path systems without bridge subsystems, as we overview in Section 2.2.
1.2 Other Related Work
Alternate greedy algorithms for shortcut sets have been investigated in [4] (in the context of transitive-closure spanners, a closely related object), and in [2].
The earliest lower bound for size shortcut sets was , achieved by Hesse [30]. This was later improved to by Huang and Pettie [33]. The current state of the art is , achieved by Bodwin and Hopenworth [8]. Recent work on certified shortcut sets [28] has provided analogous lower bounds for a narrower object.
For shortcut sets, the earliest established lower bound was by Hesse [30]. This was later improved to [34,41], and then to by Vassilevska Williams, Xu, and Xu [52]. The current state of the art is [32].
Shortcut sets have also played a central role in parallel algorithms for directed reachability. Fineman used shortcut constructions to obtain a nearly work-efficient parallel algorithm for single-source reachability [24], which has depth . Later work by Jambulapati and others improved the depth to [35].
In the direction of communication complexity of network design problems, Fernandez, Woodruff, and Yasuda studied graph spanners in a message-passing model [50].
2 Technical Overview
2.1 Upper Bound Approach
The communication complexity of computing shortcut sets has not been explicitly studied previously. However, for any diameter bound , there is a straightforward implementation of ideas in prior work that gives an upper bound of . We first sketch this straightforward upper bound. Then we will overview the new ideas that we introduce in order to improve the upper bound to . We will simplify our discussion by focusing on the setting , but these ideas extend immediately to general , which is considered in the paper.
2.1.1 The Simple -Communication Upper Bound
First, Alice and Bob agree on a random subset of nodes. Then, Alice and Bob run an out- and in-BFS search from each node in . There is a protocol to do so that uses bits of communication per source node, based on a slight tweak of a protocol described in [50] (c.f. Lemma 9). Thus bits are communicated in total.
At the end of the protocol, we claim that both Alice and Bob have sufficient information to each compute a state of the art shortcut set for the original graph in a black-box way. More specifically, letting be the subgraph containing only the edges in the BFS trees that they have computed, we claim that (with high probability) a -diameter-reducing shortcut set for is also an -diameter-reducing shortcut set for . To see that this is the case, notice that for every pair of nodes in , if we sample a node that lies along a path, then there will still be a path in , and so the shortcut set for will reduce to at most . Since our sampling rate is , with high probability, we will sample such a node for all pairs with .
2.1.2 Key Ideas for a Communication Bound
Now we will describe the weakness in the straightforward protocol that we plan to improve. This protocol does not take advantage of the technical details of the current state-of-the-art centralized shortcut set construction by Kogan and Parter [38] (henceforth, the KP algorithm). We will apply the KP algorithm to the communication setting in a white-box manner.
The natural implementation of the KP algorithm still turns out to be communication-heavy. The main communication bottleneck turns out to be the computation of a path cover, a basic technical ingredient used in the KP algorithm. A path cover is a set of paths in the transitive closure with the following properties:
-
The paths in are pairwise node-disjoint,
-
has size ,
-
For each path in , at most nodes in are not contained in any of the paths .
A direct implementation of the folklore greedy path cover algorithm requires Alice and Bob to find two reachable nodes at distance for each path in the cover. The most natural way to do so involves solving a single-source reachability problem for each path. Using the -bit single-source protocol described above separately for each of the paths gives a communication bound of , matching the straightforward algorithm sketched previously. In the centralized setting, faster path-cover constructions are known, including the min-cost-flow-based approach of Kogan and Parter [37]. Their running-time guarantees do not by themselves yield low-communication implementations.
Our main technical contribution is a new dynamic data structure that allows Alice and Bob to compute a path cover with only bits of communication. Our key idea is to compute the path cover on the basis of longest paths between node pairs, rather than shortest paths. The advantage of doing so is that updating the data structure after every new path is added to the cover would be expensive if we focused on shortest paths, but the updates are cheaper when focusing on longest paths.
The bulk of the cost when focusing on shortest paths comes from the fact that longest shortest path distance calculations from a specific node can be unrelated to longest shortest path distance calculations from its reachable neighbors. Therefore, naively, it seems necessary to compute a separate reachability tree for each node.
On the other hand, the maximum length of any path starting from each node can be computed by only focusing on the immediate out-neighbors of the node. This is particularly good for the communication complexity setting, as the players can perform unlimited computation locally based on their own edges and limit communication only to when a change to the data structure is necessary.
In addition to the new data structure, we use one more technical departure from the KP algorithm. After computing the path cover, the KP algorithm includes a shortcutting step that requires computing reachability between specific pairs of nodes. The KP algorithm adds shortcut edges from a random sample of nodes to certain nodes along a random sample of paths from the cover; doing so requires us to fully compute the reachability relation between nodes in and nodes that lie on paths in . A naive implementation performs a BFS search from each , or a reverse-BFS search from each node on a path in , but both of these strategies would again require bits of communication. We improve this to bits using a path-BFS procedure, which is run from each path rather than each node . Details are provided in Section 4.1. Related centralized computations of the first reachable vertex on a path appear in Kogan and Parter [37, Lemma 3.1].
Communication Complexity of Shortcut Set Computation
2.2 Lower Bound Approach
We obtain our communication lower bound by employing path systems with useful structure that were shown to recover the lower bound for shortcut sets in the centralized setting [9]. More specifically, we embed one large set-disjointness instance into the edges of an acyclic, -bridge-free path system. The key property is that every subpath of a system path is the unique directed path between its endpoints in the union graph. Consequently, a valid shortcut whose endpoints lie on a system path certifies that every edge of the intervening subpath is present in the input graph.
► Definition 5. In DISJ, Alice and Bob receive vectors and must decide whether there is no coordinate with . For any fixed error probability below , this requires bits of communication.
The above problem is widely studied, and has found various applications (see for example [3,15,36,39,46,51]).
Encode DISJ on the edges of a public path system with paths: Alice includes iff , and Bob iff . Missing edges thus correspond to intersecting coordinates. By uniqueness, a correct -diameter-reducing shortcut set certifies the presence of every edge it bypasses along a system path.
While the most current shortcut set lower bounds do not use bridge-free path systems (see [8]), the bridge-free path system constructions are better suited for showing stronger communication complexity lower bounds because of their size. To our knowledge, this is the first time that bridge-free path systems are used to establish communication complexity lower bounds, and it is an interesting question whether they might be applicable to more problems in the area.
3 Preliminaries
The graphs in this paper are directed. We sometimes use the notation . Here , , and .
The concept of communication complexity was first introduced by Yao [53]. We use the standard two-party communication model with shared randomness; see [39]. Alice and Bob receive private inputs, perform unrestricted local computation, and communicate by exchanging bits. The communication cost is the maximum number of bits exchanged over all inputs and all outcomes of the randomness.
For the shortcut-set problem, the protocol succeeds when both players output the same valid shortcut set. A protocol has error at most if it succeeds with probability at least on every input. For a communication problem , we write for the minimum communication cost of a protocol solving with error at most .
4 Shortcut Set Upper Bound:
To prove Theorem 3, we show that it suffices to focus on the case where the input graph is acyclic and the length of any path in the graph is bounded. This is proved in Section B. More concretely, for the rest of this section, we assume that the input graph is 1. acyclic and
- for any directed path in , the number of nodes in is at most , where is the target diameter bound.
We will consider the following computational problems in the 2-party communication setting and use communication bounds on these problems to prove Theorem 3.
► Definition 6 (PATHCOVER). In the PATHCOVER computational problem in the 2-party communication setting, two players (Alice and Bob) are given a parameter and directed edge sets and on nodes . The goal is to compute a set of paths in the transitive closure of , so that
(1) the paths in are node disjoint,
(2) for every path in with , at most nodes are not in , and
(3) for every path , the length of the path is .
The above concept is related to chain-antichain decompositions appearing in previous work on shortcut sets (for example, [38]).
► Definition 7 (PATHBFS). In the PATHBFS computational problem in the 2-party communication setting, two players (Alice and Bob) are given directed edge sets and on nodes , and a directed path . The edges along may or may not be in , but for each consecutive pair of vertices along , it is guaranteed that there is an to path in . The goal is to compute a subgraph of with the following property:
■ For every pair of vertices (), if there is a to path in , then there is also a to path in .
We describe the algorithm for ; smaller values of are handled by the constant-diameter case in Section B. Fix a sufficiently large absolute constant . All random choices are public, and the vertex sample is independent of the path sample. For a path , let denote its consecutive-vertex edges.
Algorithm 1 2-Player Shortcut Set Computation
Input : An -vertex DAG and
Output: An edge set that reduces the hop diameter to at most with high probability
foreach do
Construct a canonical two-hop shortcut set for , with edges, as in [45]
Form by including paths from uniformly at random
foreach do
Choose by including vertices from uniformly at random
foreach and do
if some vertex of is reachable from in then
Let be the first such vertex along
if then
return
Communication Complexity of Shortcut Set Computation
We note that Algorithm 1 makes calls to PathBFS and PathCover, which are interactive protocols between Alice and Bob that are defined in Sections 4.1 and 4.2. These protocols solve the computational problems with the same names, as specified in Definitions 7 and 6.
► Lemma 8. Algorithm 1 outputs a D-diameter reducing shortcut set with high probability.
Proof. We note that the underlying shortcut set algorithm in this communication protocol is the algorithm from [38], which we recap in 2.1, and so the proof of correctness from [38] holds without significant modification. However, we remark that there are two minor deviations. One is that [38] uses a slightly different parametrization ( rather than ). The other is that, to check connectivity between the sampled nodes and the sampled paths , the two players compute a subgraph of . Due to the properties of PathBFS stated in Definition 7, we can conclude that for every vertex and , if there is a to path in then there is also a to path in . Therefore, the proof of correctness given in [38] applies without significant modification.
► Lemma 9. Algorithm 1 computes an edge set of size
using
bits of communication (deterministically).
Proof. There are at most
edges in ; note that , so the latter term dominates.
Note that there are two steps that require any communication: the calls to PathCover and PathBFS. The cost of the call to PathCover is bounded by . There are at most calls to PathBFS, so their cost is bounded by .
► Lemma 10.
► Lemma 11.
We defer the proofs of Lemmas 10 and 11 to Sections 4.2 and 4.1, respectively. For now, we show how they imply the main upper bound result in our paper.
(Proof of Theorem 3 using Lemmas 10 and 11). Plugging in the inequalities from Lemmas 10 and 11 into the bit upper bound from Lemma 9, we conclude that, given any graph and a parameter in the 2-player communication complexity setting, there is a 2-player communication protocol that uses
bits and returns a set of edges with size that is a -diameter reducing shortcut set for with high probability.
4.1 Implementation of PathBFS
Our implementation of PathBFS requires a communication protocol to solve the usual single node BFS problem in the 2 player communication complexity setting. The following definition specifies the BFS problem. The definition of BFS is analogous.
► Definition 12 (BFS). In the BFS problem in the 2-party communication setting, two players (Alice and Bob) are given directed edge sets and on nodes , and a node . The goal is to compute a subgraph of so that for each pair of nodes , where is the input node and is any node in , it is the case that
► Lemma 13 ([50]). Given an instance of BFS, there exists a 2 player communication protocol that outputs a solution to the problem using bits.
For the implementation of a protocol that solves BFS using bits of communication please refer to Lemma 9 and its proof in [50]. Their algorithm is tailored to a slightly different setting, but it can also solve the problem in Definition 12 without significant edits (see their Appendix A).
Algorithm 2 PathBFS Interactive Protocol
Input : Directed graph , directed path in
Output: A subgraph satisfying Definition 7
foreach in increasing order do
foreach in decreasing order do
► Lemma 14. Algorithm 2 correctly solves PATHBFS, and uses bits of communication.
Proof. To see that the algorithm correctly solves PATHBFS, note that for each node , Alice and Bob run a BFS interactive protocol rooted at at some point during the algorithm. Therefore, if is the last node along , then for each pair of vertices with a path in , some to path was added to by the correctness of BFS. If is not the last node along , let be the nodes that come after along . If there is a path in BFS, then we are done. Otherwise, there exists a vertex that comes after along such that there is a path in BFS. Therefore, there is a path in . The analogous is true for each pair of vertices .
Within the BFS pass, each search is run after deleting all vertices in the outputs of earlier outgoing searches. Thus the output vertex sets are pairwise disjoint, and their total size is at most . The same argument applies separately to the BFS pass. Although incoming and outgoing searches may overlap, the total number of vertices summed over all search outputs is therefore at most . By Lemma 13, the total communication is bits.
Communication Complexity of Shortcut Set Computation
4.2 Implementation of PathCover using a Data Structure
In this section, we specify a data structure jointly maintained by two players in the 2-party communication complexity setting that supports a vertex-marking operation using bounded communication for updates. Assuming the existence of this data structure, we give an algorithm that queries this data structure to compute a path cover of a given directed acyclic graph using bounded communication. In the next section, we will prove that this data structure actually exists.
► Lemma 15. In the 2-player CC model, there is a data structure shared between the two players (say Alice and Bob) that preprocesses an -node graph with a fixed parameter , so that after preprocessing
(1) All nodes are initially unmarked.
(2) The data structure supports operation QueryPath() that does one of the following
(a) Return a path in that contains at least unmarked nodes and marks all the unmarked nodes along .
(b) Reports that there is no such path.
(3) The total bits of communication across any sequence of operations is
Assuming the existence of the data-structure in Lemma 15, Alice and Bob can compute a path cover for as described in Algorithm 3. In the algorithm, for each returned by QueryPath(), we use to refer to the nodes along that were newly marked by the corresponding QueryPath() operation.
Algorithm 3 PathCover()
Input : Directed acyclic graph , parameter
Output: Path cover
Initialize a data structure with parameter from Lemma 15
while do
add to
return
► Lemma 16. Given a DAG in the 2-party CC setting, Algorithm 3 computes a correct path cover of using
bits of communication.
(Proof of Lemma 16 assuming Lemma 15). We first note that a set of paths returned by Algorithm 3 is a solution to the PATHCOVER problem defined in Definition 6. Note that the paths in meet requirements (1) and (3) of Definition 6 by construction of QueryPath(). Since the algorithm continues until there are no more paths in with unmarked nodes, property (2) of Definition 6 is also satisfied. Moreover, the only steps of the algorithm that require communication between Alice and Bob are the calls to QueryPath(). Thus, by property (3) of Lemma 15, the total amount of communication is upper-bounded by .
4.3 Implementation of Data Structure in Lemma 15
4.3.1 List of Data
To implement a data structure that meets the criteria in Lemma 15, Alice and Bob will each maintain the following data:
For each node , Alice and Bob maintain a bool , which signifies whether is marked.
Let us say that a path is -starting (or -starting) if it consists of a single vertex or its first edge belongs to (). For each node , Alice and Bob will maintain integer labels and , each in the range . The label will be the minimum of , and the largest number of unmarked nodes in any -starting path whose first node is . The label is defined similarly (with -starting paths). We will also write .
4.3.2 Preprocessing
In the preprocessing step, Alice and Bob aim to initialize a data structure from Lemma 15 while limiting the amount of communication exchanged.
► Lemma 17. For any directed, acyclic -node graph and parameter in the 2-party communication complexity model, there is an bit protocol to set up a data structure from Lemma 15.
Proof. Consider the following protocol:
All nodes begin unmarked.
For each vertex , initialize its labels and to 1.
Alice and Bob alternate sending messages as follows. On Alice's turn, for every node with , she computes
Then, she sends over the names and new labels for any nodes with . Alice and Bob both update for any such nodes.
Bob's message is analogous.
The process halts once Alice and Bob send over an empty list on consecutive rounds.
Note that each node will be sent at most times, since its label or increases each time it is sent, but cannot exceed . The number of bits communicated across all empty list messages is also (note that we consider an empty list to be a special message, which requires bits to distinguish it from other messages). The upper bound holds because for each Alice-Bob pair of messages sent, at least one node's label increases by .
We next argue correctness of the labels set by the above protocol:
▷ Claim 18. For all integers and all nodes , the label of is iff there is a path in that starts with and uses unmarked nodes.
Proof.
Communication Complexity of Shortcut Set Computation
( ) Suppose has label . We would like to show that there exists a path in that starts with and has unmarked nodes. In the case that , for any node with , the one-node path has exactly 1 unmarked node. Then, we consider . For any node with , there is a node in its out-neighborhood that has label . Applying the inductive hypothesis, let be a path in that starts with and has unmarked nodes. Concatenating to the start of gives a path in that starts with and has unmarked nodes.
() Suppose that for a node and an integer , there exists a path in that starts with and has unmarked nodes. The claim can be proved by induction. In the case that , for every vertex , its label is automatically , as 1 is the starting value for every vertex. We now focus on the case . For any node , assume there exists a path in that starts with and has unmarked nodes. Then there exists an out-neighbor of , so that there is a path in that starts at and uses unmarked nodes. By inductive hypothesis, has label . Therefore, according to the label setting protocol, either or .
4.3.3 Marking Nodes
After marking (possibly batches of) nodes, the following lemma summarizes how Alice and Bob maintain the data structure:
Lemma 19. Given a data structure specified in Lemma 15, there exists a 2-party communication protocol that guarantees that the properties specified in Lemma 15 continue to hold for after every node-marking operation, and which uses bits of communication across any sequence of node-marking operations.
Proof. Consider the following protocol between Alice and Bob:
For a vertex v that was marked, set its bool marked(v) to true.
Alice and Bob exchange messages until they both send empty lists in two consecutive messages. Each message exchange proceeds as follows:
When it is Alice's turn to send a message, for every node , she computes as follows:
- If marked(v) = false, then
- If marked(v) = true, then
Then, in the message, she sends the node names and new labels for any nodes with . If the list of nodes sent by Alice is not empty, then for all such nodes , Alice and Bob update .
Bob's message is analogous.
First, note that for each node , its labels and can only decrease. Therefore, across all node-marking operations, a node can be sent in at most messages. Additionally, the number of bits required across all empty list messages is at most , since for every pair of consecutive messages following a node-marking operation (except the last pair), at least one of the messages is a node with a newly updated label.
To show correctness of the new labels after each node-marking operation, we prove the following claim:
▷ Claim 20. For all integers and all nodes , the label of is iff there is a path in that starts with and uses at least unmarked nodes.
Proof. After the update protocol terminates, we prove the claim for all at once, starting with vertices of out-degree zero and then considering each vertex after the claim has been proved for all its out-neighbors. This is possible because is acyclic.
() For any and node , suppose that there exists a path in that starts with and has at least unmarked nodes. In the case that , it trivially holds that for every node , its label is . We now discuss the case that . For any node , assume there exists a path in that starts with and has at least unmarked nodes. Then, there are two cases. One case is that . Then, it must be true that is unmarked and . The second case is that . Then, since , there exists an out-neighbor of , such that there's a path in that starts with and uses unmarked nodes if is unmarked and unmarked nodes if is marked. By the inductive hypothesis, has label if is unmarked or if is marked. Therefore, according to the label update protocol, either or .
() In the other direction, suppose has label . We would like to show that there exists a path in that starts with and has at least unmarked nodes. In the case that , it trivially holds that any path starting with has unmarked nodes. In the case that , there are two possibilities. The first is that . Then, is unmarked and . The one-node path confirms the claim. The second possibility is that . Since , note that for a node with , there is a node in its out-neighborhood that has label if is unmarked or if is marked. Let be a path in that starts with and has or unmarked nodes, in the cases that is unmarked and marked respectively. Concatenating to the start of gives a path in that starts with and has unmarked nodes.
4.3.4 Implementing QueryPath()
Recall that the QueryPath() operation consists of finding a path with uncovered nodes, followed by marking all vertices along the path. So far, we gave the two-party communication protocol used to maintain the data structure after vertex-marking operations. It remains to show a communication-efficient protocol that finds a path in with uncovered nodes.
To return a path with at least unmarked nodes, Alice and Bob can start by finding a vertex with a maximum label among all the vertices. There are two cases, depending on the label of :
Case 1 is that . For this case, we will show that there is no path in containing unmarked nodes.
Case 2 is that . For this case, we will give a two-party protocol to find a path with unmarked nodes that starts with .
Communication Complexity of Shortcut Set Computation
► Lemma 21. If at any point every node has label , then there is no path in with unmarked nodes.
Proof. This follows directly from Claims 18 and 20. The invariants on label values imply that the value of its label is equal to the maximum number of unmarked nodes that can be found along a simple path in that has as its first node.
The rest of this section focuses on giving the details of the path finding process in the case that there exists a node with label .
► Lemma 22. For every integer , if there exists a node with label , then there is a two-party communication protocol that finds a path with unmarked nodes using bits of communication.
Proof. For a fixed integer , if there exists a node with label , then Alice and Bob can find a path in with unmarked nodes using the following protocol:
-
Let the first node along be . Alice and Bob will repeatedly exchange messages to pick the next node to add to until the last node along has out-degree 0.
-
Let be the last node along . Suppose has out-degree in .
-
Both Alice and Bob will pick and send a vertex and with
Or send NULL if has out-degree zero in their respective subgraph.
- The next node along is whichever node among and has the higher label.
The protocol uses bits of communication because for every round of message exchanges, at least one new node is concatenated to the end of .
To prove that the final path contains at least unmarked nodes, observe that if a node on is marked, then its successor on has label , whereas if is unmarked, then its successor has label at least . It follows that along , the label can either remain unchanged or decrease by exactly 1, and the latter can occur only at an unmarked node. Let be the last node of . There are exactly label decreases along , each accounting for a distinct unmarked node before . Since has out-degree zero, if is unmarked and otherwise. Counting as well, the total number of unmarked nodes is therefore at least
► Lemma 23. Across any sequence of QueryPath() operations, Alice and Bob spend bits of communication on finding all of the paths returned in this sequence (not including the updates to the data structure from vertex-marking operations).
Proof. Each QueryPath() operation finds and marks at least nodes, so there are at most operations. Every path found by QueryPath() has at most nodes, since the longest path length in is bounded by (refer to Section B.2). Therefore, bits are communicated across any sequence of QueryPath() operations.
Proof of Lemma 15. Lemma 17 initializes the data structure with all vertices unmarked. Since the labels are known to both players, they can determine without communication whether some vertex has label at least . If no such vertex exists, Lemma 21 justifies returning NULL. Otherwise, Lemma 22 finds a path containing at least unmarked vertices. The players mark these vertices and maintain the labels using Lemma 19. Thus the query operation satisfies the requirements of Lemma 15.
Preprocessing uses bits by Lemma 17, and all marking updates together use bits by Lemma 19. By Lemma 23, finding all returned paths uses bits in total. Therefore, the total communication is .
Combining Lemmas 15 and 16 proves Lemma 10. Lemma 11 follows directly from Lemma 14.
Disclosure of AI assistance.
The authors used ChatGPT (OpenAI) for manuscript review and editing. This included reviewing mathematical arguments, assisting with localized proof corrections (primarily in the appendix lemmas), and revising proof exposition. It also assisted with citation checks and LaTeX editing. It was not used to develop the main ideas behind the presented results. The authors take full responsibility for the manuscript and its results.
Communication Complexity of Shortcut Set Computation
References
1 Nir Bacrach, Keren Censor-Hillel, Michal Dory, Yuval Efron, Dean Leitersdorf, and Ami Paz. Hardness of distributed optimization. In Proceedings of the 2019 ACM Symposium on Principles of Distributed Computing, pages 238–247, 2019.
2 Ben Bals, Joakim Blikstad, Greg Bodwin, Daniel Dadush, Sebastian Forster, and Yasamin Nazari. Greedy algorithms for shortcut sets and hopsets. arXiv preprint arXiv:2511.20111, 2025.
3 Ziv Bar-Yossef, T. S. Jayram, Ravi Kumar, and D. Sivakumar. An information statistics approach to data stream and communication complexity. Journal of Computer and System Sciences, 68(4):702–732, 2004.
4 Piotr Berman, Sofya Raskhodnikova, and Ge Ruan. Finding Sparse Directed Spanners.
5 Piotr Berman, Sofya Raskhodnikova, and Ge Ruan. Finding sparser directed spanners. In IARCS Annual Conference on Foundations of Software Technology and Theoretical Computer Science (FSTTCS 2010), pages 424–435. Schloss Dagstuhl-Leibniz-Zentrum fuer Informatik, 2010.
6 Aaron Bernstein, Maximilian Probst Gutenberg, and Thatchaphol Saranurak. Deterministic decremental SSSP and approximate min-cost flow in almost-linear time. In 62 Annual IEEE Symposium on Foundations of Computer Science (FOCS 2022), 2021.
7 Arnab Bhattacharyya, Elena Grigorescu, Kyomin Jung, Sofya Raskhodnikova, and David P Woodruff. Transitive-closure spanners. SIAM Journal on Computing, 41(6):1380–1425, 2012.
8 Greg Bodwin and Gary Hoppenworth. Folklore Sampling is Optimal for Exact Hopsets: Confirming the Barrier. In 2023 IEEE 64th Annual Symposium on Foundations of Computer Science (FOCS), pages 701–720. IEEE, 2023. doi:10.1109/FOCS57990.2023.00046.
9 Greg Bodwin, Gary Hoppenworth, and Ohad Trabelsi. Bridge girth: A unifying notion in network design. In 2023 IEEE 64th Annual Symposium on Foundations of Computer Science (FOCS), pages 600–648. IEEE, 2023.
10 Nairen Cao and Jeremy T Fineman. Parallel exact shortest paths in almost linear work and square root depth. In Proceedings of the 2023 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 4354–4372. SIAM, 2023.
11 Nairen Cao, Jeremy T. Fineman, and Katina Russell. Efficient construction of directed hopsets and parallel approximate shortest paths. In Proceedings of the 52nd Annual ACM SIGACT Symposium on Theory of Computing, STOC 2020, pages 336–349, New York, NY, USA, 2020. Association for Computing Machinery. event-place: Chicago, IL, USA. doi: 10.1145/3357713.3384270.
12 Nairen Cao, Jeremy T Fineman, and Katina Russell. Improved work span tradeoff for single source reachability and approximate shortest paths. In ACM Symposium on Parallelism in Algorithms and Architectures, 2020.
13 Keren Censor-Hillel, Michal Dory, Janne H Korhonen, and Dean Leitersdorf. Fast approximate shortest paths in the congested clique. Distributed Computing, 34:463–487, 2021.
14 Keren Censor-Hillel, Telikepalli Kavitha, Ami Paz, and Amir Yehudayoff. Distributed construction of purely additive spanners. Distributed Computing, 31(3):223–240, 2018.
15 Arkadev Chattopadhyay and Toniann Pitassi. The story of set disjointness. SIGACT News, 41(3):59–85, 2010.
16 Li Chen, Rasmus Kyng, Yang P Liu, Richard Peng, Maximilian Probst Gutenberg, and Sushant Sachdeva. Maximum flow and minimum-cost flow in almost-linear time. In 2022 IEEE 63rd Annual Symposium on Foundations of Computer Science (FOCS), pages 612–623. IEEE, 2022.
17 Edith Cohen. Polylog-time and near-linear work approximation scheme for undirected shortest paths. Journal of the ACM (JACM), 2000.
18 Atish Das Sarma, Stephan Holzer, Liah Kor, Amos Korman, Danupon Nanongkai, Gopal Pandurangan, David Peleg, and Roger Wattenhofer. Distributed verification and hardness of distributed approximation. In Proceedings of the forty-third annual ACM symposium on Theory of computing, pages 363–372, 2011.
19 Andrew Drucker, Fabian Kuhn, and Rotem Oshman. On the power of the congested clique model. In Proceedings of the 2014 ACM symposium on Principles of distributed computing, pages 367–376, 2014.
20 Michael Elkin. Unconditional lower bounds on the time-approximation tradeoffs for the distributed minimum spanning tree problem. In Proceedings of the thirty-sixth annual ACM symposium on Theory of computing, pages 331–340, 2004.
21 Michael Elkin and Ofer Neiman. Near-optimal distributed routing with low memory. In Proceedings of the ACM Symposium on Principles of Distributed Computing. ACM, 2018.
22 Michael Elkin and Ofer Neiman. Hopsets with constant hopbound, and applications to approximate shortest paths. SIAM Journal on Computing, 2019.
23 Michael Elkin and Ofer Neiman. Linear-size hopsets with small hopbound, and constant-hopbound hopsets in RNC. In The 31st ACM Symposium on Parallelism in Algorithms and Architectures, pages 333–341, 2019.
24 Jeremy T Fineman. Nearly work-efficient parallel algorithm for digraph reachability. In Proceedings of the 50th Annual ACM SIGACT Symposium on Theory of Computing, pages 457–470, 2018.
25 Jeremy T Fineman. Nearly work-efficient parallel algorithm for digraph reachability. SIAM Journal on Computing, 49(5):STOC18–500, 2019.
26 Silvio Frischknecht, Stephan Holzer, and Roger Wattenhofer. Networks cannot compute their diameter in sublinear time. In Proceedings of the twenty-third annual ACM-SIAM symposium on Discrete Algorithms, pages 1150–1162. SIAM, 2012.
27 Maximilian Probst Gutenberg and Christian Wulff-Nilsen. Deterministic algorithms for incremental approximate shortest paths: Faster and simpler. In Proceedings of the Fourteenth Annual ACM-SIAM Symposium on Discrete Algorithms, pages 2522–2541. SIAM, 2020.
28 Bernhard Haeupler, Antti Roeyskoe, and Zhijun Zhang. Better diameter bounds for efficient shortcuts and a structural criterion for constructiveness, 2026. arXiv:2602.10747.
29 Monika Henzinger, Sebastian Krinningger, and Danupon Nanongkai. Decremental single-source shortest paths on undirected graphs in near-linear total update time. In 2014 IEEE 55th Annual Symposium on Foundations of Computer Science, pages 146–155. IEEE, 2014.
30 William Hesse. Directed graphs requiring large numbers of shortcuts. In Proceedings of the fourteenth annual ACM-SIAM symposium on Discrete algorithms, pages 665–669. Society for Industrial and Applied Mathematics, 2003.
31 Stephan Holzer and Roger Wattenhofer. Optimal distributed all pairs shortest paths and applications. In Proceedings of the 2012 ACM symposium on Principles of distributed computing, pages 355–364, 2012.
32 Gary Hoppenworth, Yinzhan Xu, and Zixuan Xu. New separations and reductions for directed hopsets and preservers. In 2025 ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 4405–4443, 2025.
33 Shang-En Huang and Seth Pettie. Lower Bounds on Sparse Spanners, Emulators, and Diameter-reducing shortcuts. In David Eppstein, editor, 16th Scandinavian Symposium and Workshops on Algorithm Theory (SWAT 2018), volume 101 of Leibniz International Proceedings in Informatics (LIPIcs), pages 26:1–26:12, Dagstuhl, Germany, 2018. Schloss Dagstuhl-Leibniz-Zentrum fuer Informatik. URL: http://drops.dagstuhl.de/opus/volltexte/2018/8852, doi:10.4230/LIPIcs.SWAT.2018.26.
34 Shang-En Huang and Seth Pettie. Lower Bounds on Sparse Spanners, Emulators, and Diameter-Reducing Shortcuts. SIAM Journal on Discrete Mathematics, 35(3):2129–2144, January 2021. URL: https://epubs.siam.org/doi/10.1137/19M1306154, doi:10.1137/19M1306154.
35 Arun Jambulapati, Yang P Liu, and Aaron Sidford. Parallel reachability in almost linear work and square root depth. In 2019 IEEE 60th Annual Symposium on Foundations of Computer Science (FOCS), pages 1664–1686. IEEE, 2019.
Communication Complexity of Shortcut Set Computation
36 Bala Kalyanasundaram and Georg Schnitger. The probabilistic communication complexity of set intersection. SIAM Journal on Discrete Mathematics, 5(4):545–557, 1992. 37 Shimon Kogan and Merav Parter. Beating Matrix Multiplication for -Directed Shortcuts. In 49th International Colloquium on Automata, Languages, and Programming (ICALP 2022), volume 229 of Leibniz International Proceedings in Informatics (LIPIcs), pages 82:1–82:20. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2022. URL: https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.ICALP.2022.82, doi:10.4230/LIPICS.ICALP.2022.82. 38 Shimon Kogan and Merav Parter. New diameter-reducing shortcuts and directed hopsets: Breaking the barrier. In Proceedings of the 2022 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 1326–1341. SIAM, 2022. 39 Eyal Kushilevitz and Noam Nisan. Communication Complexity. Cambridge University Press, 1997. 40 Jakub Łącki and Yasamin Nazari. Near-optimal decremental hopsets with applications. In 49th International Colloquium on Automata, Languages, and Programming (ICALP 2022). Schloss Dagstuhl-Leibniz-Zentrum für Informatik, 2022. 41 Kevin Lu, Virginia Vassilevska Williams, Nicole Wein, and Zixuan Xu. Better Lower Bounds for Shortcut Sets and Additive Spanners via an Improved Alternation Product. In Proceedings of the 2022 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 3311–3331. 2022. _eprint: https://epubs.siam.org/doi/pdf/10.1137/1.9781611977073.131. URL: https://epubs.siam.org/doi/abs/10.1137/1.9781611977073.131, doi:10.1137/1.9781611977073.131. 42 Danupon Nanongkai. Distributed approximation algorithms for weighted shortest paths. In Proceedings of the forty-sixth annual ACM symposium on Theory of computing, pages 565–573, 2014. 43 Danupon Nanongkai, Atish Das Sarma, and Gopal Pandurangan. A tight unconditional lower bound on distributed randomwalk computation. In Proceedings of the 30th annual ACM SIGACT-SIGOPS symposium on Principles of distributed computing, pages 257–266, 2011. 44 David Peleg and Vitaly Rubinovich. A near-tight lower bound on the time complexity of distributed minimum-weight spanning tree construction. SIAM Journal on Computing, 30(5):1427–1442, 2000. 45 Sofya Raskhodnikova. Transitive-closure spanners: A survey. In Property testing, pages 167–196. Springer, 2010. 46 Alexander A. Razborov. On the distributional complexity of disjointness. Theoretical Computer Science, 106(2):385–390, 1992. 47 Tim Roughgarden et al. Communication complexity (for algorithm designers). Foundations and Trends® in Theoretical Computer Science, 11(3-4):217–404, 2016. 48 Mikkel Thorup. On shortcutting digraphs. In International Workshop on Graph-Theoretic Concepts in Computer Science, pages 205–211. Springer, 1992. 49 Jeffrey D Ullman and Mihalis Yannakakis. High-probability parallel transitive-closure algorithms. SIAM Journal on Computing, 20(1):100–125, 1991. 50 Manuel Fernández V, David P. Woodruff, and Taisuke Yasuda. Graph Spanners in the Message-Passing Model. In Thomas Vidick, editor, 11th Innovations in Theoretical Computer Science Conference (ITCS 2020), volume 151 of Leibniz International Proceedings in Informatics (LIPIcs), pages 77:1–77:18, Dagstuhl, Germany, 2020. Schloss Dagstuhl–Leibniz-Zentrum fuer Informatik. URL: https://drops.dagstuhl.de/opus/volltexte/2020/11762, doi:10.4230/LIPIcs.ITCS.2020.77. 51 Omri Weinstein. The simultaneous communication of disjointness with applications to data streams. In Proceedings of the 32nd International Symposium on Theoretical Aspects of Computer Science (STACS), pages 108–120, 2015. 52 Virginia Vassilevska Williams, Yinzhan Xu, and Zixuan Xu. Simpler and higher lower bounds for shortcut sets. In Proceedings of the 2024 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 2643–2656. SIAM, 2024.
53 Andrew Chi-Chih Yao. Some complexity questions related to distributive computing. In Proceedings of the Eleventh Annual ACM Symposium on Theory of Computing, STOC '79, pages 209–213. Association for Computing Machinery, 1979.
Communication Complexity of Shortcut Set Computation
A Lower Bound
In this section, we focus on lower bounding the amount of communication required to compute a -diameter reducing shortcut set for a fixed parameter . This is done by embedding a large instance of SETDISJ in a -bridge-free path system.
-
A path system is a pair , where is a set of vertices and is a multiset of simple vertex sequences called paths; its size is .
-
A -bridge in consists of distinct vertices and distinct paths such that precedes on for every , while precedes on ; is called the river and the other paths are arcs.
-
The bridge girth of is the minimum for which a -bridge exists, or if no bridge exists. Thus, is -bridge-free if its bridge girth is greater than .
-
Finally, denotes the maximum possible size of a path system on vertices and paths with bridge girth greater than .
We use the following consequence of the known lower bounds for infinite bridge girth. Recall that the size of a path system is .
► Lemma 24 (Path-system input lemma). Fix an integer and a constant . There is a constant such that, for all sufficiently large and every integer , there is an acyclic, -bridge-free path system on at most vertices satisfying
Proof. We may assume . Corollaries 41 and 42 of [9], together with the single -vertex path, give a constant such that, for every integer , there is such a system with at most nonempty paths and size
Choose , and set
The resulting system satisfies and
Since and , we have . Thus and .
► Theorem 25 (Communication lower bound). Fix an integer and an error bound . There is a constant such that, for all sufficiently large and every integer , every two-party protocol that outputs a correct -diameter-reducing shortcut set with error at most has worst-case communication cost
Here Alice and Bob receive edge sets defining , the sets may overlap, and both players agree on a shortcut set. The bound holds even for DAGs, with no restriction on the shortcut-set size.
Proof. Let satisfy . Apply Lemma 24 with a sufficiently small constant , to be chosen below. Let be the union of the path edges, padding with isolated vertices to obtain vertices. Infinite bridge girth implies that the paths are edge-disjoint and that every forward subpath is the unique directed path in ; see [9, proof of Lemma 40]. In particular, .
The path system and the ordering of are fixed and known to both players, independent of their vectors in the game or their edge sets in the shortcut set game.
Index an instance of by these edges, and define
Thus an edge is missing from exactly when .
Run any shortcut set protocol that uses bits. Each player uses their own output as below; when the protocol succeeds, these outputs coincide.
For each , let be its edges not spanned by any shortcut edge:
Whenever the shortcut protocol succeeds, the following hold.
-
Every edge in is present in . This is because every edge in the shortcut set is from the transitive closure of , so it certifies a path in . Additionally, if the shortcut edge endpoints are found along a path , then the subpath is the unique to path in , so all edges along must be present in .
-
If every edge of is present in then . This is because there is a unique path for each pair of endpoints and reduces the diameter of the graph to below . Thus, the path between the endpoints of in would need to use all the edges in and have at most edges.
For , let be the set computed from player 's output, and let . Alice sends the bits in the public edge order, truncating or padding with zeros to exactly bits. If Bob finds some with , he answers “not disjoint.” Otherwise, , and Bob compares the first received bits with in the public edge order. He answers “disjoint” exactly when for every bit index , at least one of the entries at is 0.
Choose small enough that is at most for sufficiently large . The resulting disjointness protocol has error at most , because its postprocessing is correct whenever is correct. Consequently, , so . The claimed bound follows from Lemma 24.
B Simplifying Reductions in the Upper Bound
B.1 A low-communication reduction to DAGs
Lemma 26 (SCC contraction). Given a directed graph on vertices, Alice and Bob can identify all strongly connected components using bits of communication. Once the SCC partition is known, they can agree without further communication on shortcut edges that give hop diameter at most 2 inside every strongly connected component.
Proof. The players maintain a current graph obtained by contracting already identified strongly connected sets, a stack of current vertices, and a set of finished vertices. The stack
Communication Complexity of Shortcut Set Computation
is ordered from bottom to top. Whenever a set is contracted, each player maps the endpoints of her or his local edges to the new supervertex and discards self-loops.
If the stack is empty, the players push any unfinished vertex. Otherwise, each player searches her or his edges for an eligible edge : lies on the stack, is unfinished, and either is not on the stack or occurs strictly below on the stack. A player who has an eligible edge sends one whose tail is highest on the stack; a player with no such edge sends NULL. If at least one edge is sent, the players select the sent edge whose tail is highest, say , and delete from the stack every vertex strictly above , declaring each deleted current vertex finished.
If is not on the stack, they push . If is already on the stack, the stack segment from to is a directed path of already communicated edges. Together with it is a directed cycle, so the players contract the entire segment to one supervertex. If both players send NULL, they declare every vertex currently on the stack finished and clear the stack.
We prove correctness using two invariants.
(I1) The stack, in its stack order, is a directed path of known edges.
(I2) No edge of the current graph leaves the set of finished vertices.
(I1) holds initially. Pushing a vertex appends the communicated edge, and contracting a stack interval replaces a directed subpath by one vertex.
For (I2), consider vertices deleted from the top of the stack after is selected. None of them has an eligible outgoing edge: otherwise the owner of such an edge would have sent an edge with tail above . Hence no newly finished vertex has an edge to an unfinished vertex off the deleted suffix or to a vertex remaining lower on the stack. Edges to previously finished vertices or within the deleted suffix do not violate (I2). The same argument applies when the whole stack is cleared after two NULL messages. Thus (I2) is preserved.
Every contraction is safe because it contracts a known directed cycle and hence a strongly connected set. Conversely, no two distinct current vertices belonging to the same strongly connected component can become finished. To see this, consider the first round in which this could happen. They cannot be separated between the old finished set and its complement by (I2). They also cannot be two distinct vertices in a newly finished stack suffix: a directed cycle inside that suffix would contain an edge from a higher stack vertex to a lower one, which would be eligible, while a cycle leaving the suffix would first use an eligible edge to an unfinished vertex off the suffix. A path through the old finished set cannot return by (I2). The same reasoning applies when the entire stack is cleared. Therefore all vertices in each maximal strongly connected component are contracted together, and distinct components are never merged.
Each non-NULL message specifies two vertex names and costs bits. A vertex is first pushed at most once, a finished vertex never returns to the stack, and every contraction reduces the number of current vertices. Thus there are pushes, deletions, and at most contractions. There are consequently rounds and communicated bits.
Finally, after the maximal SCCs are known, choose a canonical representative for each SCC and add
These are valid transitive-closure edges, use fewer than 2n edges in total, and give diameter at most 2 inside each SCC. No communication is needed because the SCC partition and the choice of representatives are common knowledge.
B.1.1 Lifting shortcut edges through the condensation
Let be the condensation DAG. A shortcut edge in is lifted canonically to . If a shortcut set gives diameter in , the lifted edges together with the SCC stars give diameter at most in . Indeed, a lifted shortcut edge costs one hop, while an ordinary condensation edge can be realized by going from to the tail of an original edge from to , traversing that edge, and then going to , for at most three hops. There is one additional star edge at each endpoint. Thus, to obtain an exact target , run the DAG protocol with target . This constant-factor change affects none of the asymptotic size or communication bounds. For , the players exchange their adjacency matrices and output , achieving diameter at most 1 using bits and edges. Since , these satisfy the claimed communication and shortcut-size bounds.
B.2 Reduction to a DAG with bounded longest path
The following proof uses the capped-label protocol proved in Section B.3.
► Lemma 27 (Bounded-longest-path reduction). Let be an -vertex DAG and let . Using bits of communication, Alice and Bob can agree on a collection of at most vertex-disjoint paths in and a shortcut set such that
has the same reachability relation as G on the remaining vertices, and every directed path in has fewer than vertices.
For each edge in X, the players also know a canonical witnessing path. Recursively expanding previously added edges of X turns each witness into a path in G that intersects .
Proof. Set and . At iteration , stop if has fewer than vertices. Otherwise, compute the capped labels from Lemma 29 with threshold . If all labels are below , stop. Otherwise, follow maximizing successors to recover a directed path with exactly vertices, and compute
Let contain every edge with for which contains an path intersecting . Choose such a path as a witness using a fixed public rule, retaining the first witness assigned to an edge if it appears in multiple iterations. Set
Since is known to both players, computing and choosing its witnesses requires no further communication.
After q iterations, output
By construction, .
We first show that each iteration preserves reachability among the remaining vertices. Since is a path in , we have . Thus every edge of lies in , so
Communication Complexity of Shortcut Set Computation
adding preserves reachability and acyclicity. Conversely, consider an path in whose endpoints lie outside . If avoids , it survives in . Otherwise, choose any . The guarantee of PathBFS gives paths and in . Their concatenation is a path because is acyclic. Hence , and still reaches in . Inductively, has the same reachability relation as on the remaining vertices, every edge of lies in , and every is a path in .
Now consider an edge first added at iteration . Its witness intersects and uses only original edges and shortcut edges added in earlier iterations. Recursively expand the latter using their fixed witnesses. This process terminates because iteration indices strictly decrease. The resulting walk uses only edges of and still contains a vertex of . Since is acyclic, it is a path. Thus every edge of has the required witness intersecting .
The paths in are vertex-disjoint and each has vertices. Consequently, and . At termination, either fewer than vertices remain or all capped labels are below . In either case, every directed path in has fewer than vertices.
Finally, there are at most capped-label computations and at most calls to PathBFS, each using bits. Recovering all selected paths uses additional bits. The total communication is therefore .
► Lemma 28 (Lifting from the reduced DAG). Assume , and let be as in Lemma 27. Given a -diameter-reducing shortcut set for , Alice and Bob can use additional bits to compute a set of edges such that is a -diameter-reducing shortcut set for , with high probability.
Proof. First note that the reachability guarantee in Lemma 27 implies .
For every , add to the standard transitive-closure edges that reduce the hop diameter of to at most 2. Since the paths in are vertex-disjoint, these edges total .
Independently sample a public set
where is a sufficiently large constant. For each , compute in the original graph. For every :
-
if reaches a vertex of , let be the first such vertex on and add to ; and
-
if a vertex of reaches , let be the last such vertex on and add to .
The correctness of PathBFS lets the players determine these vertices from . Every added edge lies in . There are at most connector edges, and the calls to PathBFS use bits.
It remains to prove the diameter guarantee. Fix the graph , the sets , and the shortcut set before sampling . For every reachable ordered pair , fix a path in as follows.
If , fix a path of at most edges in . Replace each occurrence of an edge on by the canonical original-graph witness fixed for in Lemma 27; recursively expand earlier -edges inside that witness. Leave edges of unexpanded. The resulting path is . It is a path in because every expanded edge is replaced by original edges of : the concatenation cannot repeat a vertex, since all its edges move forward in a topological ordering of the original DAG. Moreover, either uses no edge of , in which case has at most edges, or contains a vertex of .
If or , instead fix any canonical path in and call it . This path contains a vertex of . All these choices are independent of the subsequent sample .
For every fixed with more than edges, let and be its first and last vertices. A standard hitting-set calculation and a union bound over at most ordered pairs imply that, with high probability, intersects both sets for every such fixed path. Condition on this event.
If has at most edges, it already proves the desired bound. Otherwise contains a vertex on some path . Choose and .
Suppose first that lies outside the prefix and suffix. Let be the first vertex of reachable from , and let be the last vertex of that reaches . Since and , we have . The construction adds and , and the path-shortcut edges give . Following the prefix of to , these two connectors, the shortcut inside , and the suffix from gives
Here a segment of may use edges of , which are present in the final graph; and its reachability statements are valid in because every edge of lies in .
If lies in the prefix, let be the last vertex of that reaches . Then , so the prefix from to , at most two hops inside , the connector , and the suffix from to use at most edges. The case in which lies in the suffix is symmetric, using the connector from to the first reachable vertex of . Thus every reachable pair has distance at most .
B.3 Computing capped longest-path labels from scratch
► Lemma 29 (Capped labels). Let be an -vertex DAG and let . There is a two-party protocol using bits that computes, for every , the label
Proof. A label is either finalized or unfinalized. Initially all labels are unfinalized. For , player declares a vertex -ready once every out-neighbor with has a finalized label. At that moment player sends
Each player sends this message for v only once. Once both messages for v have been received, the players finalize
The protocol terminates. Indeed, the subgraph induced by the currently unfinalized vertices is a DAG and therefore has a sink v. All outgoing neighbors of v are already finalized, so v is both A-ready and B-ready and is finalized next.
Correctness follows by reverse topological induction. Once all out-neighbor labels are correct, the maximum number of vertices on a path starting at v is one plus the maximum corresponding value at an out-neighbor, with the maximum of the empty set interpreted as zero. Taking the maximum of the two players' local maxima gives the maximum over all outgoing edges, and capping at K gives exactly the displayed label.
Communication Complexity of Shortcut Set Computation
Each player sends one vertex name and one integer in for each vertex. Thus bits are communicated.
B.3.1 Use in Lemma 27
With , some vertex has label K if and only if the current DAG contains a path with at least K vertices. Starting from such a vertex, the players can repeatedly communicate a maximizing successor and stop after K vertices. The recurrence guarantees that a successor exists until then. This recovers the required path using bits. Thus exact, uncapped longest-path lengths are neither needed nor computed.
Composition of the upper-bound reductions
For completeness, the reductions compose as follows. First apply Lemma 26, replace each SCC by its canonical representative, and obtain the condensation DAG. Apply Lemma 27 to this DAG, run the main shortcut-set protocol on the resulting bounded-path DAG, and lift it using Lemma 28. Finally lift shortcut edges between SCCs to the canonical representatives and add the SCC stars. Running the DAG stages with target absorbs both the at-most-three hops needed to realize an ordinary condensation edge and the two endpoint SCC hops. The auxiliary communication is and the auxiliary shortcut sets have edges. In the regime these are dominated respectively by and .