Aleksander Mdry Graphs are everywhere Physics Biology Social - - PowerPoint PPT Presentation

aleksander m dry
SMART_READER_LITE
LIVE PREVIEW

Aleksander Mdry Graphs are everywhere Physics Biology Social - - PowerPoint PPT Presentation

Graphs, Linear Algebra, and Con4nuous Op4miza4on Part I: Overview Aleksander Mdry Graphs are everywhere Physics Biology Social Sciences Graph Algorithms


slide-1
SLIDE 1

Graphs, ¡Linear ¡Algebra, ¡ and ¡Con4nuous ¡Op4miza4on ¡ ¡ Part ¡I: ¡Overview ¡

Aleksander ¡Mądry ¡

slide-2
SLIDE 2

Graphs ¡are ¡everywhere ¡

Biology ¡ Physics ¡ Economics ¡ Sta4s4cs ¡ Social ¡Sciences ¡ Graph ¡Algorithms ¡ Computer ¡Science ¡

Algorithmic ¡Graph ¡Theory: ¡ Shaping ¡our ¡understanding ¡ ¡of ¡algorithms ¡since ¡1950s ¡

But: ¡Our ¡graph ¡toolkit ¡is ¡s;ll ¡far ¡from ¡being ¡complete ¡

slide-3
SLIDE 3

Challenge ¡I: ¡Tackling ¡the ¡complexity ¡of ¡core ¡problems ¡

Shortest ¡path/Reachability ¡ ¡ problems ¡ ¡ Network ¡Flows ¡ Matchings/Assignment ¡tasks ¡

Possible ¡reason: ¡Our ¡approaches ¡to ¡them ¡did ¡not ¡change ¡ much ¡over ¡the ¡last ¡couple ¡of ¡decades ¡ Many ¡central ¡ques;ons ¡ is ¡resis;ng ¡progress ¡ ¡ for ¡a ¡long ¡;me ¡

slide-4
SLIDE 4

Challenge ¡II ¡: ¡Dealing ¡with ¡massive ¡graphs ¡

“Big ¡graph” ¡regime: ¡ → ¡Asympto4cs ¡maNers ¡– ¡(“O(n2) ¡won’t ¡cut ¡it”) ¡ ¡ Algorithms ¡can ¡be ¡dirty, ¡but ¡have ¡to ¡be ¡REALLY ¡fast ¡ → ¡Parallelism/distributed ¡aspects ¡increasingly ¡important ¡ Problem: ¡Tradi;onal ¡techniques ¡seem ¡inadequate ¡here ¡ ¡ ¡ ¡→ ¡New ¡type ¡of ¡approaches ¡needed ¡ Emerging ¡mindset: ¡What ¡can ¡we ¡do ¡in ¡nearly-­‑linear ¡4me? ¡

“nearly-­‑linear ¡4me” ¡= ¡new ¡P ¡

slide-5
SLIDE 5

Grand ¡goal: ¡Forging ¡the ¡next ¡genera;on ¡of ¡tools ¡ ¡ to ¡speed ¡up ¡graph ¡algorithms ¡ Underlying ¡theme: ¡Merging ¡ ¡ combinatorial ¡and ¡con;nuous ¡methods ¡

Combinatorial ¡methods ¡

(trees, ¡paths, ¡par;;ons, ¡ matchings, ¡rou;ngs,…) ¡

  • Cont. ¡opt. ¡primi4ves ¡

(gradient-­‑descent, ¡interior-­‑ point ¡methods,…) ¡

Linear-­‑algebraic ¡ tools ¡

(eigenvalues, ¡ electrical ¡flows, ¡ linear ¡systems,…) ¡

Interes4ngly: ¡The ¡same ¡new ¡tools ¡apply ¡to ¡ ¡ both ¡classic ¡and ¡new ¡challenges ¡

slide-6
SLIDE 6

Our ¡plan ¡for ¡this ¡week: ¡ Illustrate ¡this ¡theme ¡on ¡an ¡example ¡ ¡

  • f ¡a ¡single ¡problem ¡

Problem: ¡Maximum ¡flow ¡ Underlying ¡approach: ¡ Relate ¡combinatorial ¡structure ¡of ¡a ¡graph ¡to ¡ ¡ linear-­‑algebraic ¡proper;es ¡of ¡associated ¡matrices ¡

slide-7
SLIDE 7

Input: ¡ ¡Directed ¡graph ¡G, ¡ ¡integer ¡capaci4es ¡ue, ¡ ¡source ¡s ¡and ¡sink ¡t ¡

8 ¡ 3 ¡ 4 ¡ 1 ¡ 3 ¡ 7 ¡ 4 ¡ 10 ¡ 5 ¡ 6 ¡ 2 ¡ 6 ¡ 1 ¡

s ¡ t ¡ ¡Maximum ¡flow ¡problem ¡

Think: ¡ ¡arcs ¡= ¡roads ¡ ¡capaci;es ¡= ¡# ¡of ¡lanes ¡ ¡ ¡s/t ¡= ¡origin/des;na;on ¡

Task: ¡Find ¡a ¡feasible ¡s-­‑t ¡flow ¡of ¡max ¡value ¡

(Think: ¡Es;mate ¡the ¡max ¡possible ¡rate ¡of ¡traffic ¡from ¡s ¡ ¡to ¡t) ¡

slide-8
SLIDE 8

¡Maximum ¡flow ¡problem ¡

8 ¡ 3 ¡ 4 ¡ 1 ¡ 3 ¡ 7 ¡ 4 ¡ 10 ¡ 5 ¡ 6 ¡ 2 ¡ 6 ¡ 1 ¡

s ¡ t ¡

2 ¡ 2 ¡ 6 ¡ 4 ¡ 6 ¡ 1 ¡ 1 ¡ 1 ¡

no ¡leaks ¡at ¡all ¡v≠s,t ¡ no ¡overflow ¡on ¡arcs: ¡ ¡ 0 ¡≤ ¡f(e) ¡≤ ¡u(e) ¡ value ¡= ¡net ¡flow ¡out ¡of ¡s ¡

Here, ¡value ¡= ¡7 ¡

Max ¡flow ¡value ¡ F*=10 ¡

Task: ¡Find ¡a ¡feasible ¡s-­‑t ¡flow ¡of ¡max ¡value ¡

(Think: ¡Es;mate ¡the ¡max ¡possible ¡rate ¡of ¡traffic ¡from ¡s ¡ ¡to ¡t) ¡ Think: ¡ ¡arcs ¡= ¡roads ¡ ¡capaci;es ¡= ¡# ¡of ¡lanes ¡ ¡ ¡s/t ¡= ¡origin/des;na;on ¡ Input: ¡ ¡Directed ¡graph ¡G, ¡ ¡integer ¡capaci4es ¡ue, ¡ ¡source ¡s ¡and ¡sink ¡t ¡

slide-9
SLIDE 9

8 ¡ 4 ¡ 1 ¡ 3 ¡ 7 ¡ 4 ¡ 10 ¡ 5 ¡ 6 ¡ 2 ¡ 6 ¡ 1 ¡

s ¡ t ¡

2 ¡ 2 ¡ 6 ¡ 4 ¡ 6 ¡ 4 ¡ 1 ¡ 4 ¡ 3 ¡ 3 ¡ 3 ¡

¡Maximum ¡flow ¡problem ¡

Here, ¡value ¡= ¡7 ¡

Max ¡flow ¡value ¡ F*=10 ¡

Task: ¡Find ¡a ¡feasible ¡s-­‑t ¡flow ¡of ¡max ¡value ¡

