Scribes: Po-Hsuan Wei, William Kuzmaul Editor: Kevin Wu Date: October 18, 2016

Similar documents
CS 4407 Algorithms Lecture: Shortest Path Algorithms

Discrete Wiskunde II. Lecture 5: Shortest Paths & Spanning Trees

Lecture 6: September 22

Undirected Graphs. V = { 1, 2, 3, 4, 5, 6, 7, 8 } E = { 1-2, 1-3, 2-3, 2-4, 2-5, 3-5, 3-7, 3-8, 4-5, 5-6 } n = 8 m = 11

Rao s degree sequence conjecture

Algorithms: Lecture 12. Chalmers University of Technology

arxiv: v1 [math.co] 1 Oct 2013

Connections between exponential time and polynomial time problem Lecture Notes for CS294

CS367 Lecture 3 (old lectures 5-6) APSP variants: Node Weights, Earliest Arrivals, Bottlenecks Scribe: Vaggos Chatziafratis Date: October 09, 2015

Sparse Fault-Tolerant BFS Trees. Merav Parter and David Peleg Weizmann Institute Of Science BIU-CS Colloquium

Very few Moore Graphs

List-coloring the Square of a Subcubic Graph

CSCE 750 Final Exam Answer Key Wednesday December 7, 2005

Small distortion and volume preserving embedding for Planar and Euclidian metrics Satish Rao

Strongly chordal and chordal bipartite graphs are sandwich monotone

EQUITABLE COLORING OF SPARSE PLANAR GRAPHS

The Turán number of sparse spanning graphs

5.5 Deeper Properties of Continuous Functions

Design and Analysis of Algorithms

Duality of LPs and Applications

Chapter 4. Greedy Algorithms. Slides by Kevin Wayne. Copyright 2005 Pearson-Addison Wesley. All rights reserved.

Introduction to Algorithms

Large induced trees in K r -free graphs

6.2 Deeper Properties of Continuous Functions

Algorithm Design and Analysis

Graph Theory. Thomas Bloom. February 6, 2015

1 Matchings in Non-Bipartite Graphs

Topic: Primal-Dual Algorithms Date: We finished our discussion of randomized rounding and began talking about LP Duality.

All Ramsey numbers for brooms in graphs

Lecture 13: 04/23/2014

Odd independent transversals are odd

Locating-Total Dominating Sets in Twin-Free Graphs: a Conjecture

Pancyclicity in claw-free graphs

A Randomized Rounding Approach to the Traveling Salesman Problem

NP-Completeness Review

Induced subgraphs of prescribed size

Obstructions for three-coloring graphs without induced paths on six vertices

Cographs; chordal graphs and tree decompositions

Cycle lengths in sparse graphs

THE EXTREMAL FUNCTIONS FOR TRIANGLE-FREE GRAPHS WITH EXCLUDED MINORS 1

Discrete Mathematics

Graph coloring, perfect graphs

Ring Sums, Bridges and Fundamental Sets

Chromatic number, clique subdivisions, and the conjectures of Hajós and Erdős-Fajtlowicz

On the Turán number of forests

ON DOMINATING THE CARTESIAN PRODUCT OF A GRAPH AND K 2. Bert L. Hartnell

IS 709/809: Computational Methods in IS Research Fall Exam Review

16.1 Min-Cut as an LP

arxiv: v1 [math.co] 13 May 2016

VERTEX DEGREE SUMS FOR PERFECT MATCHINGS IN 3-UNIFORM HYPERGRAPHS

Chapter 4. Greedy Algorithms. Slides by Kevin Wayne. Copyright 2005 Pearson-Addison Wesley. All rights reserved.

Introduction to Algorithms

Nowhere 0 mod p dominating sets in multigraphs

Lecture Introduction. 2 Brief Recap of Lecture 10. CS-621 Theory Gems October 24, 2012

Uniform Star-factors of Graphs with Girth Three

