18 research outputs found

    Sparse Hopsets in Congested Clique

    Get PDF
    We give the first Congested Clique algorithm that computes a sparse hopset with polylogarithmic hopbound in polylogarithmic time. Given a graph G=(V,E)G=(V,E), a (β,ϵ)(\beta,\epsilon)-hopset HH with "hopbound" β\beta, is a set of edges added to GG such that for any pair of nodes uu and vv in GG there is a path with at most β\beta hops in GHG \cup H with length within (1+ϵ)(1+\epsilon) of the shortest path between uu and vv in GG. Our hopsets are significantly sparser than the recent construction of Censor-Hillel et al. [6], that constructs a hopset of size O~(n3/2)\tilde{O}(n^{3/2}), but with a smaller polylogarithmic hopbound. On the other hand, the previously known constructions of sparse hopsets with polylogarithmic hopbound in the Congested Clique model, proposed by Elkin and Neiman [10],[11],[12], all require polynomial rounds. One tool that we use is an efficient algorithm that constructs an \ell-limited neighborhood cover, that may be of independent interest. Finally, as a side result, we also give a hopset construction in a variant of the low-memory Massively Parallel Computation model, with improved running time over existing algorithms

    A Unified Framework for Hopsets

    Get PDF
    Given an undirected graph G = (V,E), an (?,?)-hopset is a graph H = (V,E\u27), so that adding its edges to G guarantees every pair has an ?-approximate shortest path that has at most ? edges (hops), that is, d_G(u,v) ? d_{G?H}^(?)(u,v) ? ?? d_G(u,v). Given the usefulness of hopsets for fundamental algorithmic tasks, several different algorithms and techniques were developed for their construction, for various regimes of the stretch parameter ?. In this work we devise a single algorithm that can attain all state-of-the-art hopsets for general graphs, by choosing the appropriate input parameters. In fact, in some cases it also improves upon the previous best results. We also show a lower bound on our algorithm. In [Ben-Levy and Parter, 2020], given a parameter k, a (O(k^?),O(k^{1-?}))-hopset of size O?(n^{1+1/k}) was shown for any n-vertex graph and parameter 0 < ? < 1, and they asked whether this result is best possible. We resolve this open problem, showing that any (?,?)-hopset of size O(n^{1+1/k}) must have ??? ? ?(k)

    Almost Shortest Paths with Near-Additive Error in Weighted Graphs

    Get PDF
    Let G=(V,E,w)G=(V,E,w) be a weighted undirected graph with nn vertices and mm edges, and fix a set of ss sources SVS\subseteq V. We study the problem of computing {\em almost shortest paths} (ASP) for all pairs in S×VS \times V in both classical centralized and parallel (PRAM) models of computation. Consider the regime of multiplicative approximation of 1+ϵ1+\epsilon, for an arbitrarily small constant ϵ>0\epsilon > 0 . In this regime existing centralized algorithms require Ω(min{Es,nω})\Omega(\min\{|E|s,n^\omega\}) time, where ω<2.372\omega < 2.372 is the matrix multiplication exponent. Existing PRAM algorithms with polylogarithmic depth (aka time) require work Ω(min{Es,nω})\Omega(\min\{|E|s,n^\omega\}). Our centralized algorithm has running time O((m+ns)nρ)O((m+ ns)n^\rho), and its PRAM counterpart has polylogarithmic depth and work O((m+ns)nρ)O((m + ns)n^\rho), for an arbitrarily small constant ρ>0\rho > 0. For a pair (s,v)S×V(s,v) \in S\times V, it provides a path of length d^(s,v)\hat{d}(s,v) that satisfies d^(s,v)(1+ϵ)dG(s,v)+βW(s,v)\hat{d}(s,v) \le (1+\epsilon)d_G(s,v) + \beta \cdot W(s,v), where W(s,v)W(s,v) is the weight of the heaviest edge on some shortest svs-v path. Hence our additive term depends linearly on a {\em local} maximum edge weight, as opposed to the global maximum edge weight in previous works. Finally, our β=(1/ρ)O(1/ρ)\beta = (1/\rho)^{O(1/\rho)}. We also extend a centralized algorithm of Dor et al. \cite{DHZ00}. For a parameter κ=1,2,\kappa = 1,2,\ldots, this algorithm provides for {\em unweighted} graphs a purely additive approximation of 2(κ1)2(\kappa -1) for {\em all pairs shortest paths} (APASP) in time O~(n2+1/κ)\tilde{O}(n^{2+1/\kappa}). Within the same running time, our algorithm for {\em weighted} graphs provides a purely additive error of 2(κ1)W(u,v)2(\kappa - 1) W(u,v), for every vertex pair (u,v)(V2)(u,v) \in {V \choose 2}, with W(u,v)W(u,v) defined as above. On the way to these results we devise a suit of novel constructions of spanners, emulators and hopsets

    DISTRIBUTED, PARALLEL AND DYNAMIC DISTANCE STRUCTURES

    Get PDF
    Many fundamental computational tasks can be modeled by distances on a graph. This has inspired studying various structures that preserve approximate distances, but trade off this approximation factor with size, running time, or the number of hops on the approximate shortest paths. Our focus is on three important objects involving preservation of graph distances: hopsets, in which our goal is to ensure that small-hop paths also provide approximate shortest paths; distance oracles, in which we build a small data structure that supports efficient distance queries; and spanners, in which we find a sparse subgraph that approximately preserves all distances. We study efficient constructions and applications of these structures in various models of computation that capture different aspects of computational systems. Specifically, we propose new algorithms for constructing hopsets and distance oracles in two modern distributed models: the Massively Parallel Computation (MPC) and the Congested Clique model. These models have received significant attention recently due to their close connection to present-day big data platforms. In a different direction, we consider a centralized dynamic model in which the input changes over time. We propose new dynamic algorithms for constructing hopsets and distance oracles that lead to state-of-the-art approximate single-source, multi-source and all-pairs shortest path algorithms with respect to update-time. Finally, we study the problem of finding optimal spanners in a different distributed model, the LOCAL model. Unlike our other results, for this problem our goal is to find the best solution for a specific input graph rather than giving a general guarantee that holds for all inputs. One contribution of this work is to emphasize the significance of the tools and the techniques used for these distance problems rather than heavily focusing on a specific model. In other words, we show that our techniques are broad enough that they can be extended to different models

    Closing the Gap Between Directed Hopsets and Shortcut Sets

    Full text link
    For an n-vertex directed graph G=(V,E)G = (V,E), a β\beta-\emph{shortcut set} HH is a set of additional edges HV×VH \subseteq V \times V such that GHG \cup H has the same transitive closure as GG, and for every pair u,vVu,v \in V, there is a uvuv-path in GHG \cup H with at most β\beta edges. A natural generalization of shortcut sets to distances is a (β,ϵ)(\beta,\epsilon)-\emph{hopset} HV×VH \subseteq V \times V, where the requirement is that HH and GHG \cup H have the same shortest-path distances, and for every u,vVu,v \in V, there is a (1+ϵ)(1+\epsilon)-approximate shortest path in GHG \cup H with at most β\beta edges. There is a large literature on the tradeoff between the size of a shortcut set / hopset and the value of β\beta. We highlight the most natural point on this tradeoff: what is the minimum value of β\beta, such that for any graph GG, there exists a β\beta-shortcut set (or a (β,ϵ)(\beta,\epsilon)-hopset) with O(n)O(n) edges? Not only is this a natural structural question in its own right, but shortcuts sets / hopsets form the core of many distributed, parallel, and dynamic algorithms for reachability / shortest paths. Until very recently the best known upper bound was a folklore construction showing β=O(n1/2)\beta = O(n^{1/2}), but in a breakthrough result Kogan and Parter [SODA 2022] improve this to β=O~(n1/3)\beta = \tilde{O}(n^{1/3}) for shortcut sets and O~(n2/5)\tilde{O}(n^{2/5}) for hopsets. Our result is to close the gap between shortcut sets and hopsets. That is, we show that for any graph GG and any fixed ϵ\epsilon there is a (O~(n1/3),ϵ)(\tilde{O}(n^{1/3}),\epsilon) hopset with O(n)O(n) edges. More generally, we achieve a smooth tradeoff between hopset size and β\beta which exactly matches the tradeoff of Kogan and Parter for shortcut sets (up to polylog factors). Using a very recent black-box reduction of Kogan and Parter, our new hopset implies improved bounds for approximate distance preservers.Comment: Abstract shortened to meet arXiv requirements, v2: fixed a typ

    Centralized, Parallel, and Distributed Multi-Source Shortest Paths via Hopsets and Rectangular Matrix Multiplication

    Get PDF
    Consider an undirected weighted graph G=(V,E,w)G = (V,E,w). We study the problem of computing (1+ϵ)(1+\epsilon)-approximate shortest paths for S×VS \times V, for a subset SVS \subseteq V of S=nr|S| = n^r sources, for some 0<r10 < r \le 1. We devise a significantly improved algorithm for this problem in the entire range of parameter rr, in both the classical centralized and the parallel (PRAM) models of computation, and in a wide range of rr in the distributed (Congested Clique) model. Specifically, our centralized algorithm for this problem requires time O~(Eno(1)+nω(r))\tilde{O}(|E| \cdot n^{o(1)} + n^{\omega(r)}), where nω(r)n^{\omega(r)} is the time required to multiply an nr×nn^r \times n matrix by an n×nn \times n one. Our PRAM algorithm has polylogarithmic time (logn)O(1/ρ)(\log n)^{O(1/\rho)}, and its work complexity is O~(Enρ+nω(r))\tilde{O}(|E| \cdot n^\rho + n^{\omega(r)}), for any arbitrarily small constant ρ>0\rho >0. In particular, for r0.313r \le 0.313\ldots, our centralized algorithm computes S×VS \times V (1+ϵ)(1+\epsilon)-approximate shortest paths in n2+o(1)n^{2 + o(1)} time. Our PRAM polylogarithmic-time algorithm has work complexity O(Enρ+n2+o(1))O(|E| \cdot n^\rho + n^{2+o(1)}), for any arbitrarily small constant ρ>0\rho >0. Previously existing solutions either require centralized time/parallel work of O(ES)O(|E| \cdot |S|) or provide much weaker approximation guarantees. In the Congested Clique model, our algorithm solves the problem in polylogarithmic time for S=nr|S| = n^r sources, for r0.655r \le 0.655, while previous state-of-the-art algorithms did so only for r1/2r \le 1/2. Moreover, it improves previous bounds for all r>1/2r > 1/2. For unweighted graphs, the running time is improved further to poly(loglogn)poly(\log\log n)

    Path-Reporting Distance Oracles with Near-Logarithmic Stretch and Linear Size

    Full text link
    Given an nn-vertex undirected graph G=(V,E,w)G=(V,E,w), and a parameter k1k\geq1, a path-reporting distance oracle (or PRDO) is a data structure of size S(n,k)S(n,k), that given a query (u,v)V2(u,v)\in V^2, returns an f(k)f(k)-approximate shortest uvu-v path PP in GG within time q(k)+O(P)q(k)+O(|P|). Here S(n,k)S(n,k), f(k)f(k) and q(k)q(k) are arbitrary functions. A landmark PRDO due to Thorup and Zwick, with an improvement of Wulff-Nilsen, has S(n,k)=O(kn1+1k)S(n,k)=O(k\cdot n^{1+\frac{1}{k}}), f(k)=2k1f(k)=2k-1 and q(k)=O(logk)q(k)=O(\log k). The size of this oracle is Ω(nlogn)\Omega(n\log n) for all kk. Elkin and Pettie and Neiman and Shabat devised much sparser PRDOs, but their stretch was polynomially larger than the optimal 2k12k-1. On the other hand, for non-path-reporting distance oracles, Chechik devised a result with S(n,k)=O(n1+1k)S(n,k)=O(n^{1+\frac{1}{k}}), f(k)=2k1f(k)=2k-1 and q(k)=O(1)q(k)=O(1). In this paper we make a dramatic progress in bridging the gap between path-reporting and non-path-reporting distance oracles. We devise a PRDO with size S(n,k)=O(kloglognlognn1+1k)S(n,k)=O(\lceil\frac{k\log\log n}{\log n}\rceil\cdot n^{1+\frac{1}{k}}), stretch f(k)=O(k)f(k)=O(k) and query time q(k)=O(logkloglognlogn)q(k)=O(\log\lceil\frac{k\log\log n}{\log n}\rceil). We can also have size O(n1+1k)O(n^{1+\frac{1}{k}}), stretch O(kkloglognlogn)O(k\cdot\lceil\frac{k\log\log n}{\log n}\rceil) and query time q(k)=O(logkloglognlogn)q(k)=O(\log\lceil\frac{k\log\log n}{\log n}\rceil). Our results on PRDOs are based on novel constructions of approximate distance preservers, that we devise in this paper. Specifically, we show that for any ϵ>0\epsilon>0, any k=1,2,...k=1,2,..., and any graph GG and a collection P\mathcal{P} of pp vertex pairs, there exists a (1+ϵ)(1+\epsilon)-approximate preserver with O(γ(ϵ,k)p+nlogk+n1+1k)O(\gamma(\epsilon,k)\cdot p+n\log k+n^{1+\frac{1}{k}}) edges, where γ(ϵ,k)=(logkϵ)O(logk)\gamma(\epsilon,k)=(\frac{\log k}{\epsilon})^{O(\log k)}. These new preservers are significantly sparser than the previous state-of-the-art approximate preservers due to Kogan and Parter.Comment: 61 pages, 3 figure

    A Local-To-Global Theorem for Congested Shortest Paths

    Get PDF
    P_k such that each P_i is a shortest path from s_i to t_i, and every node in the graph is on at most c paths P_i, or reporting that no such collection of paths exists. When c = k, there are no congestion constraints, and the problem can be solved easily by running a shortest path algorithm for each pair (s_i,t_i) independently. At the other extreme, when c = 1, the (k,c)-SPC problem is equivalent to the k-Disjoint Shortest Paths (k-DSP) problem, where the collection of shortest paths must be node-disjoint. For fixed k, k-DSP is polynomial-time solvable on DAGs and undirected graphs. Amiri and Wargalla interpolated between these two extreme values of c, to obtain an algorithm for (k,c)-SPC on DAGs that runs in polynomial time when k-c is constant. In the same way, we prove that (k,c)-SPC can be solved in polynomial time on undirected graphs whenever k-c is constant. For directed graphs, because of our counterexample to the original theorem statement, our roundtrip local-to-global result does not imply such an algorithm (k,c)-SPC. Even without an algorithmic application, our proof for directed graphs may be of broader interest because it characterizes intriguing structural properties of shortest paths in directed graphs
    corecore