A Note on Hardness of Diameter Approximation
Karl Bringmann, Sebastian Krinninger

TL;DR
This paper refines the understanding of the distributed complexity of approximating network diameter, establishing tighter lower bounds and clarifying the connection to the orthogonal vectors problem.
Contribution
It tightens existing lower bounds for diameter approximation in distributed networks and explicitly links these bounds to the orthogonal vectors problem.
Findings
Distinguishing diameters 2l+1 and 3l+1 requires rac{{n}}{{polylog(n)}} rounds.
Lower bounds apply to sparse graphs and specific diameter ranges.
Connection to orthogonal vectors problem simplifies the conceptual framework.
Abstract
We revisit the hardness of approximating the diameter of a network. In the CONGEST model of distributed computing, rounds are necessary to compute the diameter [Frischknecht et al. SODA'12], where hides polylogarithmic factors. Abboud et al. [DISC 2016] extended this result to sparse graphs and, at a more fine-grained level, showed that, for any integer , distinguishing between networks of diameter and requires rounds. We slightly tighten this result by showing that even distinguishing between diameter and requires rounds. The reduction of Abboud et al. is inspired by recent conditional lower bounds in the RAM model, where the orthogonal vectors problem plays a pivotal role. In our new lower…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
A Note on Hardness of Diameter Approximation††thanks: Accepted to Information Processing Letters. A preliminary version of this paper was presented at the 31st International Symposium on Distributed Computing (DISC’17) as a brief announcement.
Karl Bringmann Max Planck Institute for Informatics, Saarland Informatics Campus, Germany
Sebastian Krinninger University of Salzburg, Department of Computer Sciences, Austria. Work partially done while at Max Planck Institute for Informatics, Saarland Informatics Campus, Germany, and while at University of Vienna, Faculty of Computer Science, Austria.
Abstract
We revisit the hardness of approximating the diameter of a network. In the CONGEST model of distributed computing, rounds are necessary to compute the diameter [FHW12, Frischknecht et al. SODA’12], where hides polylogarithmic factors. Abboud et al. [ACK16, DISC 2016] extended this result to sparse graphs and, at a more fine-grained level, showed that, for any integer , distinguishing between networks of diameter and requires rounds. We slightly tighten this result by showing that even distinguishing between diameter and requires rounds. The reduction of Abboud et al. is inspired by recent conditional lower bounds in the RAM model, where the orthogonal vectors problem plays a pivotal role. In our new lower bound, we make the connection to orthogonal vectors explicit, leading to a conceptually more streamlined exposition.
1 Introduction
In distributed computing, the diameter of a network is arguably the single most important quantity one wishes to compute. In the CONGEST model [Pel00], where in each round every vertex can send to each of its neighbors a message of size , it is known that rounds are necessary to compute the diameter [FHW12] even in sparse graphs [ACK16], where is the number of vertices. With this negative result in mind, it is natural that the focus has shifted towards approximating the diameter. In this note, we revisit hardness of computing a diameter approximation in the CONGEST model from a fine-grained perspective.
The current fastest approximation algorithm [Hol+14], which is inspired by a corresponding RAM model algorithm [RW13], takes rounds and computes a -approximation of the diameter, i.e., an estimate such that , where is the true diameter of the network. In terms of lower bounds, Abboud, Censor-Hillel, and Khoury [ACK16] showed that rounds are necessary to compute a -approximation of the diameter for any constant . At a more fine-grained level, they show that, for any integer , at least rounds are necessary to decide whether the network has diameter or , thus ruling out any “relaxed” notions of -approximation that additionally allow small additive error. We tighten this result by showing that, for any integer , at least rounds are necessary to distinguish between diameter and , and more generally between diameter and for any .
The reduction of Abboud et al. [ACK16] is inspired by recent work on conditional lower bounds in the RAM model, where the orthogonal vectors problem plays a pivotal role. In our new lower bound, we make the connection between diameter approximation and orthogonal vectors explicit: we consider a communication complexity version of orthogonal vectors that we show to be hard unconditionally by a reduction from set disjointness and then devise a reduction from orthogonal vectors to diameter approximation.
Additionally, our approach has implications in the RAM model. There, the Strong Exponential Time Hypothesis (SETH) [IPZ01] states that for every there is an integer such that -SAT admits no algorithm with running time and the Orthogonal Vectors Hypothesis (OVH) states that there is no algorithm to decide whether a given set of -dimensional vectors of length contains an orthogonal pair in time for any constant . It is well-known that SETH implies OVH [Wil05]. Prior to our work, the situation in the RAM model was as follows. In their seminal paper [RW13], Roditty and Vassilevska Williams showed that, for any constants and there is no algorithm that computes a -approximation of the diameter and runs in time , unless the Strong Exponential Time Hypothesis (SETH) fails. In particular, they show that no algorithm can decide whether a given graph has diameter or in time , unless the Strong Exponential Time Hypothesis (SETH) fails. The hardness of vs. is already implied by the weaker Orthogonal Vectors Hypothesis (OVH), which in turn is implied by SETH [Wil05] and was popularized after the paper of Roditty and Vassilevska Williams appeared. It has then been shown by Chechik et al. [Che+14] that, for any integer , there is no algorithm that distinguishes between diameter and with running time for some constant , unless SETH fails. Finally, Cairo, Grossi, and Rizzi [CGR16] showed that, for any integer , there is no algorithm that distinguishes between diameter and with running time for some constant , unless SETH fails. Our reduction reconstructs the result of Cairo et al. under the weaker hardness assumption OVH, yielding again a more streamlined chain of reductions.
2 Reduction from Set Disjointness to Orthogonal Vectors
Set disjointness is a problem in communication complexity between two players, called Alice and Bob, in which Alice is given an -dimensional bit vector and Bob is given an -dimensional bit vector and the goal for Alice and Bob is to find out whether there is some index at which both vectors contain a , i.e., such that (meaning the sets represented by and are not disjoint). The relevant measure in communication complexity is the number of bits exchanged by Alice and Bob in any protocol that Alice and Bob follow to determine the solution. A classic result [KN97, Raz92] states that any such protocol requires Alice and Bob to exchange bits to solve set disjointness.
In the orthogonal vectors problem, Alice is given a set of bit vectors and Bob is given a set of bit vectors , and the goal for them is to find out if there is a pair of orthogonal vectors and (i.e., such that or in each dimension ). We give a reduction from set disjointness to orthogonal vectors.
Theorem 2.1**.**
Any -bit protocol for the orthogonal vectors problem in which Alice and Bob each hold vectors of dimension , gives a -bit protocol for the set disjointness problem where Alice and Bob each hold an -dimensional bit vector.
Proof.
We show that, without any communication, Alice and Bob can transform a set disjointness instance with -dimensional bit vectors into an orthogonal vectors instance such that and are not disjoint if and only if contains an orthogonal pair. For every integer , let denote the binary representation of with bits. For every bit , let be the result of ‘flipping’ bit , i.e., , and . Similarly, for a bit vector , let be the result of flipping each bit of . For every , let be the vector obtained from concatenating , , , , and . For every , let be the vector obtained from concatenating , , , , and .
We now claim that the vectors and are not disjoint if and only if contains an orthogonal pair. If the vectors and are not disjoint, then there is some such that . Clearly, and are orthogonal and, as the vectors and are equal to and , respectively, they are also orthogonal. It follows that and are orthogonal.
Now assume that contains an orthogonal pair and . We first show that . Suppose for the sake of contradiction that . Then the binary representations and differ in at least one bit, say . If and , then and are not orthogonal and thus and are not orthogonal, contradicting the assumption. If and , then and are not orthogonal and thus and are not orthogonal, contradicting the assumption. It follows that and thus the vectors and are orthogonal. Orthogonality of and rules out and , orthogonality of and rules out and , and orthogonality of and rules out and . It follows that , making and not disjoint. ∎
The hardness of set disjointness now directly transfers to orthogonal vectors.
Corollary 2.2**.**
Any protocol solving the orthogonal vectors problem with vectors of dimension , requires Alice and Bob to exchange bits.
3 Reduction from Orthogonal Vectors to Diameter
We now establish hardness of distinguishing between networks of diameter and for any and in the CONGEST model and for any and in the RAM model, respectively. To unify the cases of odd and even , we introduce an additional parameter and change the task to distinguishing between networks of diameter and for integers , , and . This covers the original question: if is even, then set and and if is odd, then set and .
3.1 Construction and Implications
Given an orthogonal vectors instance of -dimensional vectors and parameters , , and , we define an unweighted undirected graph as follows. The graph contains the following exterior vertices: , , , , , , , , , and . These exterior vertices are connected by paths as follows, where each path introduces a separate set of interior vertices:
- •
For every , add paths and , each of length .
- •
For every , add paths and , each of length .
- •
For every and every such that add a path of length .
- •
For every and every such that add a path of length .
- •
For every , add paths and , each of length .
- •
For every , add a path of length . That is, if then identify and .
- •
Add a path and a path , each of length .
- •
Add a path of length . That is, if , then identify and .
If and , then we identify and , and , and (for each ), as well as and (for each ), respectively. The graph is visualized in Figure 1. Observe that has vertices and edges. We show that our construction has the following formal guarantees.
Theorem 3.1**.**
Let be an orthogonal vectors instance of two sets of -dimensional vectors of size each and let , , and be integer parameters. Then the unweighted, undirected graph has vertices and edges and its diameter has the following property: if contains an orthogonal pair, then , and if contains no orthogonal pair, then .
Before we give a proof of this statement, we motivate it by discussing its immediate consequences in the CONGEST model and the RAM model. For the CONGEST model, observe that has a small cut of size between its left hand side and its right hand side. A standard simulation argument, where communication between Alice and Bob is limited to messages sent along the small cut, yields our main result.
Corollary 3.2**.**
In the CONGEST model, any algorithm distinguishing between graphs of diameter and graphs of diameter when and requires rounds.
Proof.
Let be an orthogonal vectors instance with vectors of dimension and let be an algorithm distinguishing between graphs of diameter and graphs of diameter . If is even, then set and and if is odd, then set and . Then by Theorem 3.1 the graph has diameter if contains an orthogonal pair and otherwise. Observe that has edges and since it can be partitioned into two node sets and such that
- •
, the subgraph of induced by , is fully determined by , , , and .
- •
, the subgraph of induced by , is fully determined by , , , and .
- •
The number of edges between and in is .
Thus, Alice and Bob can simulate running on the graph as follows: Alice constructs the graph and simulates the states of all vertices in as well as the messages sent between them and Bob constructs the graph and simulates the states of all vertices in as well as the messages sent between them. Every time a message is sent from a node in to a node in , Alice communicates the -size message to Bob and every time a message is sent from a node in to a node in , Bob communicates the -size message to Alice. Since , the subgraph simulated by Alice is separated by edges from the subgraph simulated by Bob. Thus, in each simulated round of at most bits can be sent from Alice to Bob and vice versa. As Alice and Bob need to exchange bits to determine the result to the orthogonal vectors problem by Corollary 2.2, the algorithm requires rounds. ∎
In the RAM model, the Orthogonal Vectors Hypothesis (OVH) states that there is no algorithm that decides whether a given orthogonal vectors instance contains an orthogonal pair in time for some constant .111In Section 1, we have mentioned a variant of the orthogonal vectors problem with a single input set. By a straightforward reduction, this variant has the same asymptotic time complexity as the variant with two input sets defined above. Under this hardness assumption, our reduction has the following straightforward implication.
Corollary 3.3**.**
In the RAM model, under OVH, there is no algorithm distinguishing between graphs of diameter and graphs of diameter , where and , in time for any constant .
Proof.
Let be an orthogonal vectors instance with vectors of dimension and let be an algorithm distinguishing between graphs of diameter and graphs of diameter running in time . If is even, then set and and if is odd, then set and . Then by Theorem 3.1 the graph has diameter if contains an orthogonal pair and otherwise. Observe that has edges and thus will take time on . This yields an algorithm solving any orthogonal vectors instance in time , contradicting OVH. ∎
3.2 Proof of Theorem 3.1
Before we give the proof of Theorem 3.1, we introduce the following useful terminology: For every , is defined as the set of all vertices that lie on one of the following paths: , (excluding ), or (excluding ) for some such that . Similarly, for every , is defined as the set of all vertices that lie on one of the following paths: , (excluding ), or (excluding ) for some such that . We set (left vertices), (right vertices), and . Note that consists on all vertices that lie on , , , for some , for some , or for some .
We now state some universal upper and lower bounds on distances in the graph that hold regardless of whether the orthogonal vectors instance contains an orthogonal pair. Their correctness can readily be verified and we also give rigorous proofs in the appendix.
Lemma 3.4**.**
For every orthogonal vectors instance, for every and every and for every and every .
Note that in Lemma 3.4 it is crucial that we have defined each path to exclude the node and that .
Lemma 3.5**.**
For every orthogonal vectors instance and every pair of vertices , and more specifically and for every vertex .
Lemma 3.6**.**
For every orthogonal vectors instance and every pair of vertices and , if and or and , then .
Lemma 3.7**.**
For every orthogonal vectors instance, the following holds in :
- •
* and for every ,*
- •
* and for every and every such that ,*
- •
* and for every and every .*
We finally give the proof of Theorem 3.1. We split up the two cases (containing an orthogonal pair or not) into two pieces, whose proofs follow a similar pattern.
Proposition 3.8**.**
If the orthogonal vectors instance contains no orthogonal pair, then .
Proof.
We first show that , i.e., for every pair of vertices . Note that by Lemma 3.6 we only have to show that whenever for some and for some . By Lemma 3.4 we have and for such and . Since the orthogonal vectors instance contains no orthogonal pair there is a such that both . Thus, our graph contains both paths and , each of length . By the triangle inequality we therefore have
[TABLE]
It remains to show that . We will argue that . Since the paths separate the left part of the graph from the right part of the graph, every path from to must contain at least one of these paths entirely. If the shortest path from to contains the path entirely, then, since and by Lemma 3.7,
[TABLE]
If the shortest path from to contains the path for some entirely, then the argument is as follows: By Lemma 3.7 we have and . We therefore get
[TABLE]
∎
Proposition 3.9**.**
If the orthogonal vectors instance contains an orthogonal pair, then .
Proof.
We first show that . Let and denote the orthogonal pair. We will argue that .
Since the paths separate the left part of the graph from the right part of the graph, every path from to must contain at least one of these paths entirely. If the shortest path from to contains the path entirely, then, since and by Lemma 3.7,
[TABLE]
If the shortest path from to contains the path for some entirely, then the argument is as follows. Since and are an orthogonal pair, we have or . By symmetry, assume , which implies that the path is not contained in . Since the shortest path is simple, it is either the case that after the vertex the shortest path contains (a) the subpath or (b) the subpath for some such that . By Lemma 3.7 we have . In case (a) we additionally use from Lemma 3.7 and thus get
[TABLE]
In case (b) we additionally use from Lemma 3.7 and thus get
[TABLE]
It remains to show that . By Lemma 3.6 and since , we only have to show that when for some and for some . By Lemma 3.4 we have and for such and . By the triangle inequality we therefore have
[TABLE]
∎
Appendix
In this appendix, we provide rigorous proofs of Lemmas 3.4 to 3.7.
Proof of Lemma 3.4
We only proof the first part of the claim. The second part then follows from symmetric arguments. There are three possibilities for a vertex to be contained in :
lies on the path (which has length ) 2. 2.
lies on the path (which has length ) and 3. 3.
lies on the path (which has length ) for some such that and
As , we have and thus in each of the three cases we have .
Proof of Lemma 3.5
Consider all simple paths from to in : These are as well as for every . These paths have length and , respectively, in both cases we obtain length . Moreover, each node in is contained in (at least) one of these paths. From these paths, pick , containing . Following and then following the reversed yields a cyclic walk from to itself containing and . This walk has length at most , and thus the induced walk from to or the one from to has length at most . This yields .
For the stronger bound for every vertex , consider the following paths:
- •
for any has length
- •
minus the last vertex, for any , has length .
- •
has length
Since these paths cover all vertices in , each vertex in has distance at most to . An analogous argument gives for every vertex .
Proof of Lemma 3.6
By Lemma 3.5 we have for . Next, consider the case and , say for some and for some . Then we have
[TABLE]
Finally, consider the case and , say for some . By Lemma 3.5 we have and thus get
[TABLE]
The remaining cases require symmetric arguments in which the roles of and are exchanged.
Proof of Lemma 3.7
Let . Observe that all simple paths of length at most starting at vertex and ending at an exterior vertex must be of the following form (where some of these paths are of length at most only if , and some only if and ):
(of length ), 2. 2.
(of length ), 3. 3.
(of length ), 4. 4.
(of length ), 5. 5.
for some (of length ), 6. 6.
for some such that (of length ), 7. 7.
for some such that (of length ), 8. 8.
for some such that (of length ), 9. 9.
for some and some with such that and (of length ), 10. 10.
for some (of length ), 11. 11.
for some (of length ), 12. 12.
for some (of length ), or 13. 13.
for some and some such that and (of length ).
It follows that (as all paths of length at most ending at have length ), (as the shortest path of length at most ending at has length ), and for every (as the only possible path of length at most ending at has length ). A symmetric argument gives , , and for every .
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[ACK 16] Amir Abboud, Keren Censor-Hillel and Seri Khoury “Near-Linear Lower Bounds for Distributed Distance Computations, Even in Sparse Networks” In International Symposium on Distributed Computing (DISC) , 2016, pp. 29–42 DOI: 10.1007/978-3-662-53426-7\_3 · doi ↗
- 2[CGR 16] Massimo Cairo, Roberto Grossi and Romeo Rizzi “New Bounds for Approximating Extremal Distances in Undirected Graphs” In Symposium on Discrete Algorithms (SODA) , 2016, pp. 363–376 DOI: 10.1137/1.9781611974331.ch 27 · doi ↗
- 3[Che+14] Shiri Chechik, Daniel H. Larkin, Liam Roditty, Grant Schoenebeck, Robert Endre Tarjan and Virginia Vassilevska Williams “Better Approximation Algorithms for the Graph Diameter” In Symposium on Discrete Algorithms (SODA) , 2014, pp. 1041–1052 DOI: 10.1137/1.9781611973402.78 · doi ↗
- 4[FHW 12] Silvio Frischknecht, Stephan Holzer and Roger Wattenhofer “Networks cannot compute their diameter in sublinear time” In Symposium on Discrete Algorithms (SODA) , 2012, pp. 1150–1162 DOI: 10.1137/1.9781611973099.91 · doi ↗
- 5[Hol+14] Stephan Holzer, David Peleg, Liam Roditty and Roger Wattenhofer “Brief Announcement: Distributed 3 / 2 3 2 3/2 -Approximation of the Diameter” In International Symposium on Distributed Computing (DISC) , 2014, pp. 562–564
- 6[IPZ 01] Russell Impagliazzo, Ramamohan Paturi and Francis Zane “Which Problems Have Strongly Exponential Complexity?” Announced at FOCS’98 In Journal of Computer and System Sciences 63.4 , 2001, pp. 512–530 DOI: 10.1006/jcss.2001.1774 · doi ↗
- 7[KN 97] Eyal Kushilevitz and Noam Nisan “Communication complexity” New York, NY, USA: Cambridge University Press, 1997
- 8[Pel 00] David Peleg “Distributed Computing: A Locality-Sensitive Approach” Philadelphia, PA, USA: SIAM, 2000