(Think: ¡Es;mate ¡the ¡max ¡possible ¡rate ¡of ¡traffic ¡from ¡s ¡ ¡to ¡t) ¡ Think: ¡ ¡arcs ¡= ¡roads ¡ ¡capaci;es ¡= ¡# ¡of ¡lanes ¡ ¡ ¡s/t ¡= ¡origin/des;na;on ¡ Input: ¡ ¡Directed ¡graph ¡G, ¡ ¡integer ¡capaci4es ¡ue, ¡ ¡source ¡s ¡and ¡sink ¡t ¡

slide-10
SLIDE 10

Connec4vity ¡ Analysis ¡ Transporta4on ¡ (Route ¡planning) ¡ Computer ¡Vision ¡ (Image ¡segmenta;on) ¡ Graph ¡par44oning ¡ (Clustering) ¡ Scheduling, ¡ Assignment ¡problems ¡

Max ¡Flow ¡

Max ¡flow ¡is ¡a ¡fundamental ¡

  • p;miza;on ¡problem ¡

Why ¡is ¡this ¡a ¡good ¡problem ¡to ¡study? ¡

  • ¡Extensively ¡studied ¡since ¡1930s ¡(classic ¡‘textbook ¡problem’) ¡ ¡
  • ¡Surprisingly ¡diverse ¡set ¡of ¡applica4ons ¡
  • ¡Very ¡influen4al ¡in ¡development ¡of ¡(graph) ¡algorithms ¡
slide-11
SLIDE 11

A ¡LOT ¡of ¡previous ¡work ¡

What ¡is ¡known ¡about ¡Max ¡Flow? ¡

slide-12
SLIDE 12

What ¡is ¡known ¡about ¡Max ¡Flow? ¡

[Dantzig ¡‘51] ¡ ¡ [Ford ¡Fulkerson ¡’56] ¡ [Dinitz ¡‘70] ¡[Edmonds ¡Karp ¡’72] ¡

O(mn2 ¡U) ¡ ¡ O(mn ¡U) ¡ (n ¡= ¡# ¡of ¡ver;ces, ¡m ¡= ¡# ¡of ¡arcs, ¡U ¡= ¡max ¡capacity, ¡Õ() ¡hides ¡polylogs) ¡

[Dinitz ¡’70] ¡

O(mn2) ¡ ¡ O(m2n) ¡

[Dinitz ¡‘73] ¡[Edmonds ¡Karp ¡’72] ¡

O(m2 ¡log ¡U) ¡ ¡

[Dinitz ¡‘73] ¡[Gabow ¡’85] ¡

O(mn ¡log ¡U) ¡ ¡

[Goldberg ¡Rao ¡’98] ¡

Õ(m ¡min(m1/2,n2/3) ¡log ¡U) ¡ ¡

A ¡(very) ¡rough ¡history ¡outline ¡

Our ¡focus: ¡Sparse ¡graph ¡(m=O(n)) ¡and ¡unit-­‑capacity ¡(U=1) ¡regime ¡ → ¡It ¡is ¡a ¡good ¡benchmark ¡for ¡combinatorial ¡graph ¡algorithms ¡ → ¡Already ¡captures ¡interes;ng ¡problems, ¡e.g., ¡bipar4te ¡matching ¡

[Lee ¡Sidford ¡’14] ¡

Õ(mn1/2 ¡log ¡U) ¡ ¡

slide-13
SLIDE 13

What ¡is ¡known ¡about ¡Max ¡Flow? ¡

[Dantzig ¡‘51] ¡ ¡ [Ford ¡Fulkerson ¡’56] ¡ [Dinitz ¡‘70] ¡[Edmonds ¡Karp ¡’72] ¡

O(n3) ¡ ¡ O(n2) ¡ (n ¡= ¡# ¡of ¡ver;ces, ¡m ¡= ¡# ¡of ¡arcs, ¡U ¡= ¡max ¡capacity, ¡Õ() ¡hides ¡polylogs) ¡

[Dinitz ¡’70] ¡

O(n3) ¡ ¡ O(n3) ¡

[Dinitz ¡‘73] ¡[Edmonds ¡Karp ¡’72] ¡

Õ(n2) ¡ ¡

[Dinitz ¡‘73] ¡[Gabow ¡’85] ¡

Õ(n2) ¡ ¡

A ¡(very) ¡rough ¡history ¡outline ¡

Our ¡focus: ¡Sparse ¡graph ¡(m=O(n)) ¡and ¡unit-­‑capacity ¡(U=1) ¡regime ¡ → ¡It ¡is ¡a ¡good ¡benchmark ¡for ¡combinatorial ¡graph ¡algorithms ¡ → ¡Already ¡captures ¡interes;ng ¡problems, ¡e.g., ¡bipar4te ¡matching ¡

[Goldberg ¡Rao ¡’98] ¡

Õ(n3/2) ¡ ¡

[Lee ¡Sidford ¡’14] ¡

Õ(n3/2) ¡ ¡

slide-14
SLIDE 14

What ¡is ¡known ¡about ¡Max ¡Flow? ¡

(n ¡= ¡# ¡of ¡ver;ces, ¡m ¡= ¡# ¡of ¡arcs, ¡U ¡= ¡max ¡capacity, ¡Õ() ¡hides ¡polylogs) ¡

¡ ¡ ¡ ¡Emerging ¡barrier: ¡ ¡ ¡O(n3/2) ¡

¡

Last ¡40 ¡years: ¡Matching ¡this ¡bound ¡in ¡increasingly ¡ ¡ more ¡general ¡sehngs, ¡but ¡no ¡improvement ¡ This ¡indicates ¡a ¡fundamental ¡limita;on ¡of ¡our ¡techniques ¡

[Even ¡Tarjan ¡’75, ¡Karzanov ¡‘73]: ¡Achieved ¡this ¡bound ¡for ¡U=1 ¡long ¡;me ¡ago ¡

Our ¡goal: ¡Show ¡a ¡new ¡approach ¡finally ¡breaking ¡this ¡barrier ¡

slide-15
SLIDE 15

Breaking ¡the ¡Ω(n3/2) ¡barrier ¡

Undirected ¡graphs ¡and ¡approx. ¡answers ¡(Ω(n3/2) ¡barrier ¡s;ll ¡holds ¡here) ¡

¡[M ¡‘10]: ¡ ¡Crude ¡approx. ¡of ¡max ¡flow ¡value ¡in ¡close ¡to ¡linear ¡;me ¡ ¡[CKMST ¡‘11]: ¡(1-­‑ε)-­‑approx. ¡to ¡max ¡flow ¡in ¡Õ(n4/3ε-­‑3) ¡;me ¡ ¡

But: ¡What ¡about ¡the ¡directed ¡and ¡exact ¡sehng? ¡

[M ¡‘13]: ¡Exact ¡Õ(n10/7)=Õ(n1.43)-­‑;me ¡alg. ¡ ¡

(n ¡= ¡# ¡of ¡ver;ces, ¡Õ() ¡hides ¡polylog ¡factors) ¡

¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡[LSR ¡’13, ¡S ¡’13, ¡KLOS ¡’14, ¡P ¡’14]: ¡(1-­‑ε)-­‑approx. ¡in ¡Õ(nε-­‑2) ¡;me ¡ ¡

Next ¡week ¡

slide-16
SLIDE 16

Previous ¡approach ¡

slide-17
SLIDE 17

¡Augmen4ng ¡paths ¡framework ¡

[Ford ¡Fulkerson ¡‘56] ¡

s ¡ t ¡

Basic ¡idea: ¡Repeatedly ¡find ¡s-­‑t ¡paths ¡in ¡the ¡residual ¡graph ¡ ¡

slide-18
SLIDE 18

¡Augmen4ng ¡paths ¡framework ¡

[Ford ¡Fulkerson ¡‘56] ¡

s ¡ t ¡

Basic ¡idea: ¡Repeatedly ¡find ¡s-­‑t ¡paths ¡in ¡the ¡residual ¡graph ¡ ¡

slide-19
SLIDE 19

¡Augmen4ng ¡paths ¡framework ¡

[Ford ¡Fulkerson ¡‘56] ¡

s ¡ t ¡

Basic ¡idea: ¡Repeatedly ¡find ¡s-­‑t ¡paths ¡in ¡the ¡residual ¡graph ¡ ¡

slide-20
SLIDE 20

¡Augmen4ng ¡paths ¡framework ¡

[Ford ¡Fulkerson ¡‘56] ¡

s ¡ t ¡

Basic ¡idea: ¡Repeatedly ¡find ¡s-­‑t ¡paths ¡in ¡the ¡residual ¡graph ¡ ¡

slide-21
SLIDE 21

¡Augmen4ng ¡paths ¡framework ¡

[Ford ¡Fulkerson ¡‘56] ¡

s ¡ t ¡

Basic ¡idea: ¡Repeatedly ¡find ¡s-­‑t ¡paths ¡in ¡the ¡residual ¡graph ¡ ¡ Advantage: ¡Simple, ¡ purely ¡combinatorial ¡ ¡ and ¡greedy ¡(flow ¡is ¡ ¡ built ¡path-­‑by-­‑path) ¡ Problem: ¡ ¡ Very ¡difficult ¡to ¡analyze ¡ Naïve ¡implementa4on: ¡O(n2) ¡;me ¡ Sophis4cated ¡implementa4on ¡and ¡arguments: ¡ ¡ ¡ ¡ ¡O(n3/2) ¡;me ¡[Karzanov ¡‘73] ¡[Even ¡Tarjan ¡‘75] ¡ (≤ ¡n ¡augmen;ng ¡paths ¡+ ¡O(n) ¡;me ¡to ¡find ¡each ¡path) ¡ Unclear ¡how ¡to ¡get ¡ ¡ a ¡further ¡speed-­‑up ¡via ¡this ¡route ¡

slide-22
SLIDE 22

Beyond ¡augmen4ng ¡paths ¡

slide-23
SLIDE 23

¡New ¡approach: ¡ ¡

Bring ¡linear-­‑algebraic ¡techniques ¡into ¡play ¡

Idea: ¡Probe ¡the ¡global ¡flow ¡structure ¡ ¡

  • f ¡the ¡graph ¡by ¡solving ¡linear ¡systems ¡

How ¡to ¡relate ¡flow ¡structure ¡to ¡linear ¡algebra? ¡ (And ¡why ¡should ¡it ¡even ¡help?) ¡ ¡

Key ¡object: ¡Electrical ¡flows ¡

slide-24
SLIDE 24

Electrical ¡flows ¡(Take ¡I) ¡

s t

Recipe ¡for ¡elec. ¡flow: ¡ 1) ¡Treat ¡edges ¡as ¡ ¡ ¡ ¡ ¡ ¡resistors ¡ ¡

Input: ¡ ¡Undirected ¡graph ¡G, ¡ ¡resistances ¡re, ¡ ¡source ¡s ¡and ¡sink ¡t ¡

slide-25
SLIDE 25

s t

Electrical ¡flows ¡(Take ¡I) ¡

Recipe ¡for ¡elec. ¡flow: ¡ 1) ¡Treat ¡edges ¡as ¡ ¡ ¡ ¡ ¡ ¡resistors ¡ ¡ 2) ¡Connect ¡a ¡baNery ¡ ¡ ¡ ¡ ¡ ¡to ¡s ¡and ¡t ¡ resistance ¡re ¡

Input: ¡ ¡Undirected ¡graph ¡G, ¡ ¡resistances ¡re, ¡ ¡source ¡s ¡and ¡sink ¡t ¡

slide-26
SLIDE 26

s t

Electrical ¡flows ¡(Take ¡I) ¡

Recipe ¡for ¡elec. ¡flow: ¡ 1) ¡Treat ¡edges ¡as ¡ ¡ ¡ ¡ ¡ ¡resistors ¡ ¡ 2) ¡Connect ¡a ¡baNery ¡ ¡ ¡ ¡ ¡ ¡to ¡s ¡and ¡t ¡

Input: ¡ ¡Undirected ¡graph ¡G, ¡ ¡resistances ¡re, ¡ ¡source ¡s ¡and ¡sink ¡t ¡

resistance ¡re ¡

slide-27
SLIDE 27

s t

Electrical ¡flows ¡(Take ¡II) ¡

resistance ¡re ¡

Input: ¡ ¡Undirected ¡graph ¡G, ¡ ¡resistances ¡re, ¡ ¡source ¡s ¡and ¡sink ¡t ¡ (Another) ¡recipe ¡for ¡electrical ¡flow ¡(of ¡value ¡F): ¡

slide-28
SLIDE 28

Electrical ¡flows ¡(Take ¡II) ¡

Input: ¡ ¡Undirected ¡graph ¡G, ¡ ¡resistances ¡re, ¡ ¡source ¡s ¡and ¡sink ¡t ¡ (Another) ¡recipe ¡for ¡electrical ¡flow ¡(of ¡value ¡F): ¡ Find ¡vertex ¡poten4als ¡ϕv ¡ ¡such ¡that ¡sehng, ¡for ¡all ¡(u,v) ¡

¡

¡ ¡f(u,v) ¡← ¡(ϕv-­‑ ¡ϕu)/r(u,v)

¡(Ohm’s ¡law) ¡

¡

gives ¡a ¡valid ¡s-­‑t ¡flow ¡of ¡value ¡F ¡

s t

ϕu ¡ ϕv ¡ f(u,v) ¡ no ¡leaks ¡at ¡all ¡v≠s,t ¡ excess ¡of ¡F ¡at ¡t ¡ deficit ¡of ¡F ¡at ¡s ¡

slide-29
SLIDE 29

Electrical ¡flows ¡(Take ¡III) ¡

Electrical ¡flow ¡of ¡value ¡F: ¡ The ¡unique ¡minimizer ¡of ¡the ¡energy ¡

¡

¡E(f) ¡= ¡Σe ¡re ¡f(e)2 ¡

¡

among ¡all ¡s-­‑t ¡flows ¡f ¡of ¡value ¡F ¡

Principle ¡of ¡least ¡energy ¡ Electrical ¡flows ¡= ¡l2-­‑minimiza;on ¡ ¡

Input: ¡ ¡Undirected ¡graph ¡G, ¡ ¡resistances ¡re, ¡ ¡source ¡s ¡and ¡sink ¡t ¡

slide-30
SLIDE 30

Solve ¡a ¡linear ¡system! ¡

How ¡to ¡compute ¡an ¡electrical ¡flow? ¡

Wlog ¡as ¡elect. ¡flow ¡are ¡ ¡ invariant ¡under ¡scaling ¡ Input: ¡ ¡Graph ¡G=(V,E), ¡ resistances ¡re, ¡ source ¡s ¡and ¡sink ¡t, ¡ value ¡F=1 ¡

slide-31
SLIDE 31

Solve ¡a ¡linear ¡system! ¡

How ¡to ¡compute ¡an ¡electrical ¡flow? ¡ Input: ¡ ¡Graph ¡G=(V,E), ¡

resistances ¡re, ¡ source ¡s ¡and ¡sink ¡t, ¡ value ¡F=1 ¡ Observe: ¡It ¡suffices ¡to ¡compute ¡vertex ¡poten4als ¡ϕv ¡ Ohm’s ¡law: ¡If ¡ϕ ¡is ¡an ¡(|V|-­‑dim) ¡vector ¡of ¡vertex ¡poten4als ¡then ¡

¡

f ¡= ¡R-­‑1BT ¡ϕ ¡

¡

is ¡the ¡corresponding ¡flow ¡ Here: ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡→ ¡f ¡is ¡an ¡|E|-­‑dim ¡vector ¡with ¡|fe| ¡giving ¡the ¡amount ¡of ¡flow ¡on ¡e ¡ ¡ ¡ ¡ ¡and ¡sign(fe) ¡encoding ¡its ¡direc;on ¡(wrt ¡edge ¡orienta;on) ¡ ¡ ¡ ¡ ¡ ¡ ¡→ ¡R ¡is ¡an ¡|E|×|E| ¡diagonal ¡matrix ¡with ¡Ree ¡= ¡re ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡→ ¡B ¡is ¡an ¡|V|×|E| ¡matrix ¡with ¡e-­‑th ¡column, ¡for ¡e=(v,u), ¡having ¡ ¡ ¡ ¡ ¡ ¡ ¡-­‑1 ¡(resp. ¡+1) ¡at ¡its ¡v-­‑th ¡(resp. ¡u-­‑th) ¡coordinate ¡and ¡0 ¡everywhere ¡else ¡

slide-32
SLIDE 32

Example: ¡

How ¡to ¡compute ¡an ¡electrical ¡flow? ¡

Ohm’s ¡law: ¡If ¡ϕ ¡is ¡an ¡(|V|-­‑dim) ¡vector ¡of ¡vertex ¡poten4als ¡then ¡

¡

f ¡= ¡R-­‑1BT ¡ϕ ¡

¡

is ¡the ¡corresponding ¡flow ¡

v1 ¡ v5 ¡ v3 ¡ v4 ¡ −1 −1 1 −1 −1 1 1 1 −1 1 −1 1 " # $ $ $ $ $ $ % & ' ' ' ' ' ' 2 1 1 3 2 3 ! " # # # # # # # $ % & & & & & & & 2 ¡ 1 ¡ 3 ¡ 3 ¡ 2 ¡ 1 ¡

|V|=5, ¡|E|=6, ¡all ¡edges ¡oriented ¡(vi,vj) ¡with ¡i<j ¡ ¡ B ¡= ¡ R ¡= ¡

v2 ¡

slide-33
SLIDE 33

Example: ¡

How ¡to ¡compute ¡an ¡electrical ¡flow? ¡

Ohm’s ¡law: ¡If ¡ϕ ¡is ¡an ¡(|V|-­‑dim) ¡vector ¡of ¡vertex ¡poten4als ¡then ¡

¡

f ¡= ¡R-­‑1BT ¡ϕ ¡

¡

is ¡the ¡corresponding ¡flow ¡

v1 ¡ v5 ¡ v3 ¡ v4 ¡ −1 −1 1 −1 −1 1 1 1 −1 1 −1 1 " # $ $ $ $ $ $ % & ' ' ' ' ' ' 2 1 1 3 2 3 ! " # # # # # # # $ % & & & & & & & 2 ¡ 1 ¡ 3 ¡ 3 ¡ 2 ¡ 1 ¡

|V|=5, ¡|E|=6, ¡all ¡edges ¡oriented ¡(vi,vj) ¡with ¡i<j ¡ ¡ B ¡= ¡ R ¡= ¡

v2 ¡

slide-34
SLIDE 34

Example: ¡

How ¡to ¡compute ¡an ¡electrical ¡flow? ¡

Ohm’s ¡law: ¡If ¡ϕ ¡is ¡an ¡(|V|-­‑dim) ¡vector ¡of ¡vertex ¡poten4als ¡then ¡

¡

f ¡= ¡R-­‑1BT ¡ϕ ¡

¡

is ¡the ¡corresponding ¡flow ¡

v1 ¡ v5 ¡ v3 ¡ v4 ¡ −1 −1 1 −1 −1 1 1 1 −1 1 −1 1 " # $ $ $ $ $ $ % & ' ' ' ' ' ' 2 1 1 3 2 3 ! " # # # # # # # $ % & & & & & & & 2 ¡ 1 ¡ 3 ¡ 3 ¡ 2 ¡ 1 ¡

|V|=5, ¡|E|=6, ¡all ¡edges ¡oriented ¡(vi,vj) ¡with ¡i<j ¡ ¡ B ¡= ¡ R ¡= ¡

! " # # # # # # $ % & & & & & &

ϕ ¡= ¡

2 1 ¡ 5 ¡ 4 ¡ 3 ¡ v2 ¡

2 ¡ 1 ¡ 5 ¡ 4 ¡ 3 ¡

slide-35
SLIDE 35

Example: ¡

How ¡to ¡compute ¡an ¡electrical ¡flow? ¡

Ohm’s ¡law: ¡If ¡ϕ ¡is ¡an ¡(|V|-­‑dim) ¡vector ¡of ¡vertex ¡poten4als ¡then ¡

¡

f ¡= ¡R-­‑1BT ¡ϕ ¡

¡

is ¡the ¡corresponding ¡flow ¡

v1 ¡ v5 ¡ v3 ¡ v4 ¡ −1 −1 1 −1 −1 1 1 1 −1 1 −1 1 " # $ $ $ $ $ $ % & ' ' ' ' ' ' 2 1 1 3 2 3 ! " # # # # # # # $ % & & & & & & & 2 ¡ 1 ¡ 3 ¡ 3 ¡ 2 ¡ 1 ¡

|V|=5, ¡|E|=6, ¡all ¡edges ¡oriented ¡(vi,vj) ¡with ¡i<j ¡ ¡ B ¡= ¡ R ¡= ¡

v2 ¡ 2 1 ¡ 5 ¡ 4 ¡ 3 ¡ ! " # # # # # # # $ % & & & & & & &

f ¡= ¡

1 ¡ 4 ¡ 0.3 ¡ 0.5 ¡ 2 ¡ 1 ¡

R-­‑1BT ¡

! " # # # # # # $ % & & & & & &

ϕ ¡= ¡

2 ¡ 1 ¡ 5 ¡ 4 ¡ 3 ¡

  • ­‑0.5 ¡

2 ¡ 4 ¡ 1 ¡

  • ­‑1 ¡
  • ­‑0.3 ¡
slide-36
SLIDE 36

How ¡to ¡compute ¡an ¡electrical ¡flow? ¡

Ohm’s ¡law: ¡If ¡ϕ ¡is ¡an ¡(|V|-­‑dim) ¡vector ¡of ¡vertex ¡poten4als ¡then ¡

¡

f ¡= ¡R-­‑1BT ¡ϕ ¡

¡

is ¡the ¡corresponding ¡flow ¡ ¡Recall: ¡ϕ ¡induces ¡an ¡electrical ¡flow ¡f ¡iff ¡

¡

f ¡is ¡a ¡valid ¡s-­‑t ¡flow ¡ (i.e., ¡sa;sfies ¡flow ¡conserva;on ¡constraints) ¡ ¡Equivalently: ¡ϕ ¡induces ¡an ¡electrical ¡flow ¡f ¡iff ¡

