594 research outputs found

    Fast and Compact Exact Distance Oracle for Planar Graphs

    Full text link
    For a given a graph, a distance oracle is a data structure that answers distance queries between pairs of vertices. We introduce an O(n5/3)O(n^{5/3})-space distance oracle which answers exact distance queries in O(logn)O(\log n) time for nn-vertex planar edge-weighted digraphs. All previous distance oracles for planar graphs with truly subquadratic space i.e., space O(n2ϵ)O(n^{2 - \epsilon}) for some constant ϵ>0\epsilon > 0) either required query time polynomial in nn or could only answer approximate distance queries. Furthermore, we show how to trade-off time and space: for any Sn3/2S \ge n^{3/2}, we show how to obtain an SS-space distance oracle that answers queries in time O((n5/2/S3/2)logn)O((n^{5/2}/ S^{3/2}) \log n). This is a polynomial improvement over the previous planar distance oracles with o(n1/4)o(n^{1/4}) query time

    An Approximate Distance Oracle for Social Networks

    Get PDF

    Shortest Paths in Geometric Intersection Graphs

    Get PDF
    This thesis studies shortest paths in geometric intersection graphs, which can model, among others, ad-hoc communication and transportation networks. First, we consider two classical problems in the field of algorithms, namely Single-Source Shortest Paths (SSSP) and All-Pairs Shortest Paths (APSP). In SSSP we want to compute the shortest paths from one vertex of a graph to all other vertices, while in APSP we aim to find the shortest path between every pair of vertices. Although there is a vast literature for these problems in many graph classes, the case of geometric intersection graphs has been only partially addressed. In unweighted unit-disk graphs, we show that we can solve SSSP in linear time, after presorting the disk centers with respect to their coordinates. Furthermore, we give the first (slightly) subquadratic-time APSP algorithm by using our new SSSP result, bit tricks, and a shifted-grid-based decomposition technique. In unweighted, undirected geometric intersection graphs, we present a simple and general technique that reduces APSP to static, offline intersection detection. Consequently, we give fast APSP algorithms for intersection graphs of arbitrary disks, axis-aligned line segments, arbitrary line segments, d-dimensional axis-aligned boxes, and d-dimensional axis-aligned unit hypercubes. We also provide a near-linear-time SSSP algorithm for intersection graphs of axis-aligned line segments by a reduction to dynamic orthogonal point location. Then, we study two problems that have received considerable attention lately. The first is that of computing the diameter of a graph, i.e., the longest shortest-path distance between any two vertices. In the second, we want to preprocess a graph into a data structure, called distance oracle, such that the shortest path (or its length) between any two query vertices can be found quickly. Since these problems are often too costly to solve exactly, we study their approximate versions. Following a long line of research, we employ Voronoi diagrams to compute a (1+epsilon)-approximation of the diameter of an undirected, non-negatively-weighted planar graph in time near linear in the input size and polynomial in 1/epsilon. The previously best solution had exponential dependency on the latter. Using similar techniques, we can also construct the first (1+epsilon)-approximate distance oracles with similar preprocessing time and space and only O(log(1/\epsilon)) query time. In weighted unit-disk graphs, we present the first near-linear-time (1+epsilon)-approximation algorithm for the diameter and for other related problems, such as the radius and the bichromatic closest pair. To do so, we combine techniques from computational geometry and planar graphs, namely well-separated pair decompositions and shortest-path separators. We also show how to extend our approach to obtain O(1)-query-time (1+epsilon)-approximate distance oracles with near linear preprocessing time and space. Then, we apply these oracles, along with additional ideas, to build a data structure for the (1+epsilon)-approximate All-Pairs Bounded-Leg Shortest Paths (apBLSP) problem in truly subcubic time

    Optimal Time-Convex Hull under the Lp Metrics

    Full text link
    We consider the problem of computing the time-convex hull of a point set under the general LpL_p metric in the presence of a straight-line highway in the plane. The traveling speed along the highway is assumed to be faster than that off the highway, and the shortest time-path between a distant pair may involve traveling along the highway. The time-convex hull TCH(P){TCH}(P) of a point set PP is the smallest set containing both PP and \emph{all} shortest time-paths between any two points in TCH(P){TCH}(P). In this paper we give an algorithm that computes the time-convex hull under the LpL_p metric in optimal O(nlogn)O(n\log n) time for a given set of nn points and a real number pp with 1p1\le p \le \infty
    corecore