Local Search Algorithms in Action: Max Cut Partition and Optimization

local search part 1 n.w
1 / 80
Embed
Share

Explore local search algorithms applied to the Max Cut Partition problem, with insights on local changes, local vs. global optimization, and analysis of time and quality parameters for achieving local optima. Learn how to improve cuts iteratively and understand the nuances of obtaining optimal solutions in NP-hard scenarios.

  • Local Search
  • Algorithms
  • Max Cut
  • Optimization
  • Analysis

Uploaded on | 0 Views


Download Presentation

Please find below an Image/Link to download the presentation.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.

You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.

E N D

Presentation Transcript


  1. Local Search (part 1) Haim Kaplan and Uri Zwick Algorithms in Action Tel Aviv University Last updated: March 21 2016 1

  2. An example 2

  3. Max Cut Partition ? = (?,?)into 2 parts ?,? ? such that the number of edges ?,? ,? ?,? ? ? is maximized ? ? = ? ? 3

  4. Few comments This problem is NP-hard, best approximation guarantee is 0.878, NP-hard to get more than 0.91 The analogous problem of finding a minimum cut is easier (how ?) 4

  5. The idea Start with some cut and try to improve it by making local changes Stop when there is no local change that improves the cut 5

  6. Local change ? ? 6

  7. Local change ? ? 7

  8. Local change ? ? 8

  9. Local change ? ? 9

  10. Local change ? ? 10

  11. Local change ? ? 11

  12. Local vs. global OPT When we stop we have a cut that we cannot improve by a local change (local opt) This need not be the largest cut (global opt) 12

  13. Local OPT ? ? B A C D 13

  14. Global OPT ? ? A B C D 14

  15. Analysis There are two main parameters of interest: Time: How long it takes to get to a local optimum ? Quality of the local optimum ? 15

  16. Quality of local opt ? = ? ? ? v Can this be the situation at a local optimum ? 16

  17. Quality of local opt ? = ? ? ? v ? ? ? ?(?) ? ? = #edges incident to v that cross the cut ? ? = #edges incident to v that do not cross the cut 17

  18. Quality of local opt ? = ? ? ? v ? ? ? ? ? ? ?,? ? ?? ?,? ? ? ?,? ? 2 ?,? 2 ?,? 18

  19. Quality of local opt ? = ? ? ? v ? ? ? ? ? ? ?,? ? ?? ?,? ? ? ?,? ? ?,? ?,? ??? 2 |?| ? ?,? ? ?,? 2 19

  20. Steps to local opt ?( ? ) Each step the size of the cut increases by at least one 20

  21. Weighted graphs Partition ? = (?,?)into 2 parts ?,? ? such that the ? ?,? ,? ?,? ? ? is maximized ? ? = ? ? 21

  22. Weighted graphs Works the same: Make a swap if it increases the weight of the cut ??? 2 ? ? ?,? ? 2 ? ?,? ? = ?(?,?) 22

  23. Steps to local opt We construct a example with a long running time The example uses two kinds of vertices 23

  24. Steps to local opt ?2 ? ?3 > ? ?1 + ? ?2 + ? ?4 ? ?3 ?1 ?4 24

  25. Steps to local opt ?2 ? ?3 > ? ?1 + ? ?2 + ? ?4 ? ?3 ?1 ?4 25

  26. Steps to local opt ?2 ? ?3 > ? ?1 + ? ?2 + ? ?4 ? ?3 ?1 ?4 26

  27. Steps to local opt ?2 ? ?3 > ? ?1 + ? ?2 + ? ?4 ? ?3 ?1 ?4 ? ?4 > ? ?2,? ?3 > ? ?1 ?2 ?3 ? ? ?2 + ? ?3 > ? ?1 + ? ?4 ?1 ?4 27

  28. Steps to local opt ?2 ? ?3 > ? ?1 + ? ?2 + ? ?4 ? ?3 ?1 ?4 ? ?4 > ? ?2,? ?3 > ? ?1 ?2 ?3 ? ? ?2 + ? ?3 > ? ?1 + ? ?4 ?1 ?4 28

  29. Steps to local opt ?2 ? ?3 > ? ?1 + ? ?2 + ? ?4 ? ?3 ?1 ?4 ? ?4 > ? ?2,? ?3 > ? ?1 ?2 ?3 ? ? ?2 + ? ?3 > ? ?1 + ? ?4 ?1 ?4 29

  30. Steps to local opt ?2 ? ?3 > ? ?1 + ? ?2 + ? ?4 ? ?3 ?1 ?4 ? ?4 > ? ?2,? ?3 > ? ?1 ?2 ?3 ? ? ?2 + ? ?3 > ? ?1 + ? ?4 ?1 ?4 30

  31. Steps to local opt ?2 ? ?3 > ? ?1 + ? ?2 + ? ?4 ? ?3 ?1 ?4 ? ?4 > ? ?2,? ?3 > ? ?1 ?2 ?3 ? ? ?2 + ? ?3 > ? ?1 + ? ?4 ?1 ?4 31

  32. Steps to local opt 32

  33. Steps to local opt 33

  34. Steps to local opt 34

  35. Steps to local opt 35

  36. Steps to local opt 36

  37. Steps to local opt 37

  38. Steps to local opt 38

  39. Steps to local opt 39

  40. Steps to local opt 40

  41. Steps to local opt 41

  42. Steps to local opt 42

  43. Steps to local opt 43

  44. Steps to local opt 44

  45. Steps to local opt 45

  46. Steps to local opt 46

  47. Steps to local opt ?0 ?1 Moral: 2 flips of ?0caused 4 flips of ?1 47

  48. Steps to local opt ?0 ?1 ?2 48

  49. Steps to local opt ?0 ?1 ?2 49

  50. Steps to local opt ?0 ?1 ?2 50

More Related Content