¡

B ¡f ¡= ¡χs,t ¡

¡

where ¡χs,t ¡has ¡a ¡1 ¡at ¡t, ¡-­‑1 ¡at ¡s ¡and ¡0s ¡everywhere ¡else ¡ ¡Note: ¡(Bf)v ¡is ¡the ¡excess/deficit ¡of ¡f ¡at ¡v ¡

slide-37
SLIDE 37

How ¡to ¡compute ¡an ¡electrical ¡flow? ¡

Ohm’s ¡law: ¡If ¡ϕ ¡is ¡an ¡(|V|-­‑dim) ¡vector ¡of ¡vertex ¡poten4als ¡then ¡

¡

f ¡= ¡R-­‑1BT ¡ϕ ¡

¡

is ¡the ¡corresponding ¡flow ¡ ¡Recall: ¡ϕ ¡induces ¡an ¡electrical ¡flow ¡f ¡iff ¡

¡

f ¡is ¡a ¡valid ¡s-­‑t ¡flow ¡ (i.e., ¡sa;sfies ¡flow ¡conserva;on ¡constraints) ¡ ¡Equivalently: ¡ϕ ¡induces ¡an ¡electrical ¡flow ¡f ¡iff ¡

¡

B ¡f ¡= ¡χs,t ¡

¡

where ¡χs,t ¡has ¡a ¡1 ¡at ¡t, ¡-­‑1 ¡at ¡s ¡and ¡0s ¡everywhere ¡else ¡ ¡Note: ¡(Bf)v ¡is ¡the ¡excess/deficit ¡of ¡f ¡at ¡v ¡ Pu•ng ¡it ¡together: ¡ϕ ¡induces ¡an ¡electrical ¡flow ¡iff ¡

¡

B ¡R-­‑1BT ¡ϕ ¡= ¡χs,t ¡

¡

slide-38
SLIDE 38

How ¡to ¡compute ¡an ¡electrical ¡flow? ¡

Pu•ng ¡it ¡together: ¡ϕ ¡induces ¡an ¡electrical ¡flow ¡iff ¡

¡

B ¡R-­‑1BT ¡ϕ ¡= ¡χs,t ¡

¡

Example: ¡

v1 ¡ v5 ¡ v3 ¡ v4 ¡ −1 −1 1 −1 −1 1 1 1 −1 1 −1 1 " # $ $ $ $ $ $ % & ' ' ' ' ' ' 2 1 1 3 2 3 ! " # # # # # # # $ % & & & & & & & 2 ¡ 1 ¡ 3 ¡ 3 ¡ 2 ¡ 1 ¡

|V|=5, ¡|E|=6, ¡all ¡edges ¡oriented ¡(vi,vj) ¡with ¡i<j ¡ ¡ B ¡= ¡ R ¡= ¡

v2 ¡ 2 1 ¡ 5 ¡ 4 ¡ 3 ¡ 1 ¡ 4 ¡ 0.3 ¡ 0.5 ¡ 2 ¡ 1 ¡

R-­‑1BT ¡ s t

! " # # # # # # $ % & & & & & &

ϕ ¡= ¡

2 ¡ 1 ¡ 5 ¡ 4 ¡ 3 ¡

! " # # # # # # # $ % & & & & & & &

f ¡= ¡

  • ­‑0.5 ¡

2 ¡ 4 ¡ 1 ¡

  • ­‑1 ¡
  • ­‑0.3 ¡
slide-39
SLIDE 39

How ¡to ¡compute ¡an ¡electrical ¡flow? ¡

Pu•ng ¡it ¡together: ¡ϕ ¡induces ¡an ¡electrical ¡flow ¡iff ¡

¡

B ¡R-­‑1BT ¡ϕ ¡= ¡χs,t ¡

¡

Example: ¡

v1 ¡ v5 ¡ v3 ¡ v4 ¡ −1 −1 1 −1 −1 1 1 1 −1 1 −1 1 " # $ $ $ $ $ $ % & ' ' ' ' ' ' 2 1 1 3 2 3 ! " # # # # # # # $ % & & & & & & & 2 ¡ 1 ¡ 3 ¡ 3 ¡ 2 ¡ 1 ¡

|V|=5, ¡|E|=6, ¡all ¡edges ¡oriented ¡(vi,vj) ¡with ¡i<j ¡ ¡ B ¡= ¡ R ¡= ¡

v2 ¡ 2 1 ¡ 5 ¡ 4 ¡ 3 ¡ 1 ¡ 4 ¡ 0.3 ¡ 0.5 ¡ 2 ¡ 1 ¡

R-­‑1BT ¡ B ¡

! " # # # # # # $ % & & & & & &

≠ ¡

! " # # # # # # $ % & & & & & &

= ¡

χs,t ¡

  • ­‑1.3 ¡

3.3 ¡ 5 ¡

  • ­‑5.5 ¡
  • ­‑1.5 ¡

s t

! " # # # # # # $ % & & & & & &

ϕ ¡= ¡

2 ¡ 1 ¡ 5 ¡ 4 ¡ 3 ¡

! " # # # # # # # $ % & & & & & & &

f ¡= ¡

  • ­‑0.5 ¡

2 ¡ 4 ¡ 1 ¡

  • ­‑1 ¡
  • ­‑0.3 ¡
  • ­‑1.5 ¡
  • ­‑5.5 ¡

5 ¡ 3.3 ¡

  • ­‑1.3 ¡

0 ¡

  • ­‑1 ¡

0 ¡ 1 ¡ 0 ¡

slide-40
SLIDE 40

How ¡to ¡compute ¡an ¡electrical ¡flow? ¡

Pu•ng ¡it ¡together: ¡ϕ ¡induces ¡an ¡electrical ¡flow ¡iff ¡

¡

B ¡R-­‑1BT ¡ϕ ¡= ¡χs,t ¡

¡

Example: ¡

v1 ¡ v5 ¡ v3 ¡ v4 ¡ −1 −1 1 −1 −1 1 1 1 −1 1 −1 1 " # $ $ $ $ $ $ % & ' ' ' ' ' ' 2 1 1 3 2 3 ! " # # # # # # # $ % & & & & & & & 2 ¡ 1 ¡ 3 ¡ 3 ¡ 2 ¡ 1 ¡

|V|=5, ¡|E|=6, ¡all ¡edges ¡oriented ¡(vi,vj) ¡with ¡i<j ¡ ¡ B ¡= ¡

v2 ¡ 0.8 ¡ 0 ¡ 0.2 ¡ 1.2 ¡ 0.6 ¡

s t

! " # # # # # # $ % & & & & & &

ϕ ¡= ¡

0.8 ¡ 0 ¡ 0.2 ¡ 1.2 ¡ 0.6 ¡

v1 ¡ 2 ¡ 1 ¡ 3 ¡

= ¡

χs,t ¡

! " # # # # # # $ % & & & & & &

0 ¡

  • ­‑1 ¡

0 ¡ 1 ¡ 0 ¡

slide-41
SLIDE 41

How ¡to ¡compute ¡an ¡electrical ¡flow? ¡

Pu•ng ¡it ¡together: ¡ϕ ¡induces ¡an ¡electrical ¡flow ¡iff ¡

¡

B ¡R-­‑1BT ¡ϕ ¡= ¡χs,t ¡

¡

Example: ¡

v1 ¡ v5 ¡ v3 ¡ v4 ¡ −1 −1 1 −1 −1 1 1 1 −1 1 −1 1 " # $ $ $ $ $ $ % & ' ' ' ' ' ' 2 1 1 3 2 3 ! " # # # # # # # $ % & & & & & & & 2 ¡ 1 ¡ 3 ¡ 3 ¡ 2 ¡ 1 ¡

