advanced algorithms viii
play

Advanced Algorithms (VIII) Shanghai Jiao Tong University Chihao - PowerPoint PPT Presentation

Advanced Algorithms (VIII) Shanghai Jiao Tong University Chihao Zhang April 26, 2020 The Probabilistic Method The Probabilistic Method Design a probability space The Probabilistic Method Design a probability space Show that Pr[the object


  1. Advanced Algorithms (VIII) Shanghai Jiao Tong University Chihao Zhang April 26, 2020

  2. The Probabilistic Method

  3. The Probabilistic Method Design a probability space Ω

  4. The Probabilistic Method Design a probability space Ω Show that Pr[the object exists] > 0

  5. The Probabilistic Method Design a probability space Ω Show that Pr[the object exists] > 0 Bad events , each happens w.p. A 1 , A 2 , …, A m p i

  6. The Probabilistic Method Design a probability space Ω Show that Pr[the object exists] > 0 Bad events , each happens w.p. A 1 , A 2 , …, A m p i Pr[ ¯ A 1 ∧ ¯ A 2 … ∧ ¯ Is ? A m ] > 0

  7. We can apply the union bound

  8. We can apply the union bound ≥ 1 − ∑ ⋃ ⋂ ¯ = 1 − Pr Pr A i A i p i i ∈ [ m ] i ∈ [ m ] i ∈ [ m ]

  9. We can apply the union bound ≥ 1 − ∑ ⋃ ⋂ ¯ = 1 − Pr Pr A i A i p i i ∈ [ m ] i ∈ [ m ] i ∈ [ m ] ⋂ ∑ ¯ So if Pr A i > 0 p i < 1 i ∈ [ m ] i ∈ [ m ]

  10. We can apply the union bound ≥ 1 − ∑ ⋃ ⋂ ¯ = 1 − Pr Pr A i A i p i i ∈ [ m ] i ∈ [ m ] i ∈ [ m ] ⋂ ∑ ¯ So if Pr A i > 0 p i < 1 i ∈ [ m ] i ∈ [ m ] The union bound is tight when bad events are disjoint

  11. On the other hand, if the bad events are mutually independent…

  12. On the other hand, if the bad events are mutually independent… = ∏ ⋂ ¯ Pr A i (1 − p i ) i ∈ [ m ] i ∈ [ m ]

  13. On the other hand, if the bad events are mutually independent… = ∏ ⋂ ¯ Pr A i (1 − p i ) i ∈ [ m ] i ∈ [ m ] ⋂ ¯ So as long as none of Pr A i > 0 p i = 1 i ∈ [ m ]

  14. On the other hand, if the bad events are mutually independent… = ∏ ⋂ ¯ Pr A i (1 − p i ) i ∈ [ m ] i ∈ [ m ] ⋂ ¯ So as long as none of Pr A i > 0 p i = 1 i ∈ [ m ] The two cases correspond to two extremes of the dependency

  15. Lovász Local Lemma

  16. Lovász Local Lemma The Lovász local lemma (LLL) captures partial dependency between bad events

  17. Lovász Local Lemma The Lovász local lemma (LLL) captures partial dependency between bad events Erd ő s and Lovász, Infinite and Finite Sets , 1975

  18. The Dependency Graph

  19. The Dependency Graph We describe the dependency of bad events in a graph

  20. The Dependency Graph We describe the dependency of bad events in a graph A 2 A 1 A 4 A 3

  21. The Dependency Graph We describe the dependency of bad events in a graph V = { A 1 , …, A n } A 2 A 1 A 4 A 3

  22. The Dependency Graph We describe the dependency of bad events in a graph V = { A 1 , …, A n } A 2 A 1 N ( A i ) = { A j ∣ A i ∼ A j } A 4 A 3

  23. The Dependency Graph We describe the dependency of bad events in a graph V = { A 1 , …, A n } A 2 A 1 N ( A i ) = { A j ∣ A i ∼ A j } A 4 A 3 Δ = max i ∈ [ m ] | N ( A i ) |

  24. The Dependency Graph We describe the dependency of bad events in a graph V = { A 1 , …, A n } A 2 A 1 N ( A i ) = { A j ∣ A i ∼ A j } A 4 A 3 Δ = max i ∈ [ m ] | N ( A i ) | 4 Δ p ≤ 1 A i ⊥ { A j } j ∉ N ( A i ) Pr[ A i ] ≤ p

  25. The Dependency Graph We describe the dependency of bad events in a graph V = { A 1 , …, A n } A 2 A 1 N ( A i ) = { A j ∣ A i ∼ A j } A 4 A 3 Δ = max i ∈ [ m ] | N ( A i ) | 4 Δ p ≤ 1 ⟹ A i ⊥ { A j } j ∉ N ( A i ) Pr[ A i ] ≤ p

  26. The Dependency Graph We describe the dependency of bad events in a graph V = { A 1 , …, A n } A 2 A 1 N ( A i ) = { A j ∣ A i ∼ A j } A 4 A 3 Δ = max i ∈ [ m ] | N ( A i ) | 4 Δ p ≤ 1 ⋂ ¯ Pr A i > 0 ⟹ A i ⊥ { A j } j ∉ N ( A i ) i ∈ [ m ] Pr[ A i ] ≤ p

  27. Proof of (Symmetric) LLL

  28. For , we prove by induction on that S ⊆ [ m ] | S |

  29. For , we prove by induction on that S ⊆ [ m ] | S | A i ∣ ⋂ ¯ ∀ i ∉ S , Pr A j ≤ 2 p j ∈ S

  30. For , we prove by induction on that S ⊆ [ m ] | S | A i ∣ ⋂ ¯ ∀ i ∉ S , Pr A j ≤ 2 p j ∈ S Assume and the statement holds for | S | = s smaller S

  31. For , we prove by induction on that S ⊆ [ m ] | S | A i ∣ ⋂ ¯ ∀ i ∉ S , Pr A j ≤ 2 p j ∈ S Assume and the statement holds for | S | = s smaller S For every , we use to denote the event T ⊆ [ m ] F T ⋂ ¯ A i i ∈ T

  32. T ∈ ( ≤ s ) [ m ] It is clear that for every , Pr[ F T ] ≥ (1 − 2 p ) s > 0

  33. T ∈ ( ≤ s ) [ m ] It is clear that for every , Pr[ F T ] ≥ (1 − 2 p ) s > 0 We partition into where S = S 1 ∪ S 2 S 1 = { j ∣ j ∼ i } S

  34. T ∈ ( ≤ s ) [ m ] It is clear that for every , Pr[ F T ] ≥ (1 − 2 p ) s > 0 We partition into where S = S 1 ∪ S 2 S 1 = { j ∣ j ∼ i } S If , then | S 2 | = s Pr[ A i ∣ S ] = Pr[ A i ∣ S 2 ] ≤ p

  35. T ∈ ( ≤ s ) [ m ] It is clear that for every , Pr[ F T ] ≥ (1 − 2 p ) s > 0 We partition into where S = S 1 ∪ S 2 S 1 = { j ∣ j ∼ i } S If , then | S 2 | = s Pr[ A i ∣ S ] = Pr[ A i ∣ S 2 ] ≤ p Otherwise, Pr[ A i ∩ F S 1 ∩ F S 2 ] Pr[ A i ∣ F S ] = Pr[ A i ∣ F S 1 ∩ F S 2 ] = Pr[ F S 1 ∩ F S 2 ]

  36. Pr[ A i ∩ F S 1 ∩ F S 2 ] Pr[ A i ∩ F S 1 ∣ F S 2 ] Pr[ A i ∣ F S ] = = Pr[ F S 1 ∩ F S 2 ] Pr[ F S 1 ∣ F S 2 ]

  37. Pr[ A i ∩ F S 1 ∩ F S 2 ] Pr[ A i ∩ F S 1 ∣ F S 2 ] Pr[ A i ∣ F S ] = = Pr[ F S 1 ∩ F S 2 ] Pr[ F S 1 ∣ F S 2 ] Pr[ A i ∩ F S 1 ∣ F S 2 ] ≤ Pr[ A i ∣ F S 2 ] ≤ p

  38. Pr[ A i ∩ F S 1 ∩ F S 2 ] Pr[ A i ∩ F S 1 ∣ F S 2 ] Pr[ A i ∣ F S ] = = Pr[ F S 1 ∩ F S 2 ] Pr[ F S 1 ∣ F S 2 ] Pr[ A i ∩ F S 1 ∣ F S 2 ] ≤ Pr[ A i ∣ F S 2 ] ≤ p ≥ 1 − 2 dp ≥ 1 ⋃ Pr[ F S 1 ∣ F S 2 ] = 1 − Pr A j ∣ F S 2 2 j ∈ S 1

  39. Pr[ A i ∩ F S 1 ∩ F S 2 ] Pr[ A i ∩ F S 1 ∣ F S 2 ] Pr[ A i ∣ F S ] = = Pr[ F S 1 ∩ F S 2 ] Pr[ F S 1 ∣ F S 2 ] Pr[ A i ∩ F S 1 ∣ F S 2 ] ≤ Pr[ A i ∣ F S 2 ] ≤ p } ≥ 1 − 2 dp ≥ 1 ⋃ Pr[ F S 1 ∣ F S 2 ] = 1 − Pr A j ∣ F S 2 2 j ∈ S 1

  40. Pr[ A i ∩ F S 1 ∩ F S 2 ] Pr[ A i ∩ F S 1 ∣ F S 2 ] Pr[ A i ∣ F S ] = = Pr[ F S 1 ∩ F S 2 ] Pr[ F S 1 ∣ F S 2 ] Pr[ A i ∩ F S 1 ∣ F S 2 ] ≤ Pr[ A i ∣ F S 2 ] ≤ p } ≥ 1 − 2 dp ≥ 1 ⋃ Pr[ F S 1 ∣ F S 2 ] = 1 − Pr A j ∣ F S 2 2 j ∈ S 1 ⟹

  41. Pr[ A i ∩ F S 1 ∩ F S 2 ] Pr[ A i ∩ F S 1 ∣ F S 2 ] Pr[ A i ∣ F S ] = = Pr[ F S 1 ∩ F S 2 ] Pr[ F S 1 ∣ F S 2 ] Pr[ A i ∩ F S 1 ∣ F S 2 ] ≤ Pr[ A i ∣ F S 2 ] ≤ p } ≥ 1 − 2 dp ≥ 1 ⋃ Pr[ F S 1 ∣ F S 2 ] = 1 − Pr A j ∣ F S 2 2 j ∈ S 1 ⟹ Pr[ A i ∣ F S ] ≤ 2 p

  42. Applications of LLL

  43. Edge-Disjoint Paths

  44. Edge-Disjoint Paths pairs of users, each has a collection of paths n m F i connecting them

  45. Edge-Disjoint Paths pairs of users, each has a collection of paths n m F i connecting them Each path in shares edges with no more F i than paths in for any j ≠ i k F j

  46. Edge-Disjoint Paths pairs of users, each has a collection of paths n m F i connecting them Each path in shares edges with no more F i than paths in for any j ≠ i k F j If , then there is a way to choose 8 nk ≤ m edge-disjoint paths connecting pairs n n

  47. Define the probability space as

  48. Define the probability space as “Each pair of users chooses a path from its collection uniformly at random”

  49. Define the probability space as “Each pair of users chooses a path from its collection uniformly at random” For every , define the bad event as i ≠ j E ij

  50. Define the probability space as “Each pair of users chooses a path from its collection uniformly at random” For every , define the bad event as i ≠ j E ij “the path chosen in overlaps with the path F i chosen in ” F j

  51. Define the probability space as “Each pair of users chooses a path from its collection uniformly at random” For every , define the bad event as i ≠ j E ij “the path chosen in overlaps with the path F i chosen in ” F j ⋂ ¯ So we only need to show Pr E ij > 0 { i , j } ∈ ( n 2 )

  52. { i , j } ∈ ( 2 ) n Pr[ E ij ] ≤ k For each , we have m

  53. { i , j } ∈ ( 2 ) n Pr[ E ij ] ≤ k For each , we have m and are dependent only when E ij E i ′ j ′ { i , j } ∩ { i ′ , j ′ } ≠ ∅

  54. { i , j } ∈ ( 2 ) n Pr[ E ij ] ≤ k For each , we have m and are dependent only when E ij E i ′ j ′ { i , j } ∩ { i ′ , j ′ } ≠ ∅ So the maximum degree of the dependency graph is at most 2 n

  55. { i , j } ∈ ( 2 ) n Pr[ E ij ] ≤ k For each , we have m and are dependent only when E ij E i ′ j ′ { i , j } ∩ { i ′ , j ′ } ≠ ∅ So the maximum degree of the dependency graph is at most 2 n

  56. { i , j } ∈ ( 2 ) n Pr[ E ij ] ≤ k For each , we have m and are dependent only when E ij E i ′ j ′ { i , j } ∩ { i ′ , j ′ } ≠ ∅ So the maximum degree of the dependency graph is at most 2 n The LLL condition is then 8 nk ≤ m

  57. Satisfiability

  58. Satisfiability Recall that -SAT problem is -hard for k NP k ≥ 3

  59. Satisfiability Recall that -SAT problem is -hard for k NP k ≥ 3 On the other hand, if the formula is sparse, then it is always satisfiable

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend