<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Approximating Min-Diameter: Standard and Bichromatic</title></titleStmt>
			<publicationStmt>
				<publisher>Schloss Dagstuhl – Leibniz-Zentrum für Informatik</publisher>
				<date>01/01/2023</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10565793</idno>
					<idno type="doi">10.4230/LIPIcs.ESA.2023.17</idno>
					
					<author>Aaron Berger</author><author>Jenny Kaufmann</author><author>Virginia Vassilevska_Williams</author><author>Inge Li Gørtz</author><author>Martin Farach-Colton</author><author>Simon J Puglisi</author><author>Grzegorz Herman</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[The min-diameter of a directed graph G is a measure of the largest distance between nodes. It is equal to the maximum min-distance d_{min}(u,v) across all pairs u,v ∈ V(G), where d_{min}(u,v) &#61; min(d(u,v), d(v,u)). Min-diameter approximation in directed graphs has attracted attention recently as an offshoot of the classical and well-studied diameter approximation problem.Our work provides a 3/2-approximation algorithm for min-diameter in DAGs running in time O(m^{1.426} n^{0.288}), and a faster almost-3/2-approximation variant which runs in time O(m^{0.713} n). (An almost-α-approximation algorithm determines the min-diameter to within a multiplicative factor of α plus constant additive error.) This is the first known algorithm to solve 3/2-approximation for min-diameter in sparse DAGs in truly subquadratic time O(m^{2-ε}) for ε &gt; 0; previously only a 2-approximation was known. By a conditional lower bound result of [Abboud et al, SODA 2016], a better than 3/2-approximation can&#39;t be achieved in truly subquadratic time under the Strong Exponential Time Hypothesis (SETH), so our result is conditionally tight. We additionally obtain a new conditional lower bound for min-diameter approximation in general directed graphs, showing that under SETH, one cannot achieve an approximation factor below 2 in truly subquadratic time. Our work also presents the first study of approximating bichromatic min-diameter, which is the maximum min-distance between oppositely colored vertices in a 2-colored graph. We show that SETH implies that in DAGs, a better than 2 approximation cannot be achieved in truly subquadratic time, and that in general graphs, an approximation within a factor below 5/2 is similarly out of reach. We then obtain an O(m)-time algorithm which determines if bichromatic min-diameter is finite, and an almost-2-approximation algorithm for bichromatic min-diameter with runtime Õ(min(m^{4/3} n^{1/3}, m^{1/2} n^{3/2})).]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1">Introduction</head><p>The min-distance between two vertices x, y in a directed graph G is the minimum of the one-way distances d(x, y) and d(y, x), and is written d min (x, y). This notion of distance was introduced by Abboud, Vassilevska W., and Wang <ref type="bibr">[2]</ref> in their study of diameter in directed graphs. Since the standard notion of distance in directed graphs is not symmetric, <ref type="bibr">[2]</ref> considered a number of symmetric distance functions: roundtrip distance, max-distance, and min-distance. The min-distance in particular, has since then been studied in a series of papers <ref type="bibr">[13,</ref><ref type="bibr">15,</ref><ref type="bibr">11]</ref>.</p><p>The min-distance is arguably the most natural notion of distance in directed acyclic graphs (DAGs), in which for every two vertices x, y, at most one of d(x, y), d(y, x) is finite. Min-distance is also applicable in potential real-world contexts: for example, if a patient needs to see a doctor as soon as possible, the doctor can visit the patient or vice versa.</p><p>The min-diameter of a directed graph G is the maximum min-distance between any two vertices, or max x,y&#8712;V (G) d min (x, y). One can additionally define the bichromatic mindiameter in a graph G with vertex set V = A &#8852; B partitioned into "red" and "blue" vertices: the bichromatic min-diameter is the maximum min-distance between oppositely-colored vertices, or max a&#8712;A,b&#8712;B d min (a, b). These are variants on the standard notions of diameter <ref type="bibr">[1,</ref><ref type="bibr">3,</ref><ref type="bibr">6,</ref><ref type="bibr">10,</ref><ref type="bibr">12,</ref><ref type="bibr">16,</ref><ref type="bibr">24]</ref> and bichromatic diameter <ref type="bibr">[5,</ref><ref type="bibr">14]</ref>, respectively.</p><p>One can compute min-diameter or bichromatic min-diameter -and for that matter All Pairs Shortest Paths (APSP), the shortest path distances d(x, y) for all x, y &#8712; V -in an n-vertex m-edge graph in O(mn + n 2 log n) time, simply by running Dijkstra's algorithm from every vertex. In unweighted graphs, one can instead use BFS, giving an O(mn) runtime.</p><p>One might ask whether, for either min-diameter or bichromatic min-diameter, a faster algorithm exists. However, just as for standard diameter and other diameter variants that have been studied <ref type="bibr">[2,</ref><ref type="bibr">14,</ref><ref type="bibr">20]</ref>, the Strong Exponential Time Hypothesis (SETH) <ref type="bibr">[18,</ref><ref type="bibr">9]</ref> suggests exact computation cannot be done in runtimes that are truly subquadratic, meaning O(m 2-&#1013; ) for &#1013; &gt; 0. SETH is one of the main hypotheses in Fine-Grained Complexity <ref type="bibr">[22]</ref>, and is among the most well-established hardness hypotheses for showing conditional lower bounds. It states that for every &#1013; &gt; 0, there is an integer k &#8805; 3 so that k-SAT on n variables cannot be solved in O(2 (1-&#1013;)</p><p>Since exact computation is conditionally hard, we resort to finding approximations. Since min-distance does not obey the triangle inequality, approximating min-diameter is especially challenging, in comparison to standard diameter or even roundtrip diameter or max-diameter. For this reason, much of the work on min-diameter has focused on DAGs.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Min-Diameter</head><p>Abboud, Vassilevska W., and Wang <ref type="bibr">[2]</ref> gave a 2-approximation for min-diameter in DAGs, running in &#213;(m) time. <ref type="foot">1</ref> Meanwhile, they showed that if one can obtain a ( 3 2 -&#948;) approximation in O(m 2-&#1013; ) time for min-diameter in DAGs (for &#949;, &#948; &gt; 0), then SETH is false. The results of <ref type="bibr">[2]</ref> left a gap between the conditional lower bound of 3/2 and the upper bound of 2 for O(m 2-&#1013; ) time algorithms for DAGs. (The lower bound is for O((mn) 1-&#1013; ) time algorithms but since the instances are sparse, this is the same as O(m 2-&#1013; ) time.)</p><p>Later work by Dalirrooyfard and Kaufmann <ref type="bibr">[13]</ref> showed that in dense DAGs, one can beat the mn barrier by obtaining an almost- 3  2 -approximation algorithm running in O(n 2.35 ) time. The conditional lower bound of <ref type="bibr">[2]</ref> is for sparse DAGs, however, and the gap between upper and lower bounds has remained.</p><p>Our main result is to close this gap for sparse DAGs:</p><p>There is an O(m 0.713 n) time algorithm that achieves a ( 3 2 , 1 2 )-approximation for min-diameter in any m-edge, n-node unweighted DAG.</p><p>Furthermore, there is an O(m 1.426 n 0.288 ) time algorithm that achieves a 3 2 -approximation for min-diameter in any m-edge, n-node unweighted DAG.</p><p>A (c, a)-approximation for a quantity D is a quantity D &#8242; such that D &#8804; D &#8242; &#8804; cD + a. Similar to <ref type="bibr">[13]</ref>, we use hitting set and set intersection methods to certify distances. Our main new technique is to iteratively grow a central interval of vertices with convenient distance properties by checking that at least one of two neighboring vertex subsets, to its left and right, has the desired properties.</p><p>The algorithms use fast matrix multiplication. There are also combinatorial versions of the algorithms, with runtimes O(m 3/4 n) for the ( 3 2 , 1 2 )-approximation and O(m 5/4 n 1/<ref type="foot">foot_1</ref> ) for the 3  2 -approximation. 2 These runtimess are still subquadratic for sparse graphs.</p><p>Our paper also considers the case of general directed graphs. Abboud, Vassilevska W., and Wang <ref type="bibr">[2]</ref> showed that under SETH, any O(m 2-&#949; ) time algorithm for &#949; &gt; 0 for min-diameter can achieve at best a 2-approximation. This result only held for weighted graphs.</p><p>We give the first hardness result for unweighted graphs, extending the hardness of <ref type="bibr">[2]</ref>:</p><p>Under SETH, there can be no O(m 2-&#949; ) time (2 -&#948;)-approximation algorithm for the min-diameter of an unweighted directed graph with n vertices and m = n 1+o (1) edges, for &#1013;, &#948; &gt; 0.</p><p>Because our min-diameter approximation algorithms for DAGs obtain an approximation factor better than 2 in truly subquadratic time, this gives the first separation of hardness results for min-diameter approximation in the sparse cyclic versus acyclic cases.</p><p>This result, along with all other hardness results from SETH in this work, are via Orthogonal Vectors (OV) reductions. The OV problem is as follows: Given two sets A, B each containing n d-dimensional Boolean vectors, determine whether there are vectors a &#8712; A and b &#8712; B that are orthogonal, meaning a &#8226; b = 0.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>&#9654; OV Conjecture ([23]</head><p>). There is no constant &#1013; &gt; 0 such that for any constant c and d = c log n, the OV problem can be solved by a randomized algorithm in time O(n 2-&#1013; ).</p><p>The OV Conjecture is implied by SETH <ref type="bibr">[23]</ref>. OV-based sparse graph constructions have been commonly used to provide hardness results for diameter variants for the past decade, after having been first introduced by Roditty and Vassilevska W. in <ref type="bibr">[20]</ref>. However, unlike previous OV-based constructions known to us, our construction is of a graph shaped as a cycle. If there are no orthogonal vectors then all vertices can reach one another via a single loop around the cycle, whereas if there are orthogonal vectors a path between them must loop nearly twice around the cycle, giving a min-diameter nearly twice as large.</p><p>As for upper bounds for general directed graphs, Dalirrooyfard et al. <ref type="bibr">[15]</ref> gave for every integer k &#8805; 2, an &#213;(mn 1/k ) time (4k -5)-approximation algorithm for min-diameter. Most recently, Chechik and Zhang <ref type="bibr">[11]</ref> achieved a 4-approximation in near-linear time. There is still a gap between the best approximation known in O(m 2-&#949; ) time (3 by <ref type="bibr">[15]</ref>) and the best hardness result for such algorithms (2 by this work for unweighted, and by <ref type="bibr">[2]</ref> for weighted).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Bichromatic Min-Diameter</head><p>A bichromatic version of diameter was considered by Dalirrooyfard et al. <ref type="bibr">[14]</ref>. In a graph whose nodes are colored red and blue, the bichromatic diameter is the largest distance between two nodes of different colors. Dalirrooyfard et al. <ref type="bibr">[14]</ref> gave algorithms and hardness for bichromatic diameter under the usual notion of distance.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>17:4 Approximating Min-Diameter: Standard and Bichromatic</head><p>Our work presents the first study of the notion of bichromatic min-diameter. As the min-diameter is the most natural diameter notion for DAGs, the bichromatic min-diameter is likewise a natural way to consider distances in DAGs whose vertices are two-colored.</p><p>We first give hardness for general directed graphs, suggesting that bichromatic mindiameter may be harder than regular min-diameter: &#9654; Theorem 3. Under SETH, there can be no O(m 2-&#949; ) time ( <ref type="formula">5</ref>2 -&#948;)-approximation algorithm for bichromatic min-diameter in unweighted n-node, m = n 1+o(1) -edge graphs for &#1013;, &#948; &gt; 0.</p><p>Furthermore, under SETH, there can be no O(m 2-&#949; ) time (3-&#948;)-approximation algorithm for bichromatic min-diameter in graphs with O(log n) bit integer edge weights.</p><p>It would be interesting if the &#213;(m &#8730; n) 3-approximation algorithm for min-diameter of <ref type="bibr">[15]</ref> can be extended to work for bichromatic min-diameter, as then one could get a tight result in the weighted case.</p><p>We next turn to bichromatic min-diameter in DAGs. We give an almost-2-approximation algorithm and show that it is essentially tight (up to the additive error) under SETH:</p><p>&#9654; Theorem 5. There is an &#213;(m 4/<ref type="foot">foot_2</ref> n 1/3 )-time algorithm, which, given a DAG and maximum red-blue edge weight M , outputs a (2, M )-approximation of the bichromatic min-diameter.</p><p>Finally, we present a linear-time algorithm which determines whether a directed graph has finite bichromatic min-diameter. The proof may be found in the full version of the paper <ref type="bibr">[7]</ref>.</p><p>&#9654; Theorem 6. There is an O(m) time algorithm which checks, for any weighted directed graph G, whether the bichromatic min-diameter is finite.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.1">Preliminaries</head><p>We assume the word-RAM model of computation with O(log n) bit words. All of our algorithms and reductions fall within this model.</p><p>Graphs in this work are directed and weakly connected. 3 Edge weights are polynomial in n.</p><p>The min-eccentricity of a vertex, &#1013;(v), is given by max u&#8712;V d min (u, v).</p><p>Given a DAG G with topological ordering &#960; and vertex sets S, T &#8838; V = V (G), we write S &lt; &#960; T if all vertices in S appear to the left of all vertices in T . When S or T is equal to {x} for some vertex x, we may omit the brackets. For vertices s, t, we write s &#8804; &#960; t if s &lt; &#960; t or s = t. We define a closed subset (with respect to &#960;) to be a subset S such that for all</p><p>Given a DAG G with topological ordering &#960;, a vertex v &#8712; V and a set S &#8838; V , let s v &#8712; S be the left-most vertex in S such that d(v, s) &#8804; D, if such an s v exists. Then we define N out D,S (v) to be the set of vertices w such that d(v, w) &#8804; D and, if s v exists, w &#8804; &#960; s v . One can intuitively think of N out D,S (v) as the set N out D (v) of vertices at distance at most D from v, but cut off after the first (left-most) time we hit S. We define</p><p>A bichromatic DAG G is a DAG whose vertices are two-colored. An (A, B)-separated DAG, which we may also simply call a separated DAG is a DAG ordered according to some topological ordering &#960; with color sets A, B such that A &lt; &#960; B.</p><p>We sometimes omit &#960; when the choice of &#960; is clear.</p><p>Let &#969;(1, r, 1) be the exponent of the runtime of multiplying n &#215; n r by n r &#215; n matrices. The square matrix multiplication exponent is &#969; = &#969;(1, 1, 1) &gt; 2.37286 <ref type="bibr">[4]</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.2">Techniques</head><p>In this section, we review two useful techniques. The first of these is the greedy set cover lemma. This lemma, and a related randomized version, have been commonly used in prior work on diameter variants ( <ref type="bibr">[3]</ref>, <ref type="bibr">[20]</ref>, <ref type="bibr">[8]</ref>, <ref type="bibr">[2]</ref>, <ref type="bibr">[13]</ref>). See <ref type="bibr">[21]</ref> for a proof of the lemma.</p><p>The following technique, previously used in <ref type="bibr">[13]</ref>, constructs a set cover of all sufficiently large balls of radius d. </p><p>of out-neighbors of S t &#8746; {v} that are at distance at most d from v. If W is nonempty, we let w be its left-most element, and we construct</p><p>Thus, in either case, we will eventually construct</p><p>The key step in this construction process, namely finding w, can be done by maintaining a list containing the left-most neighbor of each vertex in S t such that the neighbor is of distance at most d from v, and choosing the left-most vertex in the list at each step. At step t, this list has length at most |S t | &lt; k, and the total number of steps is at most k, so the construction can be done in O(k 2 ) time.</p><p>We can construct </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Min-diameter approximation</head><p>In Section 2.1 we present a conditional lower bound showing that the OV Conjecture implies that no (2 -&#948;)-approximation algorithm for min-diameter in unweighted graphs can run in truly subquadratic time. Subsequently, in Section 2.2, we give an almost-3 2 -approximation algorithm for min-diameter in unweighted DAGs which runs in truly subquadratic time.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.1">Conditional lower bound in general graphs</head><p>We first present a conditional lower bound for approximating min-diameter in general graphs.</p><p>&#9654; Theorem 9. If there are &#1013;, &#948; &gt; 0 such that there is an O(m 2-&#1013; )-time (2 -&#948;)-approximation algorithm for min-diameter, then the OV Conjecture is false.</p><p>Let A be an instance of single-set OV <ref type="foot">4</ref> , that is, a set of n &#8805; 2 t vectors in {0, 1} c0 log n for a constant c 0 &gt; 0. We will construct a graph G t with O(tn) vertices, &#213;(tn) edges such that the min-diameter is 2t + 1 if A contains a pair of orthogonal vectors, and t + 1 otherwise. For each i &#8712; [t], we construct a set A i of n vertices corresponding bijectively to the vectors in A. For each vector a &#8712; A, let a i be the vertex in set A i corresponding to a. We also construct a set I of "index" vertices x 1 , . . . , x c log n . In total we have O(tn) vertices. We add an edge a 1 &#8594; x j and an edge x j &#8594; a t whenever a[j] = 1. We also add edges a i &#8594; a i-1 for each i &#8712; {2, . . . , t}. Finally, we add all possible edges A 2 &#8594; I. In total we have &#213;(tn) edges. This graph G t may be constructed in &#213;(tn) = &#213;(n) time.</p><p>We now check that if the OV instance is a YES instance, G t has at least min-diameter 2t + 1, and in the NO case, G t has min-diameter t + 1. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>YES case</head><p>Let a, b &#8712; A be orthogonal. Without loss of generality, d min (a 1 , b 1 ) = d(a 1 , b 1 ). There is no j such that a[j] = b[j] = 1, so there is no length-2 path from a 1 to b t via I. Since all edges between A i and A i-1 are of the form a i &#8594; a i-1 , the first t vertices on any a 1 &#8594; b 1 path must be of the form</p><p>We note that any path from c 2 to b 1 must traverse all sets of the cycle with the possible exception of A 1 , so must be of length at least t.</p><p>So G t has min-diameter at least 2t + 1.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>NO case</head><p>Suppose that A contains no pair of orthogonal vectors. For any a 1 , b i , there is some j such that a</p><p>Lastly, for any a i &#8712; A i with i &#8805; 2, and for any x j &#8712; I, there is a path a i &#8594; . . . a 2 &#8594; x j of length at most t. Hence, all pairs of vertices are at min-distance at most t + 1. &#9664;</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.2">A ( 3 2 , 1 2 )-approximation algorithm in unweighted DAGs</head><p>Unlike in general directed graphs, where (2 -&#948;)-approximating min-diameter seems to be hard, in DAGs one can achieve an efficient ( 3 2 , 1 2 )-approximation and a (slightly less) efficient</p><p>3 2 -approximation. The ( 3 2 , 1 2</p><p>) and the exact 3 2 approximations have very similar proofs; we present the proof of the ( 3 2 , 1 2 )-approximation result here because the algorithm is faster and marginally simpler than in the exact 3  2 case, whose proof can be found in the full version of the paper <ref type="bibr">[7]</ref>.</p><p>Our algorithm uses fast sparse matrix multiplication to compute set intersections. Its runtime involves the constants &#945; = max{0 &#8804; r &#8804; 1 | &#969;(1, r, 1) = 2} and &#946; = &#969;-2 1-&#945; .</p><p>&#9654; Theorem 10. There is an &#213;(m 4&#946;+2-2&#945;&#946; 5&#946;+3-2&#945;&#946; n)-time algorithm achieving a ( 3 2 , 1 2 )-approximation for min-diameter in unweighted DAGs.</p><p>Since &#945; &gt; 0.31389 <ref type="bibr">[17]</ref> and &#969; &lt; 2.37286 <ref type="bibr">[4]</ref>, we can use &#946; &#8771; 0.5435, giving the runtime O(m 0.713 n).</p><p>The algorithm starts by topologically sorting the DAG and fixing a neighborhoodsize parameter k (whose value will be determined later). It then performs two layers of recursion. The outer layer is a binary search over min-diameter estimates D: for each estimate D, it will either determine that D is low or high, i.e. that min-diameter(G) &gt; D or min-diameter(G) &#8804; &#8968; 3  2 D&#8969;. The inner layer, in which the estimate D is fixed, involves recursively splitting the graph in half according to the topological ordering. Then, in the core body of the algorithm, one of the following will occur:</p><p>We find a pair of vertices with min-distance larger than D, in which case we end the recursion and report that min-diameter(G) &gt; D.</p><p>We verify that every min-distance between a vertex in the left half and a vertex in the right half is at most &#8968;3D/2&#8969;, and we recurse on the left and right halves of the graph.</p><p>The core body of the algorithm -which will be repeated recursively as the graph is repeatedly cut in half -is as follows:</p><p>First, using Lemma 8, we compute a (k, (D/2, &#8968;D/2&#8969;))-neighborhood cover S of size O( n k log n) along with neighborhoods N out D/2,S (v), N in &#8968;D/2&#8969;,S (v) all of which have size at most k. Using BFS, we check that d min (s, v) &#8804; D for all s &#8712; S, v &#8712; V . This step ensures that, for every vertex with a "sufficiently large" (meaning, size-k) distance-D/2 out-neighborhood or distance-&#8968;D/2&#8969; in-neighborhood, some vertex in S lies in that out-or in-neighborhood. In this sense, S covers all of the large neighborhoods, which will be useful later.</p><p>We partition</p><p>be the left and right halves of V . We start in the middle and work outwards verifying that min-distances between vertices in L and R are at most &#8968;3D/2&#8969;.</p><p>At each inductive step, we consider two subsets of vertices A = V i and B = V j to the left and right of the "middle interval," which consists of the intervening subsets</p><p>Intuitively, one might picture the middle interval as a growing amoeba, which at each step engulfs one of A or B. We will only add vertices to the middle interval once they have been "checked," so vertices from A that are added to the middle interval have distance at most 3D/2 to everything in B, and vice-versa. Eventually, either the algorithm will detect a min-distance greater than D and report that min-diameter(G) &gt; D, or the amoeba will have engulfed enough of the graph that it contains the entirety of one of the halves L or R, meaning that all distances from vertices in L to vertices in R are at most &#8968; 3  2 D&#8969;. In order to expand the middle interval we have to confirm that one of our two candidate subsets A and B has small distances to the opposite half of the graph. Performing a BFS from each vertex in A or B to confirm this directly would be too slow, so instead we present two subroutines to achieve this goal faster. Algorithm 2 checks that all min-distances between vertices a &#8712; A and b &#8712; B are at most &#8968;3D/2&#8969;. Algorithm 3 checks that either all vertices in A have min-distance at most 3  2 D to all vertices to the right of B, or that a symmetric property holds for all vertices in B. These algorithms will either detect that the min-diameter is more than D or allow us to add one of A or B to the middle interval.</p><p>We first give a pseudocode description of the main algorithm, Algorithm 1, which will give context for the two subroutines, Algorithms 2 and 3, whose descriptions follow afterwards.</p><p>We will present the correctness and runtime analyses for the two subroutines, and then present the correctness proof and runtime analysis for the overall algorithm.</p><p>The first subroutine, Algorithm 2, checks distances between pairs of vertices in subsets A, B by using the cover S to hit large neighborhoods and using fast sparse rectangular matrix multiplication to efficiently check set intersections between small neighborhoods.</p><p>&#9654; Theorem 11 <ref type="bibr">([19]</ref>). If M, M &#8242; are p &#215; l matrices having at most l nonzero entries, where</p><p>).</p><p>Proof. We first show correctness. Assume the algorithm fails; then it fails inside the foreach loop at some pair a, b. Suppose for the sake of contradiction that d min (a, b) &#8804; D. Let x be a midpoint of the shortest path from a to b, so d(a, x)</p><p>,S (a) despite being distance &#8804; D/2 from a, then x must lie after the outneighborhood of a reaches the (k, (D/2, &#8968;D/2&#8969;))-neighborhood cover S and is cut off. That is, there is some s &#8712; N out D/2 (a) &#8745; S to the left of x, and hence to the left of b. Thus the condition in line 9 holds, and we continue rather than FAIL, which is a contradiction. Similarly, if x / &#8712; N in &#8968;D/2&#8969;,S (b) then the condition in line 7 holds, which is a contradiction. We conclude that x &#8712; N out D/2,S (a) &#8745; N in &#8968;D/2&#8969;,S (b), in which case M ab &#8805; 1, completing the contradiction. Thus, d min (a, b) &gt; D, and so min-diameter(G) &gt; D. Next we give the directional min-distance tester. A call to this subroutine will prove a min-distance bound of 3D/2 from A to everything past B, prove a bound of &#8968;3D/2&#8969; from B to everything before A, or find a pair of vertices with min-distance greater than D. The idea is to iterate over vertices a in A; those with large D/2-neighborhoods get hit by S, and if some a has a small D/2-neighborhood it can be used as a jumping-off set to show B is close to everything past A. Proof. This algorithm fails only when some s &#8712; S has &#1013;(s) &gt; D, when Algorithm 2 fails, or Algorithm 3 fails, all of which imply min-diameter(G) &gt; D. We now show that in the event of a pass, min-diameter(G) &#8804; &#8968;3D/2&#8969;. It suffices to prove that if the algorithm reaches line 13 then all min-distances between vertices in L and R are at most &#8968;3D/2&#8969;. Assume we are at the beginning of iteration t of the while loop. Let I t = i&lt;&#8467;&lt;j V &#8467; be the interval strictly between V i and V j . We will show inductively that for all x &#8712; L and y &#8712; R, where at least one of x or y is in the interval I t , d min (x, y) &#8804; &#8968;3D/2&#8969;. When the loop terminates, I t must entirely contain either L or R, which will prove that all min-distance between vertices in L and R are at most &#8968;3D/2&#8969;.</p><p>The base case is trivial, as I 1 is empty. Assume the claim holds for t. Without loss of generality, assume Algorithm 3 returns V i , so that I t+1 = I t &#8746; V i . Let x &#8712; L, y &#8712; R with at least one of x or y in I t+1 . If x or y is in I t , then d(x, y) &#8804; &#8968;3D/2&#8969; by induction. Otherwise, one must lie in I t+1 \ I t = V i , and since V i &#8834; L, this vertex must be x. Then we have y &#8712; V j or y &gt; &#960; V j . If y &#8712; V j , then since Algorithm 2 did not fail, we have d(x, y) &#8804; 3D/2. If y &gt; &#960; V j , then because Algorithm 3 returned V i we have d(x, y) &#8804; &#8968;3D/2&#8969;. This completes the induction and the proof of correctness.</p><p>G can be topologically sorted in time &#213;(n). Lemma 8 constructs the set S in time O(nk 2 ). Running BFS to and from each vertex in S takes time &#213;(mn/k). We run Algorithm 2 and Algorithm 3 each up to 2&#952; = n/2k 2 times. Since Algorithm 2 takes time O(k 4+ 2&#946;-2&#945;&#946; &#946;+1 ) and Algorithm 3 takes time O(mk), the total runtime of a recursive step is therefore: This runtime is at most O(m 1.426 n 0.288 ). We note that there is also a combinatorial version of this algorithm which runs in time &#213;(m 5/4 n 1/2 ), and a version which runs in &#213;(m 7&#946;+3-3&#945;&#946; 5&#946;+3-2&#945;&#946; n 2&#946;+2-&#945;&#946; 5&#946;+3-2&#945;&#946; ) time, which is O(m 1.171 n 0.543 ), when m &#8804; n 1.283 . A proof of the theorem may be found in the full version of the paper <ref type="bibr">[7]</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3">Bichromatic min-diameter</head><p>We first present OV-based conditional lower bounds for bichromatic min-diameter approximations, both for general graphs and for DAGs. Then in Section 3.2, we give an almost-2-approximation algorithm for bichromatic min-diameter in DAGs.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1">Conditional lower bounds for bichromatic min-diameter</head><p>We present, in order of increasing strength of the bound, three conditional lower bounds for approximating bichromatic min-diameter: one for DAGs, one for unweighted directed graphs, and one of weighted directed graphs. The constructions proceed analogously to Theorem 9, and can be found in the full version of the paper <ref type="bibr">[7]</ref>. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2">Almost-2-approximation for bichromatic min-diameter in DAGs</head><p>We conclude by turning to upper bounds for bichromatic min-diameter.</p><p>&#9654; Theorem 21. There is an &#213;(min(m 4/3 n 1/3 , m 1/2 n 3/2 ))-time algorithm, which, given a DAG G with maximum red-blue edge weight M 0 , outputs an approximation D 0 such that D &#8804; D 0 &lt; 2D + M 0 &#8804; 3D.</p><p>We give a brief overview of the algorithm. The full details and proof of correctness can be found in the full version of the paper <ref type="bibr">[7]</ref>.</p><p>We first consider the simpler case when the DAG is separated, i.e. when in some topological ordering every red vertex is to the left of every blue vertex. As is typical, we proceed by a binary search; at each stage we have some guess D for the bichromatic min-diameter and either verify the true bichromatic min-diameter is larger than D or smaller than 2D.</p><p>We begin by finding a hitting set for the red vertices with large red outneighborhoods (other red vertices at distance at most D). This is achieved via the standard sampling method (Lemma 8). By running a BFS from this hitting set, we can verify min-distances for all vertices hit in this way to the blue side are not large; it remains to control vertices with small red out-neighborhoods. This is handled separately for sparse and dense graphs.</p></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="1" xml:id="foot_0"><p>The tilde hides polylogarithmic factors.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="2" xml:id="foot_1"><p>Combinatorial is here used to refer to an algorithm that does not rely on fast matrix multiplication.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="3" xml:id="foot_2"><p>If a graph is not weakly connected (which can be checked in O(m + n) time), then it has infinite min-diameter, as well as infinite bichromatic min-diameter if its vertices are 2-colored.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="4" xml:id="foot_3"><p>The OV Conjecture can be equivalently stated in terms of single-set OV (OV where A = B). Informally, the reduction is to construct A &#8242; from A by appending 10 to all vectors, and B &#8242; from B by appending 01 to all vectors. If v1, v2 &#8712; A &#8242; &#8746; B &#8242; are orthogonal, then we must have v1 &#8712; A &#8242; , v2 &#8712; B &#8242; or vice versa.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="5" xml:id="foot_4"><p>To be precise, if we have &#945; &#8805; a, &#969; &#8804; c, we can define b = c-2 1-a , and then the theorem holds for any such pair a, b, used in place of &#945;, &#946;.</p></note>
		</body>
		</text>
</TEI>