|V|=5, ¡|E|=6, ¡all ¡edges ¡oriented ¡(vi,vj) ¡with ¡i<j ¡ ¡ B ¡= ¡ R ¡= ¡

v2 ¡ 0.4 ¡ 0.2 ¡ 0.2 ¡ 0.4 ¡ 0.4 ¡ 0.2 ¡

R-­‑1BT ¡

= ¡

χs,t ¡ s t

! " # # # # # # $ % & & & & & &

ϕ ¡= ¡

0.8 ¡ 0 ¡ 0.2 ¡ 1.2 ¡ 0.6 ¡

! " # # # # # # # $ % & & & & & & &

f ¡= ¡

  • ­‑0.4 ¡

0.4 ¡ 0.4 ¡ 0.2 ¡ 0.2 ¡

  • ­‑0.2 ¡

! " # # # # # # $ % & & & & & &

0 ¡

  • ­‑1 ¡

0 ¡ 1 ¡ 0 ¡

0.8 ¡ 0 ¡ 0.2 ¡ 1.2 ¡ 0.6 ¡

slide-42
SLIDE 42

How ¡to ¡compute ¡an ¡electrical ¡flow? ¡

Pu•ng ¡it ¡together: ¡ϕ ¡induces ¡an ¡electrical ¡flow ¡iff ¡

¡

B ¡R-­‑1BT ¡ϕ ¡= ¡χs,t ¡

¡

Example: ¡

v1 ¡ v5 ¡ v3 ¡ v4 ¡ −1 −1 1 −1 −1 1 1 1 −1 1 −1 1 " # $ $ $ $ $ $ % & ' ' ' ' ' ' 2 1 1 3 2 3 ! " # # # # # # # $ % & & & & & & & 2 ¡ 1 ¡ 3 ¡ 3 ¡ 2 ¡ 1 ¡

|V|=5, ¡|E|=6, ¡all ¡edges ¡oriented ¡(vi,vj) ¡with ¡i<j ¡ ¡ B ¡= ¡ R ¡= ¡

v2 ¡ 0.4 ¡ 0.2 ¡ 0.2 ¡ 0.4 ¡ 0.4 ¡ 0.2 ¡

R-­‑1BT ¡

= ¡

χs,t ¡ s t

! " # # # # # # $ % & & & & & &

ϕ ¡= ¡

0.8 ¡ 0 ¡ 0.2 ¡ 1.2 ¡ 0.6 ¡

! " # # # # # # # $ % & & & & & & &

f ¡= ¡

  • ­‑0.4 ¡

0.4 ¡ 0.4 ¡ 0.2 ¡ 0.2 ¡

  • ­‑0.2 ¡

! " # # # # # # $ % & & & & & &

0 ¡

  • ­‑1 ¡

0 ¡ 1 ¡ 0 ¡

0.8 ¡ 0 ¡ 0.2 ¡ 1.2 ¡ 0.6 ¡

= ¡

B ¡

! " # # # # # # $ % & & & & & &

0 ¡

  • ­‑1 ¡

0 ¡ 1 ¡ 0 ¡

0 ¡ 1 ¡ 0 ¡

  • ­‑1 ¡

0 ¡

slide-43
SLIDE 43

= ¡

BR-­‑1BT ¡ ϕ ¡ χs,t ¡

Electrical ¡flow ¡ computa;on ¡ Solving ¡a ¡linear ¡system ¡ ¡

How ¡to ¡compute ¡an ¡electrical ¡flow? ¡

BoNom ¡line: ¡ ¡

Bad ¡news: ¡Solving ¡a ¡linear ¡system ¡can ¡take ¡O(nω)=O(n2.373) ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡(Prohibi;ve!) ¡ Key ¡observa4on: ¡ ¡ BR-­‑1BT ¡is ¡the ¡Laplacian ¡matrix ¡L ¡ ¡

  • f ¡the ¡underlying ¡graph ¡
slide-44
SLIDE 44

= ¡

L ¡

ϕ ¡ χs,t ¡

Electrical ¡flow ¡ computa;on ¡ Solving ¡a ¡Laplacian ¡system ¡ ¡

How ¡to ¡compute ¡an ¡electrical ¡flow? ¡

BoNom ¡line: ¡ ¡

Bad ¡news: ¡Solving ¡a ¡linear ¡system ¡can ¡take ¡O(nω)=O(n2.373) ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡(Prohibi;ve!) ¡ Key ¡observa4on: ¡ ¡ BR-­‑1BT ¡is ¡the ¡Laplacian ¡matrix ¡L ¡ ¡

  • f ¡the ¡underlying ¡graph ¡

Laplacian ¡= ¡key ¡object ¡

  • f ¡spectral ¡graph ¡theory ¡

(will ¡get ¡back ¡to ¡this) ¡

slide-45
SLIDE 45

= ¡

ϕ ¡ χs,t ¡

Electrical ¡flow ¡ computa;on ¡

How ¡to ¡compute ¡an ¡electrical ¡flow? ¡

BoNom ¡line: ¡ ¡

Bad ¡news: ¡Solving ¡a ¡linear ¡system ¡can ¡take ¡O(nω)=O(n2.373) ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡(Prohibi;ve!) ¡ Key ¡observa4on: ¡ ¡ BR-­‑1BT ¡is ¡the ¡Laplacian ¡matrix ¡L ¡ ¡

  • f ¡the ¡underlying ¡graph ¡

Laplacian ¡systems ¡can ¡be ¡(essen;ally) ¡solved ¡in ¡nearly-­‑linear ¡4me! ¡

¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡[ST ¡’04, ¡KMP ¡’10, ¡KMP ¡’11, ¡KOSZ ¡’13, ¡LS ¡’13, ¡CKPPR ¡‘14] ¡ ¡

How ¡to ¡u;lize ¡it? ¡

Solving ¡a ¡Laplacian ¡system ¡ ¡

Result: ¡Electrical ¡flow ¡is ¡a ¡nearly-­‑linear ¡4me ¡primi;ve ¡

L ¡

(will ¡get ¡back ¡to ¡this) ¡

slide-46
SLIDE 46

From ¡electrical ¡flows ¡to ¡ ¡ undirected ¡max ¡flow ¡

¡ ¡ ¡ ¡ ¡ ¡ ¡[CKMST ¡’11] ¡

slide-47
SLIDE 47

s t

Assume: ¡F* ¡known ¡(via ¡binary ¡search) ¡ ¡ ¡ → ¡Treat ¡edges ¡as ¡resistors ¡of ¡resistance ¡1 ¡

  • Approx. ¡undirected ¡max ¡flow ¡ ¡

¡via ¡electrical ¡flows ¡

slide-48
SLIDE 48

t s

→ ¡Treat ¡edges ¡as ¡resistors ¡of ¡resistance ¡1 ¡ → ¡Compute ¡electrical ¡flow ¡of ¡value ¡F* ¡ Assume: ¡F* ¡known ¡(via ¡binary ¡search) ¡ ¡ ¡

  • Approx. ¡undirected ¡max ¡flow ¡ ¡

¡via ¡electrical ¡flows ¡

slide-49
SLIDE 49

t

3/4 ¡ 3/4 ¡ 1.5 ¡ 3/4 ¡ 3/4 ¡

s