The Simultaneous Local Metric Dimension of Graph Families

Advanced Topics in Discrete Math: Graph Theory Fall 2010

On the hardness of losing width

Four-coloring P 6 -free graphs. I. Extending an excellent precoloring

U.C. Berkeley CS294: Beyond Worst-Case Analysis Handout 8 Luca Trevisan September 19, 2017

NP-Hardness reductions

Breadth First Search, Dijkstra s Algorithm for Shortest Paths

Matching Triangles and Basing Hardness on an Extremely Popular Conjecture

Single Source Shortest Paths

25.1 Markov Chain Monte Carlo (MCMC)

On shredders and vertex connectivity augmentation

Extremal Graphs Having No Stable Cutsets

8.1 Concentration inequality for Gaussian random matrix (cont d)

On disconnected cuts and separators

Lecture 5: January 30

Observation 4.1 G has a proper separation of order 0 if and only if G is disconnected.

Decomposing oriented graphs into transitive tournaments

Discrete Applied Mathematics

Ngày 20 tháng 7 năm Discrete Optimization Graphs

RECAP: Extremal problems Examples

Large Cliques and Stable Sets in Undirected Graphs

Vertices contained in all or in no minimum k-dominating sets of a tree

arxiv: v1 [cs.dm] 12 Jun 2016

On the Locality of Distributed Sparse Spanner Constructions

On subgraphs of large girth

U.C. Berkeley CS294: Beyond Worst-Case Analysis Handout 2 Luca Trevisan August 29, 2017

Stability of the path-path Ramsey number

Proof of the (n/2 n/2 n/2) Conjecture for large n

Lecture 18: March 15

Probabilistic Method. Benny Sudakov. Princeton University

On the hardness of losing width

CMPSCI611: The Matroid Theorem Lecture 5

University of Chicago Autumn 2003 CS Markov Chain Monte Carlo Methods

A Subquadratic-Time Algorithm for Decremental Single-Source Shortest Paths

MATH 22 HAMILTONIAN GRAPHS. Lecture V: 11/18/2003

Out-colourings of Digraphs

Lecture 4. 1 Estimating the number of connected components and minimum spanning tree

R(p, k) = the near regular complete k-partite graph of order p. Let p = sk+r, where s and r are positive integers such that 0 r < k.

Triangle-free graphs that do not contain an induced subdivision of K 4 are 3-colorable

Upper Bounds of Dynamic Chromatic Number

Introduction to Algorithms

arxiv: v1 [math.co] 23 Nov 2015

Augmenting Outerplanar Graphs to Meet Diameter Requirements

Maximising the number of induced cycles in a graph

1 Perfect Matching and Matching Polytopes

Transcription:

CS 267 Lecture 7 Graph Spanners Scribes: Po-Hsuan Wei, William Kuzmaul Editor: Kevin Wu Date: October 18, 2016 1 Graph Spanners Our goal is to compress information about distances in a graph by looking at distances within a subgraph. Definition 1.1. An (α, β)-spanner of G = (V, E) is a subgraph H = (V, E H ), E H E, such that u, v V, d(u, v) d H (u, v) αd(u, v) + β. If β = 0, then it s a multiplicative spanner (α-spanner); if α = 1, then it s an additive spanner (+β-spanner). In general, directed graphs don t contain sparse spanners. An example is shown in the figure below, where G is a directed bipartite graph, with all its edges leave nodes in set U and incident on nodes in set V. In this case, any spanner with finite (α, β) must contain all edges in G. As a result, we will focus on undirected graphs in this class. U u 1 V v 1 u 2 v 2 u 3 v 3 u 4 u 5 2 Multiplicative Spanners Theorem 2.1. ( Let k ) 1 be an integer, then every n-node graph G with weighted edges contains a (2k 1)- spanner with O n 1+ 1 k edges. Conjecture 2.1. (Erdős girth conjecture) For integer ( k ) 2 and sufficiently large n, there exist an n-node graph that contains no cycle of length 2k with Ω n 1+ 1 k edges. This conjecture is widely believed to be true. We know that the converse is true and it has been show for small k up to a certain number that this conjecture is true. If we believe this conjecture, then our bounds are tight. Claim 2.1. Under the Erdős girth conjecture, the bound in Theorem( 2.1 is ) tight. Then n, there exists a G on n nodes such that if H is a 2k 1 spanner of G, then H has Ω n 1+ 1 k edges. 1

