32
Advances in Directed Spanners Grigory Yaroslavtsev Penn State Joint work with Berman (PSU), Bhattacharyya (MIT), Grigorescu (GaTech), Makarychev (IBM), Raskhodnikova (PSU), Woodruff (IBM)

Advances in Directed Spanners

Embed Size (px)

DESCRIPTION

Slides of a talk at CMU Theory lunch (http://www.cs.cmu.edu/~theorylunch/20111116.html) and Capital Area Theory seminar (http://www.cs.umd.edu/areas/Theory/CATS/#Grigory).

Citation preview

Page 1: Advances in Directed Spanners

Advances in Directed Spanners

Grigory Yaroslavtsev Penn State

Joint work with

Berman (PSU), Bhattacharyya (MIT), Grigorescu (GaTech), Makarychev (IBM), Raskhodnikova (PSU),

Woodruff (IBM)

Page 2: Advances in Directed Spanners

Directed Spanner Problem β€’ k-Spanner [Awerbuch β€˜85, Peleg, ShΓ€ffer β€˜89]

Subset of edges, preserving distances up to a factor k > 1 (stretch k).

β€’ Graph G V, E with weights 𝑀 ∢ 𝐸 β†’ ℝ β‰₯0

H(V, 𝑬𝑯 βŠ† 𝑬): βˆ€(𝑒, 𝑣) ∈ 𝐸 𝑑𝑖𝑠𝑑𝑯 𝑒, 𝑣 ≀ π‘˜ β‹… 𝑀(𝑒, 𝑣)

β€’ Problem: Find the sparsest k-spanner of a directed graph.

Page 3: Advances in Directed Spanners

Directed Spanners and Their Friends

Page 4: Advances in Directed Spanners

Applications of spanners

β€’ First application: simulating synchronized protocols in unsynchronized networks [Peleg,

Ullman ’89]

β€’ Efficient routing [PU’89, Cowen ’01, Thorup, Zwick ’01, Roditty, Thorup, Zwick ’02 , Cowen, Wagner ’04]

β€’ Parallel/Distributed/Streaming approximation algorithms for shortest paths [Cohen ’98, Cohen ’00, Elkin’01, Feigenbaum, Kannan, McGregor, Suri, Zhang ’08]

β€’ Algorithms for approximate distance oracles [Thorup, Zwick ’01, Baswana, Sen ’06]

Page 5: Advances in Directed Spanners

Applications of directed spanners

β€’ Access control hierarchies

β€’ Previous work: [Atallah, Frikken, Blanton, CCCS

β€˜05; De Santis, Ferrara, Masucci, MFCS’07]

β€’ Solution: TC-spanners [Bhattacharyya, Grigorescu, Jung, Raskhodnikova, Woodruff, SODA’09]

β€’ Steiner TC-spanners for access control: [Berman, Bhattacharyya, Grigorescu, Raskhodnikova, Woodruff, Y’ ICALP’11]

β€’ Property testing and property reconstruction [BGJRW’09; Raskhodnikova ’10 (survey)]

Page 6: Advances in Directed Spanners

Plan

β€’ Approximation algorithms – Undirected vs. Directed

– Framework for directed case = Sampling + LP

– Randomized rounding β€’ Directed Spanner

β€’ Unit-length 3-spanner

β€’ Directed Steiner Forest

β€’ Combinatorial bounds on TC-Spanners – Upper bounds for low-dimensional posets

– Lower bounds via linear programming

Page 7: Advances in Directed Spanners

Undirected vs. Directed

β€’ Trivial lower bound: β‰₯ 𝒏 βˆ’ 𝟏 edges needed

β€’ Every undirected graph has a (2t+1)-spanner with ≀ 𝑛1+1/𝑑 edges. [Althofer, Das, Dobkin, Joseph, Soares β€˜93]

β€’ Kruskal-like greedy + girth argument

=> 𝑛1

𝑑 βˆ’approximation

β€’ Time/space-efficient constructions of undirected approximate distance oracles [Thorup, Zwick, STOC β€˜01]

Page 8: Advances in Directed Spanners

Undirected vs Directed

β€’ For some directed graphs Ξ© 𝑛2 edges needed for a k-spanner:

β€’ No space-efficient directed distance oracles: some graphs require Ξ© 𝑛2 space. [TZ β€˜01]

Page 9: Advances in Directed Spanners

Unit-Length Directed k-Spanner β€’ O(n)-approximation: trivial (whole graph)

Page 10: Advances in Directed Spanners

Our 𝑂 ( 𝑛)-approximation

β€’ Paths of stretch at most k for all edges =>

β€’ Classify edges: thick and thin

β€’ Take union of spanners for them

–Thick edges: Sampling

–Thin edges: LP + randomized rounding

Page 11: Advances in Directed Spanners

Local Graph

β€’ Local graph for an edge (a,b): Induced by vertices on paths of stretch ≀ π‘˜ from a to b

β€’ Paths of stretch ≀ π‘˜ only use edges in local graphs

β€’ Thick edges: β‰₯ 𝒏 vertices in their local graph. Otherwise thin.

Page 12: Advances in Directed Spanners

Sampling [BGJRW’09, DK11] β€’ Pick O( 𝒏 π₯𝐧𝒏) seed vertices at random

β€’ Take in- and out- shortest path trees for each

β€’ Handles all thick edges (β‰₯ 𝑛 vertices in their local graph) w.h.p.

β€’ # of edges ≀ 2 𝑛 βˆ’ 1 𝑢( 𝒏 π₯𝐧𝒏) ≀ 𝑂𝑃𝑇 β‹… Γ• 𝑛 .

Page 13: Advances in Directed Spanners

Key Idea: Antispanners β€’ Antispanner – subset of edges, whose

removal destroys all paths from a to b of stretch at most k

β€’ Graph is spanner <=> hits all antispanners β€’ Enough to hit all minimal antispanners for all thin

edges β€’ If 𝐸𝐻 is not a spanner for an edge (a,b) => 𝐸 βˆ– 𝐸𝐻 is

an antispanner, can be minimized greedily

Page 14: Advances in Directed Spanners

Linear Program (~dual to [DK’11]) Hitting-set LP: π‘₯π‘’π‘’βˆˆπΈ β†’ π‘šπ‘–π‘›

π‘₯π‘’π‘’βˆˆπ€

β‰₯ 1

for all minimal antispanners A for all thin edges.

β€’ # of minimal antispanners may be exponential in 𝑛 => Ellipsoid + Separation oracle

β€’ We will show: ≀ 𝑛𝑛= 𝑒

1

2𝑛 ln 𝑛minimal

antispanners for a fixed thin edge β€’ Assume that we guessed OPT = the size of

the sparsest k-spanner (at most 𝑛2 values)

Page 15: Advances in Directed Spanners

Oracle Hitting-set LP: π‘₯π‘’π‘’βˆˆπΈ ≀ 𝑂𝑃𝑇

π‘₯π‘’π‘’βˆˆπ€

β‰₯ 1

for all minimal antispanners A for all thin edges.

β€’ We use a randomized oracle => in both cases oracle fails with exponentially small probability.

Page 16: Advances in Directed Spanners

β€’ Rounding: Take e w.p. 𝑝𝑒 = min 𝒏 π₯𝐧𝒏 β‹… π‘₯𝑒 , 1

β€’ SMALL SPANNER: We have a set of edges of size ≀ π‘₯𝑒𝑒 β‹… 𝑂 𝑛 ≀ 𝑂𝑃𝑇 β‹… 𝑂 𝑛 w.h.p.

β€’ Pr[LARGE SPANNER] ≀ eβˆ’ Ξ©( 𝑛) by Chernoff.

β€’ Pr[CONSTRAINT NOT VIOLATED] ≀ eβˆ’ Ξ©( 𝑛) (next slide)

Randomized Oracle = Rounding

Page 17: Advances in Directed Spanners

Pr[CONSTRAINT NOT VIOLATED]

β€’ Set 𝑆: βˆ€π‘’ ∈ 𝐸 we have Pr [𝑒 ∈ 𝑆] = min 𝑛 ln 𝑛 π‘₯𝑒 , 1

β€’ For a fixed minimal antispanner A, such that π‘₯𝑒 β‰₯ 1π‘’βˆˆπ΄ :

Pr 𝑆 ∩A = βˆ… ≀ 1 βˆ’ 𝑛 ln 𝑛 π‘₯π‘’π‘’βˆˆA

≀ π‘’βˆ’ 𝑛 ln 𝑛 π‘₯π‘’π‘’βˆˆπ΄ ≀ π’†βˆ’ 𝒏 𝒍𝒏 𝒏

β€’ #minimal antispanners for a fixed edge (𝒔, 𝒕) ≀

#different shortest path trees with root s in a local graph

≀ 𝑛𝑛= 𝑒

1

2𝑛 ln 𝑛 (for a thin edge)

β€’ #minimal antispanners ≀ |𝐸|π’†πŸ

πŸπ’ π₯𝐧 𝒏 => union bound:

Pr[CONSTRAINT NOT VIOLATED] ≀ |𝐸|π’†βˆ’πŸ

πŸπ’ π₯𝐧 𝒏

Page 18: Advances in Directed Spanners

Unit-length 3-spanner

β€’ 𝑂 (𝑛1/3)-approximation algorithm – Sampling 𝑂 (𝑛1/3) times

– Dual LP + Different randomized rounding (simplified version of [DK’11])

β€’ Rounding scheme (vertex-based): – For each vertex 𝑒 ∈ 𝑉: sample π‘Ÿπ‘’ ∈ 0,1

– Take all edges 𝑒, 𝑣 if

min π‘Ÿπ‘’, π‘Ÿπ‘£ ≀ 𝑂 (𝑛1/3)π‘₯(𝑒,𝑣)

– Feasible solution => 3-spanner w.h.p. (see paper)

Page 19: Advances in Directed Spanners

Approximation wrap-up β€’ Sampling + LP with randomized rounding

β€’ Improvement for Directed Steiner Forest:

–Cheapest set of edges, connecting pairs 𝑠𝑖 , 𝑑𝑖

– Previous: Sampling + similar LP [Feldman,

Kortsarz, Nutov, SODA β€˜09] . Deterministic

rounding gives 𝑂 𝑛4/5+πœ– -approximation

–We give 𝑂 𝑛2/3+πœ– -approximation via randomized rounding

Page 20: Advances in Directed Spanners

Approximation wrap-up

β€’ Γ•( 𝒏)-approximation for Directed Spanner

β€’ Small local graphs => better approximation

β€’ Can we do better for general graphs?

β€’ Hardness: only excludes polylog(n)-approximation

β€’ Integrality gap: 𝜴(π’πŸ/πŸ‘βˆ’π) [DK’11]

β€’ Can we do better for specific graphs

β€’ Planar graphs (still NP-hard)?

Page 21: Advances in Directed Spanners

H is a k-TC-spanner of G if H is a k-spanner of TC(G)

Transitive-Closure Spanners

Transitive closure TC(G) has an edge from u to v iff

G has a path from u to v

H is a k-TC-spanner of G if H is a subgraph of TC(G) for which distanceH(u,v) ≀ k iff G has a path

from u to v

G TC(G)

2-TC-spanner of G

Shortcut edge consistent with

ordering [Bhattacharyya, Grigorescu, Jung, Raskhodnikova, Woodruff, SODAβ€˜09], generalizing [Yao 82; Chazelle 87; Alon, Schieber 87, …]

Page 22: Advances in Directed Spanners

Applications of TC-Spanners

Data structures for storing partial products [Yao,

’82; Chazelle ’87, Alon, Schieber, 88]

Constructions of unbounded fan-in circuits [Chandra, Fortune, Lipton ICALP, STOCβ€˜83]

Property testers for monotonicity and Lipschitzness [Dodis et al. β€˜99,BGJRW’09; Jha, Raskhodnikova, FOCS β€˜11]

Lower bounds for reconstructors for monotonicity and Lipshitzness [BGJJRW’10, JR’11]

Efficient key management in access hierarchies

Follow references in [Raskhodnikova ’10 (survey)]

Page 23: Advances in Directed Spanners

Bounds for Steiner TC-Spanners

β€’ No non-trivial upper bound for arbitrary graphs

FACT: For a random directed bipartite graph of density Β½, any Steiner 2-TC-spanner requires Ξ© n2 edges.

Page 24: Advances in Directed Spanners

Low-Dimensional Posets

β€’ [ABFF 09] access hierarchies are low-dimensional posets

β€’ Poset ≑ DAG

β€’ Poset G has dimension d if G can be embedded into a hypergrid of dimension d and d is minimum.

𝑒: 𝐺 β†’ 𝐺′ is a poset embedding if for all π‘₯, 𝑦 ∈ 𝐺, π‘₯ ≼𝐺 𝑦 iff 𝑒 π‘₯ ≼𝐺′ 𝑒(𝑦). Hypergrid π‘š 𝑑 has ordering π‘₯1, … , π‘₯𝑑 β‰Ό (𝑦1, … , 𝑦𝑑) iff π‘₯𝑖 ≀ 𝑦𝑖

for all i

Page 25: Advances in Directed Spanners

Main Results

Stretch k Upper Bound Lower Bound

2 𝑂 𝑛 log𝑑 𝑛 Ξ© 𝑛

𝛼log𝑛

𝑑

𝑑

where 𝛼 is a constant

β‰₯ 3 𝑂(𝑛 logπ‘‘βˆ’1 𝑛 log log 𝑛) for constant d

[DFM 07]

Ξ©(𝑛 log (π‘‘βˆ’1)/π‘˜ 𝑛) for constant d

π’Œ = πŸ‘. Nothing better known for

larger k.

d is the poset dimension

Page 26: Advances in Directed Spanners

2-TC-Spanner for π‘š 𝑑 β€’ d = 1 (so, n = m)

2-TC-spanner with ≀ π‘š logπ‘š =𝑛 log 𝑛 edges

… …

β€’ d > 1 (so, n = md)

2-TC-spanner with ≀ (m logm)d= nlog n

d

d edges

by taking d-wise Cartesian product of 2-TC-spanners for a line.

We show this is

tight upto πœΆπ’… for a

constant 𝜢.

Page 27: Advances in Directed Spanners

Lower Bound Strategy

β€’ Write in IP for a minimal 2-TC-spanner.

β€’ OPT β‰₯ 𝐿𝑃 = πΏπ‘ƒπ‘‘π‘’π‘Žπ‘™

β€’ It is crucial that the integrality gap of the primal is small.

β€’ Idea: Construct some feasible solution for the dual => lower bound on OPT.

β€’ OPT β‰₯ 𝐿𝑃 = πΏπ‘ƒπ‘‘π‘’π‘Žπ‘™ β‰₯ 𝐿𝐡

Page 28: Advances in Directed Spanners

IP Formulation

β€’ {0,1}-program for Minimal 2-TC-spanner:

minimize

subject to: π‘₯𝑒𝑀 β‰₯ 𝑝𝑒𝑀𝑣 βˆ€π‘’ β‰Ό 𝑀 β‰Ό 𝑣 π‘₯𝑀𝑣 β‰₯ 𝑝𝑒𝑀𝑣 βˆ€π‘’ β‰Ό 𝑀 β‰Ό 𝑣 βˆ€π‘’ β‰Ό 𝑣

π‘₯𝑒𝑣𝑒,𝑣:𝑒≼𝑣

𝑝𝑒𝑀𝑣 β‰₯ 1

𝑀:𝑒≼𝑀≼𝑣

Page 29: Advances in Directed Spanners

Dual LP

β€’ Take fractional relaxation of IP and look at its dual:

maximize

subject to: βˆ€π‘’ β‰Ό 𝑣 𝑦𝑒𝑣 ≀ π‘žπ‘’π‘€π‘£ + π‘Ÿπ‘’π‘€π‘£ βˆ€π‘’ β‰Ό 𝑀 β‰Ό 𝑣 0 ≀ 𝑦𝑒𝑣 , π‘žπ‘’π‘€π‘£ , π‘Ÿπ‘’π‘€π‘£ ≀ 1 βˆ€π‘’ β‰Ό 𝑀 β‰Ό 𝑣

𝑦𝑒𝑣𝑒,𝑣:𝑒≼𝑣

π‘žπ‘’π‘£π‘€ + π‘Ÿπ‘€π‘’π‘£ ≀ 1

𝑀:𝑀≼𝑒𝑀:𝑣≼𝑀

Page 30: Advances in Directed Spanners

Constructing solution to dual LP

β€’ Now we use fact that poset is a hypergrid! For 𝑒 β‰Ό 𝑣, set

𝑦𝑒𝑣 = 1

𝑉(π‘£βˆ’π‘’), where 𝑉(𝑣 βˆ’ 𝑒) is volume of box with

corners u and v.

maximize subject to: βˆ€π‘’ β‰Ό 𝑣 𝑦𝑒𝑣 = π‘žπ‘’π‘€π‘£ + π‘Ÿπ‘’π‘€π‘£ βˆ€π‘’ β‰Ό 𝑀 β‰Ό 𝑣

𝑦𝑒𝑣𝑒,𝑣:𝑒≼𝑣

π‘žπ‘’π‘£π‘€ + π‘Ÿπ‘€π‘’π‘£ ≀ 1

𝑀:𝑀≼𝑒𝑀:𝑣≼𝑀

> π’Žπ₯π§π’Ž 𝒅

Set π’’π’–π’˜π’— = π’šπ’–π’—π‘½(π’˜βˆ’π’–)

𝑽 π’˜βˆ’π’– +𝑽(π’—βˆ’π’˜), π’“π’–π’˜π’— = π’šπ’–π’—

𝑽(π’—βˆ’π’˜)

𝑽 π’˜βˆ’π’– +𝑽(π’—βˆ’π’˜)

≀ πŸ’π… 𝒅

Page 31: Advances in Directed Spanners

Constructing solution to dual LP

β€’ Now we use fact that poset is a hypergrid! For

𝑒 β‰Ό 𝑣, set 𝑦𝑒𝑣 = 1

4πœ‹ 𝑑𝑉(π‘£βˆ’π‘’), where 𝑉(𝑣 βˆ’ 𝑒) is

volume of box with corners u and v.

maximize subject to: βˆ€π‘’ β‰Ό 𝑣 𝑦𝑒𝑣 = π‘žπ‘’π‘€π‘£ + π‘Ÿπ‘’π‘€π‘£ βˆ€π‘’ β‰Ό 𝑀 β‰Ό 𝑣

𝑦𝑒𝑣𝑒,𝑣:𝑒≼𝑣

π‘žπ‘’π‘£π‘€ + π‘Ÿπ‘€π‘’π‘£ ≀ 1

𝑀:𝑀≼𝑒𝑀:𝑣≼𝑀

> π’Žπ₯π§π’Ž 𝒅/ πŸ’π… 𝒅

Set π’’π’–π’˜π’— = π’šπ’–π’—π‘½(π’˜βˆ’π’–)

𝑽 π’˜βˆ’π’– +𝑽(π’—βˆ’π’˜), π’“π’–π’˜π’— = π’šπ’–π’—

𝑽(π’—βˆ’π’˜)

𝑽 π’˜βˆ’π’– +𝑽(π’—βˆ’π’˜)

≀ 𝟏

Page 32: Advances in Directed Spanners

Wrap-up β€’ Upper bound for Steiner 2-TC-spanner

β€’ Lower bound for 2-TC-spanner for a hypergrid.

– Technique: find a feasible solution for the dual LP

β€’ Lower bound of Ξ©(𝑛 log (π‘‘βˆ’1)/π‘˜ 𝑛) for π‘˜ β‰₯ 3. – Combinatorial

– Holds for randomly generated posets, not explicit.

β€’ OPEN PROBLEM:

– Can the LP technique give a better lower bound for π‘˜ β‰₯ 3?