→ ¡Treat ¡edges ¡as ¡resistors ¡of ¡resistance ¡1 ¡ → ¡Compute ¡electrical ¡flow ¡of ¡value ¡F* ¡ (This ¡flow ¡has ¡no ¡leaks, ¡but ¡can ¡ ¡ ¡overflow ¡some ¡edges) ¡ Assume: ¡F* ¡known ¡(via ¡binary ¡search) ¡ ¡ ¡

  • Approx. ¡undirected ¡max ¡flow ¡ ¡

¡via ¡electrical ¡flows ¡

slide-50
SLIDE 50

t

3/4 ¡ 3/4 ¡ 1.5 ¡ 3/4 ¡ 3/4 ¡

s

→ ¡Treat ¡edges ¡as ¡resistors ¡of ¡resistance ¡1 ¡ → ¡Compute ¡electrical ¡flow ¡of ¡value ¡F* ¡ → ¡To ¡fix ¡that: ¡Increase ¡resistances ¡on ¡the ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡overflowing ¡edges ¡ ¡ ¡ ¡ ¡ ¡Repeat ¡ ¡ (This ¡flow ¡has ¡no ¡leaks, ¡but ¡can ¡ ¡ ¡overflow ¡some ¡edges) ¡ Surprisingly: ¡This ¡approach ¡can ¡be ¡made ¡work! ¡ Assume: ¡F* ¡known ¡(via ¡binary ¡search) ¡ ¡ ¡

  • Approx. ¡undirected ¡max ¡flow ¡ ¡

¡via ¡electrical ¡flows ¡

(hope: ¡it ¡doesn’t ¡happen ¡too ¡ouen) ¡ Next ¡week: ¡Will ¡discuss ¡how ¡to ¡fill ¡in ¡the ¡blanks ¡ ¡

slide-51
SLIDE 51

Addendum: ¡A ¡Glimpse ¡of ¡ ¡ Spectral ¡Graph ¡Theory ¡

slide-52
SLIDE 52

Spectral ¡graph ¡theory: ¡Understanding ¡graphs ¡via ¡ eigenvalues ¡and ¡eigenvectors ¡of ¡associated ¡matrices ¡ Central ¡object: ¡ ¡Laplacian ¡matrix ¡of ¡a ¡graph ¡G=(V,E,w) ¡

L ¡ = ¡

  • ­‑ ¡

D ¡ A ¡

Diagonal ¡degree ¡matrix ¡ Dvv ¡= ¡deg(v) ¡= ¡Σu ¡wuv ¡ Adjacency ¡matrix ¡ Auv ¡= ¡wuv ¡

Equivalently: ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡-­‑ ¡wuv ¡

¡if ¡(u,v) ¡in ¡E ¡

¡ ¡ ¡ ¡ ¡ ¡Luv ¡= ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡deg(v) ¡ ¡ ¡

¡if ¡u=v ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡0 ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡otherwise ¡

slide-53
SLIDE 53

Spectral ¡graph ¡theory: ¡Understanding ¡graphs ¡via ¡ eigenvalues ¡and ¡eigenvectors ¡of ¡associated ¡matrices ¡ Example: ¡

v1 ¡ v5 ¡ v3 ¡ v4 ¡

3 −2 −1 −2 6 −1 −3 −1 3 −1 −3 −2 7 −3 −2 −3 5 " # $ $ $ $ $ $ % & ' ' ' ' ' '

2 ¡ 1 ¡ 3 ¡ 3 ¡ 2 ¡ 1 ¡

L ¡= ¡

v2 ¡

Laplacian ¡of ¡ ¡ a ¡graph ¡(V, ¡{e}) ¡

L ¡= ¡Σe ¡we ¡Le ¡

Observe: ¡ Laplacian ¡as ¡a ¡quadra4c ¡form: ¡

xT ¡L ¡x ¡= ¡Σe ¡we ¡xT ¡Le ¡x ¡= ¡Σe ¡we ¡(xu-­‑xv)2 ¡ ¡ ¡

slide-54
SLIDE 54

Spectrum ¡of ¡a ¡Laplacian ¡

Laplacian ¡is ¡an ¡n×n ¡symmetric ¡matrix. ¡ ¡ → ¡It ¡has ¡as ¡n ¡real ¡eigenvalues ¡λ1 ¡≤ ¡λ2 ¡≤ ¡… ¡≤ ¡λn ¡with ¡ ¡ ¡ ¡ ¡ ¡corresponding ¡(orthogonal) ¡eigenvectors ¡v1,v2,…,vn ¡s.t. ¡

¡

¡ ¡

¡ ¡ ¡L ¡vi ¡= ¡λi ¡vi

¡

Can ¡show: ¡ ¡ ¡λ1=0 ¡and ¡v1 ¡= ¡(1,…,1) ¡ Most ¡important ¡eigenvalue: ¡λ2 ¡ These ¡objects ¡tell ¡us ¡a ¡lot ¡about ¡the ¡graph! ¡ (And ¡can ¡compute ¡some ¡of ¡λis ¡and ¡vis ¡in ¡nearly-­‑linear ¡4me) ¡

slide-55
SLIDE 55

λ2 ¡and ¡graph ¡connec4vity ¡

Fact: ¡ ¡λ2=0 ¡iff ¡G ¡is ¡disconnected ¡

(More ¡generally: ¡λk=0 ¡iff ¡G ¡has ¡at ¡least ¡k ¡connected ¡components) ¡

¡ ¡ ¡Can ¡we ¡make ¡this ¡connec;on ¡quan;ta;ve? ¡

C ¡

¡ ¡ ¡Cut ¡conductance: ¡ Φ(C) ¡= ¡

w(C) deg(C)

Total ¡weight ¡

  • f ¡cut ¡edges ¡

Total ¡weighted ¡degree ¡ ¡ (of ¡the ¡“smaller” ¡side) ¡

slide-56
SLIDE 56

λ2 ¡and ¡graph ¡connec4vity ¡

Fact: ¡ ¡λ2=0 ¡iff ¡G ¡is ¡disconnected ¡

(More ¡generally: ¡λk=0 ¡iff ¡G ¡has ¡at ¡least ¡k ¡connected ¡components) ¡

¡ ¡ ¡Can ¡we ¡make ¡this ¡connec;on ¡quan;ta;ve? ¡

C ¡

¡ ¡ ¡Graph ¡conductance: ¡ ΦG ¡= ¡minC ¡

w(C) deg(C)

ΦG ¡large ¡ ¡→ ¡G ¡is ¡well ¡connected ¡ ΦG ¡small ¡ ¡→ ¡G ¡has ¡a ¡“bovlenecking” ¡cut ¡

slide-57
SLIDE 57

λ2 ¡and ¡graph ¡connec4vity ¡

For ¡a ¡normalized ¡Laplacian ¡ ¡L L = ¡D-­‑½ ¡L ¡D-­‑½ ¡

¡

λ2/2 ¡≤ ¡ΦG ¡≤ ¡2 ¡λ2

½ ¡

¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡[Cheeger ¡‘70, ¡Alon-­‑Milman ¡’85] ¡

slide-58
SLIDE 58

λ2 ¡and ¡graph ¡connec4vity ¡

For ¡a ¡normalized ¡Laplacian ¡ ¡L L = ¡D-­‑½ ¡L ¡D-­‑½ ¡

¡

λ2/2 ¡≤ ¡ΦG ¡≤ ¡2 ¡λ2

½ ¡

¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡[Cheeger ¡‘70, ¡Alon-­‑Milman ¡’85] ¡

¡ ¡ ¡A ¡cut ¡C ¡with ¡Φ(C) ¡≤ ¡2 ¡λ2

