Testing Euclidean Spanners

Similar documents
Comparing the strength of query types in property testing: The case of testing k-colorability

Applications of Geometric Spanner

Property Testing in Computational Geometry

3 School of Computer Science Carleton University, ON, Canada. School of Computer Science Carleton University,

CS 860 Fall Lecture 6. Anna Lubiw, U. Waterloo. one more paper on dynamic graphs (connectivity rather than shortest paths)

Testing Hereditary Properties of Non-Expanding Bounded-Degree Graphs

APPROXIMATING THE AVERAGE STRETCH FACTOR OF GEOMETRIC GRAPHS

Sublinear Algorithms Lectures 1 and 2. Sofya Raskhodnikova Penn State University

Testing Hypergraph Coloring

Improved algorithms for constructing fault-tolerant spanners

Spanners of Complete k-partite Geometric Graphs

Fast Approximate PCPs for Multidimensional Bin-Packing Problems

(Master Course) Mohammad Farshi Department of Computer Science, Yazd University. Yazd Univ. Computational Geometry.

arxiv: v1 [cs.cg] 4 Dec 2007

Approximating geometric bottleneck shortest paths

Notes on Binary Dumbbell Trees

New Results on Fault Tolerant Geometric Spanners

Full text available at: Algorithmic and Analysis Techniques in Property Testing

Testing st-connectivity

all the vertices). between u and v in the subgraph is at most t necessary to endow them with additional properties,

Testing subgraphs in large graphs

Local Algorithms for Sparse Spanning Graphs

Monotonicity testing over general poset domains

Geometric Spanner Networks: Open Problems

Sublinear Algorithms January 12, Lecture 2. First, let us look at a couple of simple testers that do not work well.

Finding Shortest Path on Land Surface

Region-Fault Tolerant Geometric Spanners

An Optimal Algorithm for the Euclidean Bottleneck Full Steiner Tree Problem

Bottleneck Steiner Tree with Bounded Number of Steiner Vertices

1 Proximity via Graph Spanners

Testing Euclidean Minimum Spanning Trees in the Plane

arxiv: v1 [cs.ni] 28 Apr 2015

Approximation algorithms for the bottleneck stretch factor problem

Distance Preserving Terrain Simplification An Experimental Study

Hierarchy Theorems for Property Testing

Smallest Intersecting Circle for a Set of Polygons

Property Testing for Sparse Graphs: Structural graph theory meets Property testing

1 Introduction and Results

Tree-Weighted Neighbors and Geometric k Smallest Spanning Trees

arxiv: v1 [cs.cg] 24 Jul 2018

6.889 Lecture 15: Traveling Salesman (TSP)

On Computing the Centroid of the Vertices of an Arrangement and Related Problems

Approximating Node-Weighted Multicast Trees in Wireless Ad-Hoc Networks

Introduction to Geometric Algorithms

On Minimum Weight Pseudo-Triangulations

A technique for adding range restrictions to. August 30, Abstract. In a generalized searching problem, a set S of n colored geometric objects

Lecture and notes by: Nate Chenette, Brent Myers, Hari Prasad November 8, Property Testing

Geometric Streaming Algorithms with a Sorting Primitive (TR CS )

Chordal graphs and the characteristic polynomial

Topic: Local Search: Max-Cut, Facility Location Date: 2/13/2007

Anna Porazilová THE SHORTEST PATH. 1 Introduction 25. KONFERENCE O GEOMETRII A POČÍTAČOVÉ GRAFICE

Shortest Paths in the Plane with Obstacle Violations

Testing the Cluster Structure of Graphs Christian Sohler

Experimental Study of Kinetic Geometric t-spanner Algorithms

Convex Hull of the Union of Convex Objects in the Plane: an Adaptive Analysis

Induced-universal graphs for graphs with bounded maximum degree

On the logspace shortest path problem

Computational Geometry Algorithmische Geometrie

Approximation Schemes for Planar Graph Problems (1983, 1994; Baker)