Proof of Claim 2.1. Take G = (V, E) from the Erdős ( girth ) conjecture; that is, let G be an unweighted graph on n edges with no cycle of length 2k and Ω n 1+ 1 k edges. We ll show that G has no non-trivial 2k 1 spanners. By contradiction. Assume there exists some subgraph H G that is a 2k 1 spanner for G. Choose some edge (u, v) E E H. By the definition of a spanner, d H (u, v) (2k 1)d(u, v) = 2k 1. Therefore there exists some path P in E H connecting u, v with length at most 2k 1. However, adding (u, v) to P then completes a cycle in G of length at most 2k, a contradiction since G has no cycles of length 2k. This proves the claim. Proof of Theorem 2.1. We can generate a sufficient 2k 1 spanner using the Create-Spanner algorithm and prove its correctness as follows: Algorithm 1: Create-Spanner(G) E H. foreach (u, v) E in non-decreasing order do if d H(u, v) > (2k 1)w(u, v) then E H E H (u, v) Return H. Claim 2.2. H is a (2k 1)-spanner. That is, u, v V, d H (u, v) (2k 1)d(u, v). Proof of Claim 2.2. Let u, v be vertices in V and P be their shortest path in G. For each edge (x, y) P, either: (x, y) E H There is some path in H between x, y of length at most (2k 1)w(x, y). If no such path exists, then (x, y) would have been added to E H in Create-Spanner when it was considered. Therefore d H (u, v) d H (x, y) (2k 1)w(x, y) = (2k 1)w(P ) = (2k 1)d(u, v). (x,y) P (x,y) P Claim 2.3. H has girth greater than 2k. Proof of Claim 2.3. Assume H has a cycle C of length 2k. Let (u, v) be the highest weighted edge of C. Then (u, v) is the last edge in C added to E H, satisfying w(x, y) > (2k 1)w(u, v) (x,y) C, (x,y) (u,v) On the other hand, the path C\(u, v) has length at most (2k 1)w(u, v), giving w(x, y) (2k 1)w(u, v) (x,y) C, (x,y) (u,v) This gives a contradiction. Claim 2.4. Any n-node graph with girth greater than 2k has O n 1+ 1 k edges. 2

