push relabel algorithm for maximum flow
play

Push-Relabel Algorithm for Maximum Flow HK Journalists Gehua Qin, - PowerPoint PPT Presentation

Introduction Proof of Correctness Analysis of Running time Push-Relabel Algorithm for Maximum Flow HK Journalists Gehua Qin, Chenlin Liu, Yihui Qian Algorithms run as fast as HK Journalists! November, 29, 2016 HK Journalists Gehua Qin,


  1. Introduction Proof of Correctness Analysis of Running time Push-Relabel Algorithm for Maximum Flow HK Journalists Gehua Qin, Chenlin Liu, Yihui Qian Algorithms run as fast as HK Journalists! November, 29, 2016 HK Journalists Gehua Qin, Chenlin Liu, Yihui Qian Push-Relabel Algorithm

  2. Introduction Proof of Correctness Analysis of Running time Outline Introduction 1 Basic Features Basic Idea Proof of Correctness 2 Properties of Height Proof of Correctness Analysis of Running time 3 Analysis of the push-relabel method HK Journalists Gehua Qin, Chenlin Liu, Yihui Qian Push-Relabel Algorithm

  3. Introduction Basic Features Proof of Correctness Basic Idea Analysis of Running time Outline Introduction 1 Basic Features Basic Idea Proof of Correctness 2 Properties of Height Proof of Correctness Analysis of Running time 3 Analysis of the push-relabel method HK Journalists Gehua Qin, Chenlin Liu, Yihui Qian Push-Relabel Algorithm

  4. Introduction Basic Features Proof of Correctness Basic Idea Analysis of Running time Features a fairly di ff erent approach to finding maximum flows. Invented by Andrew Goldberg and Bob Tarjan in 1980s. Running time is O ( V 2 E ) , compared with O ( VE 2 ) for Edmonds-Karp’s Algorithm Do not maintain the flow-conservation — preflow HK Journalists Gehua Qin, Chenlin Liu, Yihui Qian Push-Relabel Algorithm

  5. Introduction Basic Features Proof of Correctness Basic Idea Analysis of Running time Preflow Flow-conservation: X X u ∈ V − { s } , f ( v , u ) = f ( u , v ) v ∈ V v ∈ V HK Journalists Gehua Qin, Chenlin Liu, Yihui Qian Push-Relabel Algorithm

  6. Introduction Basic Features Proof of Correctness Basic Idea Analysis of Running time Preflow In push-relabel algorithm: Flow-conservation: X X u ∈ V − { s } , f ( v , u ) ≥ f ( u , v ) v ∈ V v ∈ V HK Journalists Gehua Qin, Chenlin Liu, Yihui Qian Push-Relabel Algorithm

  7. Introduction Basic Features Proof of Correctness Basic Idea Analysis of Running time Preflow Definition Excess flow: e ( u ) = P v ∈ V f ( v , u ) − P v ∈ V f ( u , v ) Definition If u ∈ V − { s } , e ( u ) > 0, then we call u is overflowing HK Journalists Gehua Qin, Chenlin Liu, Yihui Qian Push-Relabel Algorithm

  8. Introduction Basic Features Proof of Correctness Basic Idea Analysis of Running time Outline Introduction 1 Basic Features Basic Idea Proof of Correctness 2 Properties of Height Proof of Correctness Analysis of Running time 3 Analysis of the push-relabel method HK Journalists Gehua Qin, Chenlin Liu, Yihui Qian Push-Relabel Algorithm

  9. Introduction Basic Features Proof of Correctness Basic Idea Analysis of Running time Example HK Journalists Gehua Qin, Chenlin Liu, Yihui Qian Push-Relabel Algorithm

  10. Introduction Basic Features Proof of Correctness Basic Idea Analysis of Running time Example HK Journalists Gehua Qin, Chenlin Liu, Yihui Qian Push-Relabel Algorithm

  11. Introduction Basic Features Proof of Correctness Basic Idea Analysis of Running time Example HK Journalists Gehua Qin, Chenlin Liu, Yihui Qian Push-Relabel Algorithm

  12. Introduction Basic Features Proof of Correctness Basic Idea Analysis of Running time Example HK Journalists Gehua Qin, Chenlin Liu, Yihui Qian Push-Relabel Algorithm

  13. Introduction Basic Features Proof of Correctness Basic Idea Analysis of Running time Process Definition ∀ u ∈ V , u . h = the height of u . HK Journalists Gehua Qin, Chenlin Liu, Yihui Qian Push-Relabel Algorithm

  14. Introduction Basic Features Proof of Correctness Basic Idea Analysis of Running time Initialization Initialization During the whole process, s . h ≡ | V | , t . h ≡ 0 In the beginning, ∀ u ∈ V − { s , t } , u . h = 0 HK Journalists Gehua Qin, Chenlin Liu, Yihui Qian Push-Relabel Algorithm

  15. Introduction Basic Features Proof of Correctness Basic Idea Analysis of Running time Initialization HK Journalists Gehua Qin, Chenlin Liu, Yihui Qian Push-Relabel Algorithm

  16. Introduction Basic Features Proof of Correctness Basic Idea Analysis of Running time Initialization Initialization During the whole process, s . h ≡ | V | , t . h ≡ 0 In the beginning, ∀ u ∈ V − { s , t } , u . h = 0 Initialize the preflow f as: ( c(u,v) if u = s ( u , v ) . f = 0 other HK Journalists Gehua Qin, Chenlin Liu, Yihui Qian Push-Relabel Algorithm

  17. Introduction Basic Features Proof of Correctness Basic Idea Analysis of Running time Initialization HK Journalists Gehua Qin, Chenlin Liu, Yihui Qian Push-Relabel Algorithm

  18. Introduction Basic Features Proof of Correctness Basic Idea Analysis of Running time NOTE!!! The whole process is within the residual network . HK Journalists Gehua Qin, Chenlin Liu, Yihui Qian Push-Relabel Algorithm

  19. Introduction Basic Features Proof of Correctness Basic Idea Analysis of Running time NOTE!!! HK Journalists Gehua Qin, Chenlin Liu, Yihui Qian Push-Relabel Algorithm

  20. Introduction Basic Features Proof of Correctness Basic Idea Analysis of Running time Process Relabel(u) Applies when: u is overflowing and ∀ v ∈ V , such that ( u , v ) ∈ E f , we have u . h ≤ v . h . Action: Increase the height of u . u . h = 1 + min { v . h : ( u , v ) ∈ E f } HK Journalists Gehua Qin, Chenlin Liu, Yihui Qian Push-Relabel Algorithm

  21. Introduction Basic Features Proof of Correctness Basic Idea Analysis of Running time Relabel HK Journalists Gehua Qin, Chenlin Liu, Yihui Qian Push-Relabel Algorithm

  22. Introduction Basic Features Proof of Correctness Basic Idea Analysis of Running time Relabel HK Journalists Gehua Qin, Chenlin Liu, Yihui Qian Push-Relabel Algorithm

  23. Introduction Basic Features Proof of Correctness Basic Idea Analysis of Running time Relabel HK Journalists Gehua Qin, Chenlin Liu, Yihui Qian Push-Relabel Algorithm

  24. Introduction Basic Features Proof of Correctness Basic Idea Analysis of Running time Relabel HK Journalists Gehua Qin, Chenlin Liu, Yihui Qian Push-Relabel Algorithm

  25. Introduction Basic Features Proof of Correctness Basic Idea Analysis of Running time Relabel HK Journalists Gehua Qin, Chenlin Liu, Yihui Qian Push-Relabel Algorithm

  26. Introduction Basic Features Proof of Correctness Basic Idea Analysis of Running time Relabel HK Journalists Gehua Qin, Chenlin Liu, Yihui Qian Push-Relabel Algorithm

  27. Introduction Basic Features Proof of Correctness Basic Idea Analysis of Running time Process HK Journalists Gehua Qin, Chenlin Liu, Yihui Qian Push-Relabel Algorithm

  28. Introduction Basic Features Proof of Correctness Basic Idea Analysis of Running time Process HK Journalists Gehua Qin, Chenlin Liu, Yihui Qian Push-Relabel Algorithm

  29. Introduction Basic Features Proof of Correctness Basic Idea Analysis of Running time Process Push(u,v) Applies when: u is overflowing, c f ( u , v ) > 0, and u . h = v . h + 1. Action: Push ∆ f ( u , v ) = min ( u . e , c f ( u , v )) units of flow from u to v . ∆ f ( u , v ) = min ( u . e , c f ( u , v )) if ( ( u , v ) ∈ E ( u , v ) . f = ( u , v ) . f + ∆ f ( u , v ) else ( u , v ) . f = ( u , v ) . f − ∆ f ( u , v ) u . e = u . e − ∆ f ( u , v ) v . e = v . e − ∆ f ( u , v ) HK Journalists Gehua Qin, Chenlin Liu, Yihui Qian Push-Relabel Algorithm

  30. Introduction Basic Features Proof of Correctness Basic Idea Analysis of Running time When we cannot push... HK Journalists Gehua Qin, Chenlin Liu, Yihui Qian Push-Relabel Algorithm

  31. Introduction Basic Features Proof of Correctness Basic Idea Analysis of Running time When we cannot push... HK Journalists Gehua Qin, Chenlin Liu, Yihui Qian Push-Relabel Algorithm

  32. Introduction Basic Features Proof of Correctness Basic Idea Analysis of Running time When we can push!!! HK Journalists Gehua Qin, Chenlin Liu, Yihui Qian Push-Relabel Algorithm

  33. Introduction Basic Features Proof of Correctness Basic Idea Analysis of Running time When we can push!!! HK Journalists Gehua Qin, Chenlin Liu, Yihui Qian Push-Relabel Algorithm

  34. Introduction Basic Features Proof of Correctness Basic Idea Analysis of Running time Process HK Journalists Gehua Qin, Chenlin Liu, Yihui Qian Push-Relabel Algorithm

  35. Introduction Basic Features Proof of Correctness Basic Idea Analysis of Running time Process HK Journalists Gehua Qin, Chenlin Liu, Yihui Qian Push-Relabel Algorithm

  36. Introduction Basic Features Proof of Correctness Basic Idea Analysis of Running time Process HK Journalists Gehua Qin, Chenlin Liu, Yihui Qian Push-Relabel Algorithm

  37. Introduction Basic Features Proof of Correctness Basic Idea Analysis of Running time Process HK Journalists Gehua Qin, Chenlin Liu, Yihui Qian Push-Relabel Algorithm

  38. Introduction Basic Features Proof of Correctness Basic Idea Analysis of Running time Process HK Journalists Gehua Qin, Chenlin Liu, Yihui Qian Push-Relabel Algorithm

  39. Introduction Basic Features Proof of Correctness Basic Idea Analysis of Running time Process HK Journalists Gehua Qin, Chenlin Liu, Yihui Qian Push-Relabel Algorithm

  40. Introduction Basic Features Proof of Correctness Basic Idea Analysis of Running time Process HK Journalists Gehua Qin, Chenlin Liu, Yihui Qian Push-Relabel Algorithm

Recommend


More recommend