½ ¡can ¡be ¡found ¡in ¡nearly-­‑linear ¡4me ¡

¡ ¡ ¡→ ¡Gives ¡an ¡O(λ2

  • ­‑½)-­‑approx. ¡to ¡ΦG ¡ ¡

¡(Compu;ng ¡ΦG ¡is ¡NP-­‑hard) ¡ ¡ ¡ ¡→ ¡Great ¡when ¡λ2 ¡is ¡large, ¡i.e., ¡G ¡is ¡well-­‑connected, ¡ ¡ ¡but ¡prevy ¡poor ¡for ¡small ¡λ2 ¡

slide-59
SLIDE 59

λ2 ¡and ¡graph ¡connec4vity ¡

For ¡a ¡normalized ¡Laplacian ¡ ¡L L = ¡D-­‑½ ¡L ¡D-­‑½ ¡

¡

λ2/2 ¡≤ ¡ΦG ¡≤ ¡2 ¡λ2

½ ¡

¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡[Cheeger ¡‘70, ¡Alon-­‑Milman ¡’85] ¡

¡ ¡ ¡A ¡cut ¡C ¡with ¡Φ(C) ¡≤ ¡2 ¡λ2

½ ¡can ¡be ¡found ¡in ¡nearly-­‑linear ¡4me ¡

¡ ¡ ¡→ ¡Gives ¡an ¡O(λ2

  • ­‑½)-­‑approx. ¡to ¡ΦG ¡ ¡

¡(Compu;ng ¡ΦG ¡is ¡NP-­‑hard) ¡ ¡ ¡ ¡→ ¡Great ¡when ¡λ2 ¡is ¡large, ¡i.e., ¡G ¡is ¡well-­‑connected, ¡ ¡ ¡but ¡prevy ¡poor ¡for ¡small ¡λ2 ¡ ¡ ¡ ¡Unfortunately: ¡The ¡λ2

½ ¡vs. ¡λ2 ¡gap ¡is ¡unavoidable ¡

slide-60
SLIDE 60

λ2 ¡and ¡random ¡walks ¡

Paint ¡spilling ¡process: ¡

1

→ ¡Start ¡with ¡all ¡paint ¡at ¡s ¡ → ¡For ¡each ¡vertex: ¡ ¡ ¡ ¡ ¡ ¡Split ¡the ¡paint ¡in ¡half: ¡ ¡ ¡ ¡ ¡ ¡− ¡one ¡half ¡stays ¡put ¡ ¡ ¡ ¡ ¡ ¡− ¡distribute ¡the ¡rest ¡(evenly) ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡among ¡the ¡neighbors ¡

slide-61
SLIDE 61

λ2 ¡and ¡random ¡walks ¡

Paint ¡spilling ¡process: ¡ → ¡Start ¡with ¡all ¡paint ¡at ¡s ¡ → ¡For ¡each ¡vertex: ¡ ¡ ¡ ¡ ¡ ¡Split ¡the ¡paint ¡in ¡half: ¡ ¡ ¡ ¡ ¡ ¡− ¡one ¡half ¡stays ¡put ¡ ¡ ¡ ¡ ¡ ¡− ¡distribute ¡the ¡rest ¡(evenly) ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡among ¡the ¡neighbors ¡ → ¡Repeat ¡

1/2 1/4 1/4

slide-62
SLIDE 62

λ2 ¡and ¡random ¡walks ¡

Paint ¡spilling ¡process: ¡ → ¡Start ¡with ¡all ¡paint ¡at ¡s ¡ → ¡For ¡each ¡vertex: ¡ ¡ ¡ ¡ ¡ ¡Split ¡the ¡paint ¡in ¡half: ¡ ¡ ¡ ¡ ¡ ¡− ¡one ¡half ¡stays ¡put ¡ ¡ ¡ ¡ ¡ ¡− ¡distribute ¡the ¡rest ¡(evenly) ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡among ¡the ¡neighbors ¡ → ¡Repeat ¡

1/32 5/16 9/32 9/32 1/32 1/32 1/32

This ¡diffusive ¡process ¡corresponds ¡ to ¡a ¡(lazy) ¡random ¡walk ¡ and ¡shows ¡up ¡everywhere ¡ Fact: ¡Paint ¡distribu;on ¡always* ¡converges ¡to ¡ ¡ a ¡sta4onary ¡distribu4on ¡π ¡with ¡πv ¡∼ ¡ ¡deg(v) ¡ But: ¡How ¡fast ¡is ¡this ¡convergence? ¡ Theorem: ¡The ¡convergence ¡rate ¡is ¡Θ(λ2

  • ­‑1) ¡
slide-63
SLIDE 63

Beyond ¡λ2? ¡

¡ ¡For ¡any ¡k ¡≥ ¡2, ¡ ¡

¡ ¡ ¡ ¡ ¡ΦG ¡≤ ¡O(k) ¡λ2/λk

½

¡ ¡ ¡[LOT‘12, ¡KLLOT’13] ¡

¡ ¡ ¡→ ¡Looking ¡at ¡the ¡higher ¡order ¡eigenvalues ¡

¡ ¡ ¡→ ¡Electrical ¡graph ¡theory: ¡Using ¡electrical ¡flows ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡Key ¡quan4ty: ¡Effec;ve ¡resistance ¡(between ¡s ¡and ¡t) ¡ Rst ¡= ¡χst

T ¡L+ ¡χst ¡

¡ ¡ ¡

Pseudo-­‑inverse ¡ ¡

  • f ¡the ¡Laplacian ¡

Vector ¡with ¡1 ¡at ¡t, ¡-­‑1 ¡at ¡s ¡ and ¡0s ¡everywhere ¡else ¡

slide-64
SLIDE 64

Beyond ¡λ2? ¡

¡ ¡ ¡ ¡ ¡ ¡ ¡Note: ¡Effec;ve ¡resistance ¡depends ¡on ¡the ¡whole ¡spectrum ¡of ¡L ¡ ¡ ¡ ¡[SS ¡‘08]: ¡We ¡can ¡(approx.) ¡compute ¡all ¡resistances ¡in ¡nearly-­‑linear ¡4me ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡Electrical ¡flows ¡show ¡up ¡in ¡many ¡contexts: ¡

¡→ ¡Behavior ¡of ¡random ¡walks ¡(commute ¡;me, ¡PageRank,…) ¡

¡→ ¡Graph ¡sparsifica;on ¡ ¡→ ¡Sampling ¡random ¡spanning ¡trees ¡ ¡→ ¡Maximum ¡flow ¡problem ¡

¡ ¡For ¡any ¡k ¡≥ ¡2, ¡ ¡

¡ ¡ ¡ ¡ ¡ΦG ¡≤ ¡O(k) ¡λ2/λk

½

¡ ¡ ¡[LOT‘12, ¡KLLOT’13] ¡

¡ ¡ ¡→ ¡Looking ¡at ¡the ¡higher ¡order ¡eigenvalues ¡

¡ ¡ ¡→ ¡Electrical ¡graph ¡theory: ¡Using ¡electrical ¡flows ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡Key ¡quan4ty: ¡Effec;ve ¡resistance ¡(between ¡s ¡and ¡t) ¡ Rst ¡= ¡χst

T ¡L+ ¡χst ¡

¡ ¡ ¡ Where ¡else ¡can ¡ ¡ we ¡use ¡them? ¡

slide-65
SLIDE 65

Thank ¡you ¡

Tomorrow: ¡(Fast) ¡Solving ¡of ¡(Laplacian) ¡Linear ¡System ¡