Testing the Diameter of Graphs Michal Parnas Dana Ron.

Slides:



Advertisements
Similar presentations
1 Property testing and learning on strings and trees Michel de Rougemont University Paris II & LRI Joint work with E. Fischer, Technion, F. Magniez, LRI.
Advertisements

Hardness of testing 3- colorability in bounded degree graphs Andrej Bogdanov Kenji Obata Luca Trevisan.
Finding Cycles and Trees in Sublinear Time Oded Goldreich Weizmann Institute of Science Joint work with Artur Czumaj, Dana Ron, C. Seshadhri, Asaf Shapira,
December 2, 2009 IPAM: Invariance in Property Testing 1 Invariance in Property Testing Madhu Sudan Microsoft/MIT TexPoint fonts used in EMF. Read the TexPoint.
Property Testing of Data Dimensionality Robert Krauthgamer ICSI and UC Berkeley Joint work with Ori Sasson (Hebrew U.)
Bart Jansen 1.  Problem definition  Instance: Connected graph G, positive integer k  Question: Is there a spanning tree for G with at least k leaves?
Deterministic vs. Non-Deterministic Graph Property Testing Asaf Shapira Tel-Aviv University Joint work with Lior Gishboliner.
Property testing of Tree Regular Languages Frédéric Magniez, LRI, CNRS Michel de Rougemont, LRI, University Paris II.
2/14/13CMPS 3120 Computational Geometry1 CMPS 3120: Computational Geometry Spring 2013 Planar Subdivisions and Point Location Carola Wenk Based on: Computational.
Graph Traversals Visit vertices of a graph G to determine some property: Is G connected? Is there a path from vertex a to vertex b? Does G have a cycle?
Zoo-Keeper’s Problem An O(nlogn) algorithm for the zoo-keeper’s problem Sergei Bespamyatnikh Computational Geometry 24 (2003), pp th CGC Workshop.
1. Given a predetermined property and a graph we want to distinguish between the 2 cases: 1)The graph has the property 2) The graph is “far” from having.
Christian Sohler | Every Property of Hyperfinite Graphs is Testable Ilan Newman and Christian Sohler.
Artur Czumaj Dept of Computer Science & DIMAP University of Warwick Testing Expansion in Bounded Degree Graphs Joint work with Christian Sohler.
(Omer Reingold, 2005) Speaker: Roii Werner TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AA A AA A A A A AA A.
Proclaiming Dictators and Juntas or Testing Boolean Formulae Michal Parnas Dana Ron Alex Samorodnitsky.
Sparse Random Linear Codes are Locally Decodable and Testable Tali Kaufman (MIT) Joint work with Madhu Sudan (MIT)
1 Algorithms for Large Data Sets Ziv Bar-Yossef Lecture 8 May 4, 2005
Some Techniques in Property Testing Dana Ron Tel Aviv University.
Section 3.1 Properties of Trees Sarah Graham. Tree Talk: Vocabulary oTree: a tree is a special type of graph that contains designated vertex called a.
Testing of Clustering Noga Alon, Seannie Dar Michal Parnas, Dana Ron.
Locally testable cyclic codes Lászl ó Babai, Amir Shpilka, Daniel Štefankovič There are no good families of locally-testable cyclic codes over. Theorem:
Sublinear Algorithms for Approximating Graph Parameters Dana Ron Tel-Aviv University.
What can we do in sublinear time? Seminar on Sublinear Time Algorithms Lecture 1 Ronitt Rubinfeld.
Greedy Algorithms Reading Material: Chapter 8 (Except Section 8.5)
Michael Bender - SUNY Stony Brook Dana Ron - Tel Aviv University Testing Acyclicity of Directed Graphs in Sublinear Time.
Testing Metric Properties Michal Parnas and Dana Ron.
On Proximity Oblivious Testing Oded Goldreich - Weizmann Institute of Science Dana Ron – Tel Aviv University.
EXPANDER GRAPHS Properties & Applications. Things to cover ! Definitions Properties Combinatorial, Spectral properties Constructions “Explicit” constructions.
On Testing Convexity and Submodularity Michal Parnas Dana Ron Ronitt Rubinfeld.
1 On the Benefits of Adaptivity in Property Testing of Dense Graphs Joint work with Mira Gonen Dana Ron Tel-Aviv University.
1 Algorithmic Aspects in Property Testing of Dense Graphs Oded Goldreich – Weizmann Institute Dana Ron - Tel-Aviv University.
1 On the Benefits of Adaptivity in Property Testing of Dense Graphs Joint works with Mira Gonen and Oded Goldreich Dana Ron Tel-Aviv University.
Lower Bounds for Property Testing Luca Trevisan U C Berkeley.
Christian Sohler 1 University of Dortmund Testing Expansion in Bounded Degree Graphs Christian Sohler University of Dortmund (joint work with Artur Czumaj,
1 Separator Theorems for Planar Graphs Presented by Shira Zucker.
Approximating the Distance to Properties in Bounded-Degree and Sparse Graphs Sharon Marko, Weizmann Institute Dana Ron, Tel Aviv University.
Sublinear Algorithms for Approximating Graph Parameters Dana Ron Tel-Aviv University.
Finding Cycles and Trees in Sublinear Time Oded Goldreich Weizmann Institute of Science Joint work with Artur Czumaj, Dana Ron, C. Seshadhri, Asaf Shapira,
Approximating the MST Weight in Sublinear Time Bernard Chazelle (Princeton) Ronitt Rubinfeld (NEC) Luca Trevisan (U.C. Berkeley)
Fixed Parameter Complexity Algorithms and Networks.
Complexity and Efficient Algorithms Group / Department of Computer Science Approximating Structural Properties of Graphs by Random Walks Christian Sohler.
July The Mathematical Challenge of Large Networks László Lovász Eötvös Loránd University, Budapest
Trees and Distance. 2.1 Basic properties Acyclic : a graph with no cycle Forest : acyclic graph Tree : connected acyclic graph Leaf : a vertex of degree.
Transitive-Closure Spanner of Directed Graphs Kyomin Jung KAIST 2009 Combinatorics Workshop Joint work with Arnab Bhattacharyya MIT Elena Grigorescu MIT.
1 Sublinear Algorithms Lecture 1 Sofya Raskhodnikova Penn State University TexPoint fonts used in EMF. Read the TexPoint manual before you delete this.
5.2 Trees  A tree is a connected graph without any cycles.
Lower Bounds for Property Testing Luca Trevisan U.C. Berkeley.
Property Testing: Sublinear-Time Approximate Decisions Oded Goldreich Weizmann Institute of Science Talk at CTW, July 2013.
Artur Czumaj DIMAP DIMAP (Centre for Discrete Maths and it Applications) Computer Science & Department of Computer Science University of Warwick Testing.
Graph Algorithms Maximum Flow - Best algorithms [Adapted from R.Solis-Oba]
狄彥吾 (Yen-Wu Ti) 華夏技術學院資訊工程系 Property Testing on Combinatorial Objects.
Complexity and Efficient Algorithms Group / Department of Computer Science Testing the Cluster Structure of Graphs Christian Sohler joint work with Artur.
Complexity and Efficient Algorithms Group / Department of Computer Science Testing the Cluster Structure of Graphs Christian Sohler joint work with Artur.
On Sample Based Testers
Property Testing (a.k.a. Sublinear Algorithms )
Prüfer code algorithm Algorithm (Prüfer code)
Approximating the MST Weight in Sublinear Time
Finding Cycles and Trees in Sublinear Time
From dense to sparse and back again: On testing graph properties (and some properties of Oded)
Lecture 18: Uniformity Testing Monotonicity Testing
Randomized Algorithms
Warren Center for Network and Data Sciences
Complexity of Expander-Based Reasoning and the Power of Monotone Proofs Sam Buss (UCSD), Valentine Kabanets (SFU), Antonina Kolokolova.
CIS 700: “algorithms for Big Data”
Trees.
Testing k-colorability
The Subgraph Testing Model
Graphs G = (V, E) V are the vertices; E are the edges.
Locality In Distributed Graph Algorithms
Presentation transcript:

Testing the Diameter of Graphs Michal Parnas Dana Ron

Property Testing of Graphs Let G = (V,E) be an undirected graph. A Testing Algorithm of property P: The algorithm can query on the incidence relations of vertices in G. If G has property P: Accept. If G is “far” from P: Reject.

Previous Representations of Graphs Adjacency Matrix [GGR]. Queries: Is (u,v)  E.  -far:  n 2 edges should be modified. Dense graphs. Incidence Lists of bounded length d [GR]. Queries: Who is i’th neighbor of v?  -far:  d  n edges should be modified. Sparse bounded degree graphs n 1n1n 1 2 … d 1 n

Our Model G = (V,E) an undirected graph, |V| = n, |E|  m. Representation: Incidence lists of varying length. Queries: Who is i’th neighbor of v?  -far:  m edge modifications. 1 n

A Testing Algorithm A testing algorithm for a parameterized property P s is given: Distance parameter 0 <  < 1. Query access to a graph G having at most m edges. Boundary function  (  ). The algorithm: Should accept with probability at least 2/3, if G has property P s. Should reject with probability at least 2/3, if G is  -far from property. PsPs  Accept Reject

The Diameter Problem Question: Is the diameter of G at most D or is it  -far from diameter  (D)? The algorithms differ in: The boundary function  (  ). The query and time complexities. The feasible values of .

Our Results Time and Query Complexity: 1. 2.

Related Work Testing Algebraic Properties (Linearity and Low degree) Program Testing: Blum & Luby & Rubinfeld, Rubinfeld, Rubinfeld & Sudan... PCP: Babai & Fortnow & Lund, Babai & Fortnow & Lund & Szegedy, Feige & Goldwasser, Lovasz & Safra & Szegedy, Arora & Lund & Safra, Arora & Safra... Testing Graph Properties (Colorability, Connectivity, Properties defined by first order formula) Goldreich & Goldwasser & Ron, Goldreich & Ron, Alon & Fischer & Krivelevich & Szegedy, Alon & Krivelevich. Testing Other Properties (Monotonicity, Regular languanges) Goldreich & Goldwasser & Lehman & Ron, Dodis & Goldreich & Lehman & Raskhodnikova & Ron & Samorodnitsky, Ergun & Kannan & Kumar & Rubinfeld & Viswanathan, Kearns & Ron, Alon & Krivelevich & Newman & Szegedy.

Algorithm Input: D, n, m, . Parameters: C, k, . Set Uniformly select starting vertices. For each starting vertex - perform a BFS to distance at most C until k vertices are reached. If at most  S starting vertices reach < k vertices then accept, otherwise reject. Time and Query Complexity: O(k 2  S)= O(k 2 /  n,m )

Illustration of the Algorithm 1 S C 2 3

Proof of Correctness Good Vertex: If C-neighborhood contains  k vertices. Bad Vertex: If C-neighborhood contains < k vertices. C We Show: Diameter  D Almost (all) vertices are good. Diameter >  (D) Many vertices are bad.

Lemma 1: If at least (1-1/k)n of the vertices are good, then the graph can be transformed into a graph with diameter at most 4C+2 by adding at most 2n/k edges. Proof: c c c c Good Bad Reducing the Diameter

Lemma 2: If at least (1-  /2)  n of the vertices are good, where k = (4/  )ln(4/  ), then the graph can be transformed into a graph with diameter at most 2C+2, by adding at most  n edges. Proof: Select centers in a greedy manner and connect them. Balls may overlap. Corollary: If G is  -far from diameter 2C+2, then there exist more than n  n,m /2 bad vertices, where k= (4 /  n,m )  ln(4 /  n,m ). Proof: Set  =  n,m in Lemma 2.

Proof of Item 1 Parameters: C = D  = 0 Diameter  D All vertices are good. Diameter >  (D) = 2D+2 bad vertices. Lemma 2

Proof of Item 2 Parameters: Diameter > 2C+2 =  (D) = Lemma 2 bad vertices (fraction of bad  2  ).

Item 2 - Continued Diameter  D Fraction of bad vertices   /2. Lemma 3: Let Diameter  D number of bad vertices  k i+1. Lemma 3

Proof of Lemma 3 Assume there are more than k i+1 bad vertices. Diameter D D/2 - neighborhoods intersect. D/2 u1u1 utut u2u2 v u2u2 v utut u1u1 u 1,…,u t bad vertices, t = k i.

Tree Lemma (Special Case) Let T be a tree of height h and size t. There exists a leaf in T whose 4h/3-neighborhood contains at least vertices. v i = 2, C = 2D/3. By Tree Lemma, there exists a leaf u j whose C-neighborhood contains at least vertices. u j is not bad. Proof: (Proof of Lemma 3)

Tree Lemma Let T be a tree of height h and size t, and let a < h. There exists a leaf in T whose (h+a)-neighborhood contains at least vertices. Proof: Define - Solve recursively -

 -far For any fixed parameterized property P s, any 0 0, a graph G having at most m edges is  -far from property P s if the number of edges that need to be added and/or removed from G in order to obtain a graph having the property, is greater than  m. Otherwise, G is  -close to P s.

Range of  Corollary: Every connected graph with n vertices and m edges is  -close to having diameter D for every Theorem: Every connected graph on n vertices can be transformed into a graph of diameter at most D by adding at most 2n/(D-1) edges. Set:

Reducing the Diameter of a Graph Lemma: If the C-neighborhood of each vertex contains k vertices, then the graph can be transformed into a graph with diameter at most 4C+2 by adding at most n/k edges. c c c c

Our Results For  (D) = 2D+2, and every , a one-sided error algorithm. For every  (D) = 2  i  log (D/2 + 1) a two-sided error algorithm, where  = For Example: i = 2,  (D) = 4D/3 + 2,  = i = log(D/2 + 1),  (D) = D + 4 Time and Query Complexity: