1 / 145

Discrete Optimization Lecture 4 – Part 1

Discrete Optimization Lecture 4 – Part 1. M. Pawan Kumar pawan.kumar@ecp.fr. Slides available online http:// mpawankumar.info. €1000. Steal at most 2 items. €400. €1000. €700. Greedy Algorithm. Steal at most 1 item. €400. €1000. €1700. €700. Greedy Algorithm. Steal at most 0 items.

richb
Download Presentation

Discrete Optimization Lecture 4 – Part 1

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Discrete OptimizationLecture 4 – Part 1 M. Pawan Kumar pawan.kumar@ecp.fr Slides available online http://mpawankumar.info

  2. €1000 Steal at most 2 items €400 €1000 €700 Greedy Algorithm

  3. Steal at most 1 item €400 €1000 €1700 €700 Greedy Algorithm

  4. Steal at most 0 items €400 €1700 Greedy Algorithm Success

  5. €1000 Steal at most 2.5 kg 2 kg €400 €1000 1 kg 2 kg €700 Greedy Algorithm (Most Expensive) 1.5 kg

  6. Steal at most 0.5 kg €400 €1000 1 kg 2 kg €700 Greedy Algorithm (Most Expensive) 1.5 kg Failure

  7. €1000 Steal at most 2.5 kg 2 kg €400 €1000 1 kg 2 kg €700 Greedy Algorithm (Best Ratio) 1.5 kg

  8. Steal at most 0.5 kg €400 Why? €1000 1 kg 2 kg €700 Greedy Algorithm (Best Ratio) 1.5 kg Failure

  9. Outline • Matroids • Examples of Matroids • Dual Matroid

  10. Subset System Set S Non-empty collection of subsets I Property: If X  I and Y⊆X, then Y  I (S, I) is a subset system

  11. Hereditary Property Set S Non-empty collection of subsets I Property: If X  I and Y⊆X, then Y  I (S, I) is a subset system

  12. Example Set S = {1,2,…,m} I = Set of all X ⊆ S such that |X| ≤ k Is (S, I) a subset system? Yes

  13. Example Set S = {1,2,…,m}, w ≥ 0 I = Set of all X ⊆ S such that ΣsX w(s) ≤ W Is (S, I) a subset system Yes Not true if w can be negative

  14. Matroid Subset system (S, I) Property: If X, Y  I and |X| < |Y| then there exists a s  Y\X such that X∪{s}  I M = (S, I) is a matroid

  15. Augmentation/Exchange Property Subset system (S,I) Property: If X, Y  I and |X| < |Y| then there exists a s  Y\X such that X∪{s}  I M = (S, I) is a matroid

  16. Example Set S = {1,2,…,m} I = Set of all X ⊆ S such that |X| ≤ k Is M = (S,I) a matroid? Yes Uniform matroid

  17. Example Set S = {1,2,…,m}, w ≥ 0 I = Set of all X ⊆ S such that ΣsX w(s) ≤ W Is M = (S,I) a matroid? No Coincidence? No

  18. Matroids (S, I) is a matroid ⟹ (S, I) admits an optimal greedy algorithm

  19. Matroids (S, I) is a matroid ⟹ (S, I) admits an optimal greedy algorithm Why? We will find out by the end of the lecture

  20. Outline • Matroids • Connection to Linear Algebra • Connection to Graph Theory • Examples of Matroids • Dual Matroid

  21. 1 2 1 2 2 2 2 2 1 2 1 2 2 4 2 4 1 2 3 4 2 4 6 8 3 3 3 3 2 4 2 4 1 1 1 1 Matrix A Subset of columns {a1,a2,…,ak} ✗ Linearly independent (LI)? There exists no α ≠ 0 such that Σi αiai = 0

  22. 1 2 1 2 2 2 2 2 1 2 1 2 2 4 2 4 1 2 3 4 2 4 6 8 3 3 3 3 2 4 2 4 1 1 1 1 Matrix A Subset of columns {a1,a2,…,ak} ✓ Linearly independent (LI)? There exists no α ≠ 0 such that Σi αiai = 0

  23. 1 2 1 2 2 2 2 2 1 2 1 2 2 4 2 4 1 2 3 4 2 4 6 8 3 3 3 3 2 4 2 4 1 1 1 1 Matrix A Subset of columns {a1,a2,…,ak} ✓ Linearly independent (LI)? There exists no α ≠ 0 such that Σi αiai = 0

  24. 1 2 1 2 2 2 2 2 1 2 1 2 2 4 2 4 1 2 3 4 2 4 6 8 3 3 3 3 2 4 2 4 1 1 1 1 Matrix A Subset of columns {a1,a2,…,ak} ✓ Linearly independent (LI)? There exists no α ≠ 0 such that Σi αiai = 0

  25. 1 2 1 2 2 2 2 2 1 2 1 2 2 4 2 4 1 2 3 4 2 4 6 8 3 3 3 3 2 4 2 4 1 1 1 1 Matrix A Subset of columns {a1,a2,…,ak} Subset of LI columns are LI Define a subset system

  26. Subset System Matrix A of size n x m, S = {1,2,…,m} X ⊆ S, A(X) = set of columns of A indexed by X X  I if and only if A(X) are linearly independent Is M = (S,I) a matroid?

  27. Answer Yes Linear Matroid Matroids connected to Linear Algebra Inspires some naming conventions

  28. Independent Set Matroid M = (S, I) X ⊆ S is independent if X  I X ⊆ S is dependent if X ∉ I

  29. Independent Sets of Linear Matroid Matrix A of size n x m, S = {1,2,…,m} X ⊆ S, A(X) = set of columns of A indexed by X X ⊆ S is independent if column vectors A(X) are linearly independent

  30. Independent Sets of Uniform Matroid S = {1,2,…,m} X ⊆ S X ⊆ S is independent if |X| ≤ k

  31. Base of a Subset Matroid M = (S, I) X is a base of U ⊆S if it satisfies three properties (i) X ⊆ U (ii) X ∈ I (iii) There exists no U’∈I, such that X ⊂ U’ ⊆ U Inclusionwise maximal independent subset of U

  32. Base of a Subset (Linear Matroid) 1 2 1 2 2 2 2 2 1 2 1 2 2 4 2 4 1 2 3 4 2 4 6 8 3 3 3 3 2 4 2 4 1 1 1 1 U ✗ Is X a base of U?

  33. Base of a Subset (Linear Matroid) 1 2 1 2 2 2 2 2 1 2 1 2 2 4 2 4 1 2 3 4 2 4 6 8 3 3 3 3 2 4 2 4 1 1 1 1 U ✗ Is X a base of U?

  34. Base of a Subset (Linear Matroid) 1 2 1 2 2 2 2 2 1 2 1 2 2 4 2 4 1 2 3 4 2 4 6 8 3 3 3 3 2 4 2 4 1 1 1 1 U ✓ Is X a base of U?

  35. Base of a Subset (Linear Matroid) 1 2 1 2 2 2 2 2 1 2 1 2 2 4 2 4 1 2 3 4 2 4 6 8 3 3 3 3 2 4 2 4 1 1 1 1 U ✗ Is X a base of U?

  36. Base of a Subset (Linear Matroid) 1 2 1 2 2 2 2 2 1 2 1 2 2 4 2 4 1 2 3 4 2 4 6 8 3 3 3 3 2 4 2 4 1 1 1 1 U ✓ Is X a base of U?

  37. Base of a Subset (Linear Matroid) 1 2 1 2 2 2 2 2 1 2 1 2 2 4 2 4 1 2 3 4 2 4 6 8 3 3 3 3 2 4 2 4 1 1 1 1 U ✓ Is X a base of U?

  38. Base of a Subset (Linear Matroid) 1 2 1 2 2 2 2 2 1 2 1 2 2 4 2 4 1 2 3 4 2 4 6 8 3 3 3 3 2 4 2 4 1 1 1 1 U Base of U?

  39. Base of a Subset (Linear Matroid) Matrix A of size n x m, S = {1,2,…,m} X ⊆ S, A(X) = set of columns of A indexed by X X  I if and only if A(X) are linearly independent X ⊆ S is base of U if A(X) is a base of A(U)

  40. Base of a Subset (Uniform Matroid) S = {1,2,…,m} X ⊆ S I = Set of all X ⊆ S such that |X| ≤ k X ⊆ S is base of U if X ⊆ U and |X| = min{|U|,k}

  41. An Interesting Property M = (S, I) is a subset system M is a matroid ⟹ For all U ⊆ S, all bases of U have same size Proof?

  42. An Interesting Property M = (S, I) is a subset system M is a matroid ⟹ For all U ⊆ S, all bases of U have same size Proof?

  43. An Interesting Property M = (S, I) is a subset system M is a matroid ⟺ For all U ⊆ S, all bases of U have same size An alternate definition for matroids

  44. Rank of a Subset Matroid M = (S, I) U ⊆S rM(U) = Size of a base of U

  45. Rank of a Subset (Linear Matroid) 1 2 1 2 2 2 2 2 1 2 1 2 2 4 2 4 1 2 3 4 2 4 6 8 3 3 3 3 2 4 2 4 1 1 1 1 U 2 rM(U)?

  46. Rank of a Subset (Linear Matroid) 1 2 1 2 2 2 2 2 1 2 1 2 2 4 2 4 1 2 3 4 2 4 6 8 3 3 3 3 2 4 2 4 1 1 1 1 U 1 rM(U)?

  47. Rank of a Subset (Linear Matroid) Matrix A of size n x m, S = {1,2,…,m} X ⊆ S, A(X) = set of columns of A indexed by X X  I if and only if A(X) are linearly independent rM(U) is equal to rank of the matrix with columns A(U)

  48. Rank of a Subset (Uniform Matroid) S = {1,2,…,m} X ⊆ S I = Set of all X ⊆ S such that |X| ≤ k rM(U) is equal to min{|U|,k}

  49. Base of a Matroid Matroid M = (S, I) X is a base S

  50. Base of a Linear Matroid 1 2 1 2 2 2 2 2 1 2 1 2 2 4 2 4 1 2 3 4 2 4 6 8 3 3 3 3 2 4 2 4 1 1 1 1 ✗ Is X a base?

More Related