Proof of Claim 2.4. Let H be any graph with girth greater than 2k and at least 10n 1+ 1 k edges. Modify the graph by repeatedly removing any nodes of degree n 1 k, and any edges incident to that node, until no such nodes exist. The total number of edges removed in this way at most 2n n 1 k, which means that at least 8n 1+ 1 k edges remain (and so the graph is not empty). The minimum degree of the resulting subgraph is greater than n 1 k. However, by homework problem 1.3b, this means that the subgraph has girth at most 2k, and therefore the original graph does as well. This is a contradiction. The subgraph returned by Create-Spanner is a (2k 1)-spanner by Claim 2.2, and has O n 1+ 1 k edges by Claim 2.3, Claim 2.4. This completes the proof of the theorem. 3 Additive Spanners We restrict ourselves to unweighted graphs, in which an additive spanner makes sense. Theorem 3.1. Any n-node graph G has a +2-spanner with O n 3 2 log n edges. Theorem 3.2. Any n-node graph G has a +4-spanner with Õ n 7 5 edges. Theorem 3.3. Any n-node graph G has a +6-spanner with Õ n 4 3 edges. ) Theorem 3.4. (Abboud and Bodwin 15) There is no additive spanner on O (n 4 3 ɛ graphs where ɛ > 0. edges for n-node We know that Theorem 3.1 is tight, but we are unsure whether Theorem 3.2 or Theorem 3.3 is tight. We first prove Theorem 3.1 Proof of Theorem 3.1. The proof of this theorem is very similar to the +2-approximation to the APSP problem. Let S be a hitting set for {N(v) deg(v) n}. From previous lecture on hitting sets, we know that we can choose S with S = O( n log n). Do a BFS search from each s S, and add the resulting n edges to E H. For every u V with deg(u) < n, add all edges incident to u to E H. By construction, E H = O( S n) + O(n n) = O n 3 2 log n. Consider any pair of edges (u, v) V with shortest path P in G. We have two cases: P contains only low-degree nodes. Then P is entirely contained in E H, so d H (u, v) = d(u, v). P contains a high-degree node x. Let s S be a node adjacent to x. Then we can approximate the distance from u to v by appending the paths (u, s), (v, s), since E H contains shortest paths from s to every other element. Thus d H (u, v) d H (u, s) + d H (v, s) = d(u, s) + d(v, s) (d(u, x) + 1) + (d(v, x) + 1) = d(u, v) + 2. Therefore the H constructed by this algorithm is a +2-spanner, as desired. We can improve on the size of this spanner slightly with worse constant errors. 3

Proof of Theorem 3.2. In this section, a node in an n-node graph is high degree if it has degree greater than n 2/5 and is low degree otherwise. The algorithm for constructing a +4-spanner H from G is as follows: 1. For all low degree v V, add v s n 2/5 edges to H. This deals with the case where the shortest path consists of only low degree nodes. We add at most O(nD) edges to H, which contributes at most n n 2/5 = n 7/5 edges. 2. Let S be a random subset of V on O(n 2/5 log n) nodes 1. For each s S, add the entire breadth-firstsearch tree rooted at s into H. Here, we add O(n 2/5 log n n) Õ(n7/5 ) edges because each BFS-tree has at most n edges. 3. Let T be a random sample on O(n 3/5 log n) nodes. With high probability, T hits the neighborhood of each high degree node. For each high degree node v, we pick one of its neighbors in T, t(v) and we add (v, t(v)) to H (adding O(n) edges; t(v) exists for each high degree v since T is a hittings set). 4. For each t T, we define t s ball as the set of high degree vertices assigned to it: We continue adding edges to H with Algorithm 2. Algorithm 2: Adding final edges to H B(t) = {v V v high degree, t = t(v)}. foreach distinct t, t T do P t,t = {}; foreach u B(t), v B(t ) do if shortest path P from u v has < n 1/5 high degree nodes then P t,t.insert(p ); if P = {} then break; p = shortest path in P t,t ; foreach edge e p do H.insert(e); The path added to H corresponding to t and t will be referred to as the (t, t )-linking path. How many edges are added to H? There are Õ(n6/5 ) pairs of t, t. For each pair, we may add the edges from some path P connecting u and v in B(t) and B(t ) respectively. The only edges in P not already in H are those between two high degree nodes (by Step (1)), of which there are n 1/5 in P. Thus each pair t, t adds O(n 1/5 ) edges to H. Summing over the Õ(n6/5 ) pairs, Õ(n 7/5 ) edges are added. We have constructed H to be of size Õ(n7/5 ). It remains to show that H is an additive 4-spanner of G. If a pair of vertices u and v in G have a shortest path using no high degree nodes, then that path is in H due to Step (1). The following claim helps resolve the case where u and v have a shortest path using more than n 1/5 high degree nodes. Claim 3.1. Let P be a uv-shortest path for some u, v V. If P has > n 1/5 high degree nodes, then P has Ω(n 3/5 ) distinct neighbors. 1 The constant behind the big O needs to be picked as sufficiently large for a hitting set argument appearing later to work. 4

Proof. Each node x in G can have at most 3 neighbors in P. Otherwise, P could be shortened by taking a path through x, a contradiction since P is a uv-shortest path for some u, v V. Since P has > n 1/5 high-degree nodes, each of which has at least n 2/5 neighbors, it follows that P has > n 3/5 edges incident on it. Each neighbor of P can account for at most 3 of these edges, and hence P must have n 3/5 /3 distinct neighbors. It follows from Claim 3.1 that for every u, v V with a shortest path hitting > n 1/5 high degree nodes, S hits a neighbor node of a shortest path from u to v. In other words, such paths from u to v each have enough distinct neighbor nodes (Ω(n 3/5 )) that S forms a hitting set on them. Thus the edges added in Step (2) include a +2-approximation for a shortest path between such u and v. The only remaining case is uv-shortest paths hitting between 1 and n 1/5 high degree nodes. Claim 3.2. If a uv-shortest path hits between 1 and n 1/5 high degree nodes, then after Step (4), d H (u, v) d(u, v) + 4. Proof. Let P be a shortest path from u to v hitting between 1 and n 1/5 high degree nodes. Let h 1 be the first and h 2 be the last high degree nodes in P (possibly not distinct). Let t 1 = t(h 1 ) and t 2 = t(h 2 ). Let x and y be the neighbors of t 1 and t 2 respectively connected by the (t 1, t 2 )-linking path. Note that the (t 1, t 2 )-linking path exists because there is at least one pair of elements of B(t 1 ) and B(t 2 ) connected by a shortest path using n 1/5 nodes, namely h 1 and h 2. Since the subset of P from u to h 1 and from h 2 to v is in H (Step (1)), we have d H (u, v) d(u, h 1 ) + d H (h 1, h 2 ) + d(h 2, v). Thus we need only show that d H (h 1, h 2 ) d(h 1, h 2 ) + 4. Observe that d H (h 1, h 2 ) d(h 1, x) + d(x, y) + d(y, h 2 ) = d(x, y) + 4. Recall that x and y have the shortest path between them in G of any pair of elements in B(t 1 ) and B(t 2 ), excluding paths with greater than n 1/5 high degree nodes. Namely, since h 1 B(t 1 ) and h 2 B(t 2 ), we have that d(x, y) d(h 1, h 2 ). Plugging this in yields completing the proof. d H (h 1, h 2 ) d(h 1, h 2 ) + 4, We outline the proof for constructing a +6-spanner H for G as follows: Proof of Theorem 3.3. [Sketch] We do the following steps. Pick parameters D 1, D 2 where D 1 D 2 = n D 1. Nodes of deg D 1 are low degree, and those of deg D 2 are high degree. Otherwise, the nodes are medium degree nodes. 1. Add all edges to H that are incident to nodes of degree D 1. This is roughly nd 1 or roughly n 4 3 edges. 2. Add BFS trees to H from each node in random sample S on n D 2 log n nodes. This is nd 1 log n n 4 3 log n edges. 3. i 0,..., log n, pick random samples T i of size n D 1 2 i log n. t i T i, t T 0, let P i be the shortest path between t and t i among those missing 2 i+1 edges and add all its edges to H. This is i n n D 12 i D 1 2 i+1 i 2n2 n2 Õ D1 2 D Õ(n 4 1 2 3 ) 5

For T 0, this set contains nodes that are neighbors of both the first medium degree node on P as well as the last medium degree node on P. Consider some node x on P that has a neighbor contained in set T i. Then the path from s to some node in T 0 is 1 and the path from some t T 0 where t is the neighbor of the first medium degree node on P and some t i T i is 2 + d(s, x) and similarly this holds for some t T 0 where t is the neighbor of the last medium degree node on P. This gives us an additive 6 approximation as there is at most 1 + 2 + 2 + 1 additive-error. References [1] Amir Abboud and Greg Bodwin, The 4/3 Additive Spanner Exponent is Tight, CoRR, 2015. 6