Spanners Social and Technological Networks Rik Sarkar University of Edinburgh, 2018.
Distances in graphs β’ Suppose we are interested in finding distances, shortest paths etc in a weighted graph G β’ The problem: A graph can have π " edges. β’ Any computation is expensive β’ Storage is expensive
Idea: use a βsimilarβ graph with fewer edges β’ A spanning graph H of a connected graph G: β H is connected and has the same set of vertices β’ Construct an H with fewer edges
Stretch β’ Suppose π $ is the shortest path distance in G β’ Suppose π % π£, π€ = π‘ β π $ π£, π€ β’ S is called the stretch of distance between u,v β’ The idea is to have compressed network H with small stretch and few edges
Spanners β’ Suppose π $ is the shortest path distance in G β’ H is a π’ -spanner of G if: β’ π % π£, π€ β€ π’ β π $ π£, π€ β A multiplicative spanner β The stretch of the spanner is π’ β’ More generally, H is a (π½, πΎ) -spanner of G if: β’ π % π£, π€ β€ π½ β π $ π£, π€ + πΎ
Examples Images from: http://cs.yazd.ac.ir/farshi/Teaching/Spanner- 3932/Slides/GSN-Course.pdf
Examples β’ Compress road maps and still find good paths β’ Compress computer/communication networks and get smaller routing tables β’ βBridgesβ are part of spanner β’ Small set of distances among moving objects. β To detect possible collisions β A βshort edgeβ must always be in the spanner β Thus, we need to only check edges in the spanner
Simple greedy algorithm β’ Given graph G=(V, E) and stretch t β’ We want to construct H=(V, Eβ) β’ Sort all edges in E by length β’ Proceed from shortest to longest edge β Take edge e=(u,v) β If π % π£, π€ > π’ β π $ π£, π€ , add e to Eβ β’ Output H
Geometric spanner β’ Suppose we have only a set of points in the plane, and no graph (e.g. position of robots) β’ Then the same algorithm applies β With G as the complete graph with, planar distance as the edge length
H is a spanner β’ Claim: π % π£, π€ β€ π’ β π $ π£, π€ β’ If (u,v) is an edge in G, then this holds by construction. β’ If not, suppose P is the path between them of length π $ π£, π€ β’ For each edge π, π β π , the claim holds. β Therefore. It holds for the sum of their lengths.
Number of edges β’ Theorem: β’ The greedily constructed π’ -spanner has β’ π 89 : ;<= edges β’ Proof: Ommitted
Deformable spanners β’ Suppose we have n points in β @ β’ We want to compute a good spanner β With stretch 1 + π β Number of edges π/π @
Discrete centers β’ Give a radius π β’ A set S of discrete centers is a subset of V β’ Such that: β Any point of V is within distance π of some π‘ β π . β Any two points π‘ 8 , π‘ " β π are at least π apart β’ That is, a set of balls with far apart centers, that covers all points
Discrete center hierarchy β’ Compute a set π F of discrete centers β For each π = 2 F β Such that π F β π FI8 β’ Start from smallest distance between a pair of points β At this lowest level each node is a center β’ Highest level is diameter of the set
Spanner β’ Suppose s, t β π F are centers β’ Add edge s, t if π‘π’ β€ π β 2 F β For π = 4 + 16/π β’ Take the union of edges created at all levels β’ To get a graph G
Theorems β’ G is a (1 + π) spanner β That is, for any two points p and q, there is a path in G of length at most 1 + π ππ β’ G has π/π @ edges β’ If the ratio of diameter to smallest distance is π½ , then each node has O((log π½)/π @ ) edges
Useful properties β’ Applies to metrics of bounded doubling dimension β’ Relatively small number of edges β’ Each node has a small number of edges β Efficient in checking for collisions and near neighbors β Each robot has to keep small amount of information β’ Can be updated easily as nodes move, join, leave β Hence the name βdeformableβ β’ Multi-scale simplification of the network β Gives a summary of the network at different scales β An important topic in current algorithms and ML β Computation for large datasets need simplified data
β’ There are other more complex algorithms β’ Areas of research: β Specialized graphs β Faultβtolerant spanners β Dynamic spanners β for changing graphs β β¦
Course β’ No class on Friday 23 rd Nov β’ No office hours Thursday 22 nd Nov β’ Final class on Tuesday 27 th : review β We will discuss the course in general β What to expect in exam
Recommend
More recommend