Visibility: Finding the Staircase Kernel in Orthogonal Polygons

Geometric Data Structures Multi-dimensional queries Nearest neighbour problem References. Notes on Computational Geometry and Data Structures

Property Testing of Massively Parametrized problems - A survey

Updating Widths and Maximum Spanning Trees using the Rotating Caliper Graph

Theoretical Computer Science. Testing Eulerianity and connectivity in directed sparse graphs

Sparse geometric graphs with small dilation

All-Pairs Nearly 2-Approximate Shortest-Paths in O(n 2 polylog n) Time

Faster Algorithms for the Constrained k-means Problem

Shortest Paths in Intersection Graphs of Unit Disks

Dynamic Euclidean Minimum Spanning Trees and Extrema of Binary Functions

2) For any triangle edge not on the boundary, there is exactly one neighboring

Algorithms for Euclidean TSP

Lecture 9. Semidefinite programming is linear programming where variables are entries in a positive semidefinite matrix.

Strongly Connected Spanning Subgraph for Almost Symmetric Networks

Packing Two Disks into a Polygonal Environment

Approximate Nearest Neighbor Problem: Improving Query Time CS468, 10/9/2006

Optimal Region for Binary Search Tree, Rotation and Polytope

arxiv:cs/ v1 [cs.cc] 28 Apr 2003

Counting the Number of Eulerian Orientations

[13] D. Karger, \Using randomized sparsication to approximate minimum cuts" Proc. 5th Annual

Introduction to Approximation Algorithms

1/60. Geometric Algorithms. Lecture 1: Introduction. Convex Hulls

Property and Equivalence Testing on Strings

Construction of Minimum-Weight Spanners

Visibilty: Finding the Staircase Kernel in Orthogonal Polygons

Independent Sets in Hypergraphs with. Applications to Routing Via Fixed Paths. y.

COMPUTING MINIMUM SPANNING TREES WITH UNCERTAINTY

ON PLANE GEOMETRIC SPANNERS: A SURVEY AND OPEN PROBLEMS

Lecture 27: Fast Laplacian Solvers

Monotonicity testing over general poset domains

arxiv: v1 [math.co] 7 Dec 2018

Testing st-connectivity

I/O-Efficient Shortest Path Queries in Geometric Spanners

Testing Eulerianity and Connectivity in Directed Sparse Graphs

6.889 Sublinear Time Algorithms February 25, Lecture 6

Local Search Approximation Algorithms for the Complement of the Min-k-Cut Problems

Self-Approaching Graphs

On the Euclidean Bottleneck Full Steiner Tree Problem

An Approximation Algorithm for Shortest Descending Paths

Algorithmic complexity of two defence budget problems

6. Concluding Remarks

Transcription:

Testing Euclidean Spanners Frank Hellweg Melanie Schmidt Christian Sohler Department of Computer Science Technical University of Dortmund 44227 Dortmund, Germany Abstract In this paper we develop a property testing algorithm for the problem of testing whether a directed geometric graph with bounded (out)degree is a (1 + δ)-spanner. 1 Introduction Property testing is the computational task of deciding whether a given object has a predetermined property Π or is far away from every object with property Π. Thus, property testing can be viewed as a relaxation of a standard decision problem. The main goal of property testing is to develop randomized algorithms that perform this relaxed decision task by only looking at a small part of the input object, i.e. we want to develop algorithms whose running time is sublinear in the object's description size. Property testing has been introduced by Rubinfeld and Sudan [30] and the study of combinatorial properties has been initiated by Goldreich, Goldwasser, and Ron [23]. Since then, property testing algorithms have been developed for properties of functions [22, 21, 11], properties of distributions [8, 7], algebraic properties [26], graph and hypergraph properties [23, 3, 14, 10], and geometric properties. In this paper we continue the study of property testing algorithms for geometric properties. Previous work on geometric property testing includes testing algorithms for convexity of polygons [18], convexity [29], geometric properties of point sets (for example convex position) and the Euclidean minimum spanning tree [16, 15, 17], and clusterability of point sets [1, 15]. Our contribution In this work, we develop property testing algorithms for Euclidean spanners. A weighted directed geometric graph (P, E) is a directed graph whose vertex set is a set of points in the Euclidean space R d and whose edge weights (lengths) are given by the Euclidean distance of the vertices, i.e. edge [p, q has length p q 2. A graph is called (1 + δ)-spanner, if for every pair of vertices p, q the shortest path distance d G (p, q) in G is at most (1 + δ) p q 2, i.e. the shortest path distance in G is a good approximation of the true distance of the points p and q. Euclidean spanners are a fundamental geometric 1

graph structure as they can be used to approximately solve many geometric proximity problems, and they nd applications, for example, in the area of mobile ad-hoc networks. Many dierent constructions of Euclidean spanners are known. Euclidian spanners with a linear number of edges can for example be constructed by using so-called Θ-graphs [13, 25] or structures based on the well-separated pair decomposition [12, 28]. Also techniques to construct spanners with bounded-degree are known [5]. For more details we refer to the book [28]. We investigate the question whether a given graph is a Euclidean spanner. The related question of computing the stretch factor of a given graph has recently been studied in [4, 19, 27]. Additionally, Ahn et al. [2] discuss the problem to nd an edge whose removal leads to the smallest possible increase in the stretch factor, and Farshi et al. [20] consider the question which edge should be added to receive the best decrease in the stretch factor (both articles consider very special cases only). We say that a geometric graph G is ɛ-far from a (1 + δ)-spanner, if one has to insert more than ɛn edges into G to make it a (1 + δ)-spanner. A property tester is a randomized algorithm that has to distinguish (1 + δ)-spanners from graphs which are ɛ-far from any (1 + δ)-spanner using a sublinear number of queries to the graph, which is assumed to be stored in adjacency list representation. In this paper, we show that the property of being a (1 + δ)-spanner can be tested with Õ ( δ 3d ɛ 3 n ) queries for bounded (out)degree graphs. 2 Preliminaries Let G = (P, E) be a directed geometric graph with vertex set P := {1,..., n} and edge set E, where the vertices of P are points in the R d and d N is a constant. We use [p, q to denote a directed edge from p to q. The length of an edge [p, q is dened to be the Euclidean distance p q 2 between p, q, i. e. the edge lengths are induced by the positions of vertices. We use d G (p, q) to denote the shortest path distance from p to q, i. e. d G (p, p) = 0, d G (p, q) = p q 2, if [p, q E and d G (p, q) := min paths Q from p to q [p,q Q d G(p, q ) else. We assume that G has an outdegree of at most D N and that it is stored in the adjacency list model [24], i. e. we have access to a function f G : P {1,..., D} P {+}, where f G (p, i) returns the i-th neighbor of vertex p if p has at least i neighbors and + otherwise. Denition 1 Let δ > 0 be a parameter. A geometric graph G is called a (1 + δ)-spanner, if d G (p, q) (1 + δ) q p 2 for all pairs of vertices [p, q P 2, p q. In this paper we will assume that 0 < δ < 1. Denition 2 Let G be a directed geometric graph and let 0 < ɛ < 1. A graph G is ɛ-far from being a (1 + δ)-spanner, if one has to insert more than ɛn edges to make G a (1 + δ)- spanner (note that there is no restriction to maintain the degree bound D). G is ɛ-close to being a (1 + δ)-spanner, if it is not ɛ-far from it. An algorithm A is called a property tester with one-sided error for the property of being a (1 + δ)-spanner, if for any directed geometric graph G it outputs 2

true with a probability of 1, if G is a (1 + δ)-spanner false with probability at least 2/3, if G is ɛ-far from being a (1 + δ)-spanner when it is given n, δ and ɛ as input and oracle access to f G. The query complexity of A is the worst-case number of accesses to f G it needs. 3 The algorithm Our algorithm for testing geometric spanners works as follows. We rst sample a set of s = Õ( n ) vertices p δ O(1) ɛ O(1) 1,..., p s uniformly at random. Then we start a shortest path computation from each vertex using Dijkstra's algorithm until O(log n/(ɛδ 2d )) vertices have been visited. We call this traversal Dijkstra traversal. Finally, we check for every sample point p i if there exists another sample point p j within a distance of W/(1 + δ) such that (1+δ) p i p j 2 > d G (p i, p j ), where G is the graph induced by the Dijkstra traversals, i.e. G contains exactly the vertices and edges that have been visited during all such traversals, and W is the maximal graph distance reached during the traversal. UniformTester(n, G, δ, ɛ) Sample s = Õ(δ d ɛ 2 n) points p 1,..., p s from P u.i.d. without replacement for i 1 to s Perform a Dijkstra traversal in G from p i until s = Õ(δ 2d ɛ 1 ) nodes have been visited Let R be the set of vertices visited and let W = max q R d G (p i, q) forall points p j such that p i p j 2 < 1 1+δ W if the Dijkstra traversal did not reach p j or d G (p i, p j ) (1 + δ) p i p j 2 return false return true Notice that this algorithm only tests small neighborhoods of certain points. At rst glance it seems unlikely that the spanner property can be tested by local investigations. Consider the path depicted in Figure 1. If δ is chosen appropriately, then the spanner property might be fullled for all pairs (v i, v j ) except for (v 1, v 9 ). This means that the violation cannot be found by sampling only parts of the path. Surprisingly, when distinguishing spanners and graphs that are ɛ-far from being a spanner, the situation is dierent. We show that a geometric graph cannot be ɛ-far from being a spanner if it does only contain `global' violations of the spanner property like the one in Figure 1. 3

v 1 v 2 v 3 v 4 v 5 v 6 v 7 v 8 v 9 Figure 1: A curved path where the quotient of the distance in the graph and the euclidean distance grows for increasing i. References [1] N. Alon, S. Dar, M. Parnas, D. Ron. Testing of Clustering. SIAM Journal on Discrete Mathematics, 16(3): 393-417, 2003. [2] H.-K. Ahn, M. Farshi, C. Knauer, M. Smid, Y. Wang Dilation-Optimal Edge Deletion in Polygonal Cycles. Algorithms and Computation, pp. 88-99, Springer, 2007. [3] N. Alon, E. Fischer, I. Newman, and A. Shapira. A combinatorial characterization of the testable graph properties: it's all about regularity. SIAM Journal on Computing, 39(1): 143-167, 2009. [4] P.K. Agarwal, R. Klein, C. Knauer, S. Langerman, P. Morin, M Sharir, M. Soss Computing the Detour and Spanning Ratio of Paths, Trees, and Cycles in 2D and 3D. Discrete and Computational Geometry, 39(1-3): 17-37, 2007. [5] S. Arya, G. Das, M. Mount, J.S. Salowe, M. Smid. Euclidean spanners: short, thin, and lanky. Proceedings of the 27th ACM Symposium on the Theory of Computing, pp. 489-498, 1995. [6] O. Ben-Zwi, O. Lachish, I. Newman. Lower bounds for testing Euclidean Minimum Spanning Trees. Information Processing Letters, 102(6): 219-225, 2007. [7] T. Batu, L. Fortnow, E. Fischer, R. Kumar, R. Rubinfeld, P. White. Testing Random Variables for Independence and Identity. Proceedings of the 42nd IEEE Symposium on Foundations of Computer Science (FOCS), pp. 442-451, 2001. [8] T. Batu, L. Fortnow, R. Rubinfeld, W. Smith, and P. White. Testing that distributions are close. Proceedings of the 41st IEEE Symposium on Foundations of Computer Science (FOCS), pp. 259-269, 2000. [9] M. de Berg, M. van Kreveld, M. Overmars, O. Schwarzkopf. Computational Geometry Algorithms and Applications. Springer, 1997. [10] I. Benjamini, O. Schramm, A. Shapira. Every minor-closed property of sparse graphs is testable. Proceedings of the 40th Annual ACM Symposium on Theory of Computing (STOC), pp. 393-402, 2008. [11] E. Blais. Testing juntas nearly optimally. Proceedings of the 41st Annual ACM Symposium on Theory of Computing (STOC), pp. 151-158, 2009. 4

[12] P.B. Callahan, S.R. Kosaraju. Faster algorithms for some geometric graph problems in higher dimensions. Proceedings of the 4th ACM-SIAM Symposium on Discrete Algorithms, pp. 291-300, 1993. [13] K.L. Clarkson. Approximating algorithms for shortest path motion planning. Proceedings of the 19th ACM Symposium on the Theory of Computation, pp. 56-65, 1987. [14] A. Czumaj, A. Shapira, and C. Sohler. Testing hereditary properties of non-expanding bounded-degree graphs. SIAM Journal on Computing, 38(6): 2499-2510, 2009. [15] A. Czumaj, C. Sohler. Property Testing with Geometric Queries. Proceedings of the 9th Annual European Symposium on Algorithms (ESA), pp. 266-277, 2001. [16] A. Czumaj, C. Sohler, M. Ziegler. Property Testing in Computational Geometry. Proceedings of the 8th Annual European Symposium on Algorithms (ESA), pp. 155-166, 2000. [17] A. Czumaj, C. Sohler. Testing Euclidean minimum spanning trees in the plane. ACM Transactions on Algorithms, 4(3):,2008. [18] F. Ergun, S. Kannan, R. Kumar, R. Rubinfeld, M. Viswanathan. Spot-Checkers. Journal of Computer and System Sciences, 60(3): 717-751, 2000. [19] D. Eppstein, K.A. Wortman. Minimum dilation stars. Computational Geometry: Theory and Applications, 37(1): 27-37, 2007. [20] M. Farshi, P. Giannopoulos, J. Gudmundsson Finding the best shortcut in a geometric network Proceedings of the 21th annual symposium on Computational geometry, pp. 327-335, 2005. [21] E. Fischer, E. Lehman, I. Newman, S. Raskhodnikova, R. Rubinfeld, A. Samorodnitsky. Monotonicity testing over general poset domains. Proceedings of the 34th Annual ACM Symposium on Theory of Computing (STOC), pp. 474-483, 2002. [22] O. Goldreich, S. Goldwasser, E. Lehman, D. Ron, A. Samorodnitsky. Testing Monotonicity. Combinatorica, 20(3): 301-337, 2000. [23] O. Goldreich, S. Goldwasser, D. Ron. Property Testing and its Connection to Learning and Approximation. Journal of the ACM, 45(4): 653-750, 1998. [24] O. Goldreich, D. Ron. Property Testing in Bounded Degree Graphs. Algorithmica, 32(2): 302-343, 2008. [25] M. Keil. Approximating the complete Euclidean graph. Lecture Notes in Computer Science, 318: 208-213, 1988. [26] T. Kaufman, M. Sudan. Algebraic property testing: the role of invariance. Proceedings of the 40th Annual ACM Symposium on Theory of Computing (STOC), pp. 403-412, 2008. [27] G. Narasimhan, M. Smid. Approximating the Stretch Factor of Euclidean Graphs. SIAM Journal on Computing, pp.978-989, 2000. 5

[28] G. Narasimhan, M. Smid. Geometric Spanner Networks. Cambridge University Press, 2007. [29] L. Rademacher, S. Vempala. Testing Geometric Convexity. Proceedings of the 24th Foundations of Software Technology and Theoretical Computer Science (FSTTCS), pp. 469-480, 2004. [30] R. Rubinfeld, M. Sudan. Robust Characterizations of Polynomials with Applications to Program Testing. SIAM Journal on Computing, 25(2): 252-271, 1996. 6