345 research outputs found

    Fast approximation of centrality and distances in hyperbolic graphs

    Full text link
    We show that the eccentricities (and thus the centrality indices) of all vertices of a δ\delta-hyperbolic graph G=(V,E)G=(V,E) can be computed in linear time with an additive one-sided error of at most cδc\delta, i.e., after a linear time preprocessing, for every vertex vv of GG one can compute in O(1)O(1) time an estimate e^(v)\hat{e}(v) of its eccentricity eccG(v)ecc_G(v) such that eccG(v)e^(v)eccG(v)+cδecc_G(v)\leq \hat{e}(v)\leq ecc_G(v)+ c\delta for a small constant cc. We prove that every δ\delta-hyperbolic graph GG has a shortest path tree, constructible in linear time, such that for every vertex vv of GG, eccG(v)eccT(v)eccG(v)+cδecc_G(v)\leq ecc_T(v)\leq ecc_G(v)+ c\delta. These results are based on an interesting monotonicity property of the eccentricity function of hyperbolic graphs: the closer a vertex is to the center of GG, the smaller its eccentricity is. We also show that the distance matrix of GG with an additive one-sided error of at most cδc'\delta can be computed in O(V2log2V)O(|V|^2\log^2|V|) time, where c<cc'< c is a small constant. Recent empirical studies show that many real-world graphs (including Internet application networks, web networks, collaboration networks, social networks, biological networks, and others) have small hyperbolicity. So, we analyze the performance of our algorithms for approximating centrality and distance matrix on a number of real-world networks. Our experimental results show that the obtained estimates are even better than the theoretical bounds.Comment: arXiv admin note: text overlap with arXiv:1506.01799 by other author

    Distance Oracles for Time-Dependent Networks

    Full text link
    We present the first approximate distance oracle for sparse directed networks with time-dependent arc-travel-times determined by continuous, piecewise linear, positive functions possessing the FIFO property. Our approach precomputes (1+ϵ)(1+\epsilon)-approximate distance summaries from selected landmark vertices to all other vertices in the network. Our oracle uses subquadratic space and time preprocessing, and provides two sublinear-time query algorithms that deliver constant and (1+σ)(1+\sigma)-approximate shortest-travel-times, respectively, for arbitrary origin-destination pairs in the network, for any constant σ>ϵ\sigma > \epsilon. Our oracle is based only on the sparsity of the network, along with two quite natural assumptions about travel-time functions which allow the smooth transition towards asymmetric and time-dependent distance metrics.Comment: A preliminary version appeared as Technical Report ECOMPASS-TR-025 of EU funded research project eCOMPASS (http://www.ecompass-project.eu/). An extended abstract also appeared in the 41st International Colloquium on Automata, Languages, and Programming (ICALP 2014, track-A

    Hardness of Approximation in {P} via Short Cycle Removal: {C}ycle Detection, Distance Oracles, and Beyond

    Get PDF

    Fast 2-Approximate All-Pairs Shortest Paths

    Full text link
    In this paper, we revisit the classic approximate All-Pairs Shortest Paths (APSP) problem in undirected graphs. For unweighted graphs, we provide an algorithm for 22-approximate APSP in O~(n2.5r+nω(r))\tilde O(n^{2.5-r}+n^{\omega(r)}) time, for any r[0,1]r\in[0,1]. This is O(n2.032)O(n^{2.032}) time, using known bounds for rectangular matrix multiplication~nω(r)n^{\omega(r)}~[Le Gall, Urrutia, SODA 2018]. Our result improves on the O~(n2.25)\tilde{O}(n^{2.25}) bound of [Roddity, STOC 2023], and on the O~(mn+n2)\tilde{O}(m\sqrt n+n^2) bound of [Baswana, Kavitha, SICOMP 2010] for graphs with mn1.532m\geq n^{1.532} edges. For weighted graphs, we obtain (2+ϵ)(2+\epsilon)-approximate APSP in O~(n3r+nω(r))\tilde O(n^{3-r}+n^{\omega(r)}) time, for any r[0,1]r\in [0,1]. This is O(n2.214)O(n^{2.214}) time using known bounds for ω(r)\omega(r). It improves on the state of the art bound of O(n2.25)O(n^{2.25}) by [Kavitha, Algorithmica 2012]. Our techniques further lead to improved bounds in a wide range of density for weighted graphs. In particular, for the sparse regime we construct a distance oracle in O~(mn2/3)\tilde O(mn^{2/3}) time that supports 22-approximate queries in constant time. For sparse graphs, the preprocessing time of the algorithm matches conditional lower bounds [Patrascu, Roditty, Thorup, FOCS 2012; Abboud, Bringmann, Fischer, STOC 2023]. To the best of our knowledge, this is the first 2-approximate distance oracle that has subquadratic preprocessing time in sparse graphs. We also obtain new bounds in the near additive regime for unweighted graphs. We give faster algorithms for (1+ϵ,k)(1+\epsilon,k)-approximate APSP, for k=2,4,6,8k=2,4,6,8. We obtain these results by incorporating fast rectangular matrix multiplications into various combinatorial algorithms that carefully balance out distance computation on layers of sparse graphs preserving certain distance information

    On the Space Usage of Approximate Distance Oracles with Sub-2 Stretch

    Full text link
    For an undirected unweighted graph G=(V,E)G=(V,E) with nn vertices and mm edges, let d(u,v)d(u,v) denote the distance from uVu\in V to vVv\in V in GG. An (α,β)(\alpha,\beta)-stretch approximate distance oracle (ADO) for GG is a data structure that given u,vVu,v\in V returns in constant (or near constant) time a value d^(u,v)\hat d (u,v) such that d(u,v)d^(u,v)αd(u,v)+βd(u,v) \le \hat d (u,v) \le \alpha\cdot d(u,v) + \beta, for some reals α>1,β\alpha >1, \beta. If β=0\beta = 0, we say that the ADO has stretch α\alpha. Thorup and Zwick~\cite{thorup2005approximate} showed that one cannot beat stretch 3 with subquadratic space (in terms of nn) for general graphs. P\v{a}tra\c{s}cu and Roditty~\cite{patrascu2010distance} showed that one can obtain stretch 2 using O(m1/3n4/3)O(m^{1/3}n^{4/3}) space, and so if mm is subquadratic in nn then the space usage is also subquadratic. Moreover, P\v{a}tra\c{s}cu and Roditty~\cite{patrascu2010distance} showed that one cannot beat stretch 2 with subquadratic space even for graphs where m=O~(n)m=\tilde{O}(n), based on the set-intersection hypothesis. In this paper we explore the conditions for which an ADO can be stored using subquadratic space while supporting a sub-2 stretch. In particular, we show that if the maximum degree in GG is ΔGO(n1/2ε)\Delta_G \leq O(n^{1/2-\varepsilon}) for some 0<ε1/20<\varepsilon \leq 1/2, then there exists an ADO for GG that uses O~(n22ε3)\tilde{O}(n^{2-\frac {2\varepsilon}{3}}) space and has a sub-2 stretch. Moreover, we prove a conditional lower bound, based on the set intersection hypothesis, which states that for any positive integer klognk \leq \log n, obtaining a sub-k+2k\frac{k+2}{k} stretch for graphs with maximum degree Θ(n1/k)\Theta(n^{1/k}) requires quadratic space. Thus, for graphs with maximum degree Θ(n1/2)\Theta(n^{1/2}), obtaining a sub-2 stretch requires quadratic space

    On Diameter Approximation in Directed Graphs

    Get PDF
    Computing the diameter of a graph, i.e. the largest distance, is a fundamental problem that is central in fine-grained complexity. In undirected graphs, the Strong Exponential Time Hypothesis (SETH) yields a lower bound on the time vs. approximation trade-off that is quite close to the upper bounds. In directed graphs, however, where only some of the upper bounds apply, much larger gaps remain. Since d(u,v) may not be the same as d(v,u), there are multiple ways to define the problem, the two most natural being the (one-way) diameter (max_(u,v) d(u,v)) and the roundtrip diameter (max_{u,v} d(u,v)+d(v,u)). In this paper we make progress on the outstanding open question for each of them. - We design the first algorithm for diameter in sparse directed graphs to achieve n^{1.5-?} time with an approximation factor better than 2. The new upper bound trade-off makes the directed case appear more similar to the undirected case. Notably, this is the first algorithm for diameter in sparse graphs that benefits from fast matrix multiplication. - We design new hardness reductions separating roundtrip diameter from directed and undirected diameter. In particular, a 1.5-approximation in subquadratic time would refute the All-Nodes k-Cycle hypothesis, and any (2-?)-approximation would imply a breakthrough algorithm for approximate ?_?-Closest-Pair. Notably, these are the first conditional lower bounds for diameter that are not based on SETH
    corecore