An Introduction to Matroids & Greedy in Approximation Algorithms

Size: px
Start display at page:

Download "An Introduction to Matroids & Greedy in Approximation Algorithms"

Transcription

1 An Introduction to Matroids & Greedy in Approximation Algorithms (Juliàn Mestre, ESA 2006) CoReLab Monday seminar presentation: Evangelos Bampas 1/21

2 Subset systems CoReLab Monday seminar presentation: Evangelos Bampas 2/21

3 Subset systems Let E be a finite set. Let L be a non-empty family of subsets of E (independent sets). CoReLab Monday seminar presentation: Evangelos Bampas 2/21

4 Subset systems Let E be a finite set. Let L be a non-empty family of subsets of E (independent sets). Def. (E, L) is called a subset system if: A L, A A, A L [hereditary property] CoReLab Monday seminar presentation: Evangelos Bampas 2/21

5 Subset systems Let E be a finite set. Let L be a non-empty family of subsets of E (independent sets). Def. (E, L) is called a subset system if: A L, A A, A L [hereditary property] A (positive) weight function w defined on E induces a weight function defined on L: w (X) = e X w (e) CoReLab Monday seminar presentation: Evangelos Bampas 2/21

6 Picking a heaviest independent set Prob. Given a subset system (E, L) and a weight function w : E R +, pick a maximum-weight element of L. CoReLab Monday seminar presentation: Evangelos Bampas 3/21

7 Picking a heaviest independent set Prob. Given a subset system (E, L) and a weight function w : E R +, pick a maximum-weight element of L. Alg. Greedy: SOL for each e E in non-increasing order of w (e) if SOL + e L then SOL SOL + e return SOL CoReLab Monday seminar presentation: Evangelos Bampas 3/21

8 Picking a heaviest independent set Prob. Given a subset system (E, L) and a weight function w : E R +, pick a maximum-weight element of L. Alg. Greedy: SOL for each e E in non-increasing order of w (e) if SOL + e L then SOL SOL + e return SOL Thm. Greedy is optimal for any weight function on (E, L) iff (E, L) is a matroid. (Rado-Edmonds) CoReLab Monday seminar presentation: Evangelos Bampas 3/21

9 What on earth is a matroid? Def. A subset system (E, L) is a matroid if: A L, B L with A < B, z B \ A such that A + z L [augmentation property] CoReLab Monday seminar presentation: Evangelos Bampas 4/21

10 What on earth is a matroid? Def. A subset system (E, L) is a matroid if: A L, B L with A < B, z B \ A such that A + z L [augmentation property] A CoReLab Monday seminar presentation: Evangelos Bampas 4/21

11 What on earth is a matroid? Def. A subset system (E, L) is a matroid if: A L, B L with A < B, z B \ A such that A + z L [augmentation property] A B : A < B CoReLab Monday seminar presentation: Evangelos Bampas 4/21

12 What on earth is a matroid? Def. A subset system (E, L) is a matroid if: A L, B L with A < B, z B \ A such that A + z L [augmentation property] A z: A+z B : A < B CoReLab Monday seminar presentation: Evangelos Bampas 4/21

13 Matroid examples Ex. 1 Subsets of at most k elements. k N. E: finite set. L = {X E : X k}. CoReLab Monday seminar presentation: Evangelos Bampas 5/21

14 Matroid examples Ex. 1 Subsets of at most k elements. k N. E: finite set. L = {X E : X k}. non-empty: k L CoReLab Monday seminar presentation: Evangelos Bampas 5/21

15 Matroid examples Ex. 1 Subsets of at most k elements. k N. E: finite set. L = {X E : X k}. hereditary: if A L and A A, then: A A k A L CoReLab Monday seminar presentation: Evangelos Bampas 5/21

16 Matroid examples Ex. 1 Subsets of at most k elements. k N. E: finite set. L = {X E : X k}. augmentation: if A < B, then for arbitrary z B \ A: A + z = A + 1 B k thus, A + z L CoReLab Monday seminar presentation: Evangelos Bampas 5/21

17 Matroid examples Ex. 1 Subsets of at most k elements. k N. E: finite set. L = {X E : X k}. Cor. We can find a heaviest subset of k elements using the Greedy algorithm. CoReLab Monday seminar presentation: Evangelos Bampas 5/21

18 Matroid examples (cont d) Ex. 2 Column matroids. A: matrix with elements from a field. E = { x : x is a column of A}. L = {X E : X is linearly independent}. CoReLab Monday seminar presentation: Evangelos Bampas 6/21

19 Matroid examples (cont d) Ex. 2 Column matroids. A: matrix with elements from a field. E = { x : x is a column of A}. L = {X E : X is linearly independent}. non-empty: the empty set is vacuously linearly independent CoReLab Monday seminar presentation: Evangelos Bampas 6/21

20 Matroid examples (cont d) Ex. 2 Column matroids. A: matrix with elements from a field. E = { x : x is a column of A}. L = {X E : X is linearly independent}. hereditary: linear dependency cannot be introduced by removing vectors CoReLab Monday seminar presentation: Evangelos Bampas 6/21

21 Matroid examples (cont d) Ex. 2 Column matroids. A: matrix with elements from a field. E = { x : x is a column of A}. L = {X E : X is linearly independent}. augmentation: if z B \ A, A + z L, then each vector of B is linearly dependent on the vectors of A which implies B A CoReLab Monday seminar presentation: Evangelos Bampas 6/21

22 Matroid examples (cont d) Ex. 2 Column matroids. A: matrix with elements from a field. E = { x : x is a column of A}. L = {X E : X is linearly independent}. Cor. We can find a heaviest base among the vectors of A using the Greedy algorithm. CoReLab Monday seminar presentation: Evangelos Bampas 6/21

23 Matroid examples (cont d) Ex. 3 Cycle/Graphic matroids. G = (V, E): undirected graph. E = edge set of G. L = {X E : G X = (V, X) is a forest}. CoReLab Monday seminar presentation: Evangelos Bampas 7/21

24 Matroid examples (cont d) Ex. 3 Cycle/Graphic matroids. G = (V, E): undirected graph. E = edge set of G. L = {X E : G X = (V, X) is a forest}. non-empty: G = (V, ) is a forest CoReLab Monday seminar presentation: Evangelos Bampas 7/21

25 Matroid examples (cont d) Ex. 3 Cycle/Graphic matroids. G = (V, E): undirected graph. E = edge set of G. L = {X E : G X = (V, X) is a forest}. hereditary: any subset of a forest is a forest CoReLab Monday seminar presentation: Evangelos Bampas 7/21

26 Matroid examples (cont d) Ex. 3 Cycle/Graphic matroids. G = (V, E): undirected graph. E = edge set of G. L = {X E : G X = (V, X) is a forest}. augmentation: if A < B, then #trees in G A > #trees in G B CoReLab Monday seminar presentation: Evangelos Bampas 7/21

27 Matroid examples (cont d) Ex. 3 Cycle/Graphic matroids. G = (V, E): undirected graph. E = edge set of G. L = {X E : G X = (V, X) is a forest}. augmentation: G B u v CoReLab Monday seminar presentation: Evangelos Bampas 7/21

28 Matroid examples (cont d) Ex. 3 Cycle/Graphic matroids. G = (V, E): undirected graph. E = edge set of G. L = {X E : G X = (V, X) is a forest}. augmentation: G B u G A v u v CoReLab Monday seminar presentation: Evangelos Bampas 7/21

29 Matroid examples (cont d) Ex. 3 Cycle/Graphic matroids. G = (V, E): undirected graph. E = edge set of G. L = {X E : G X = (V, X) is a forest}. augmentation: G B u G A +(u,v) v u v CoReLab Monday seminar presentation: Evangelos Bampas 7/21

30 Matroid examples (cont d) Ex. 3 Cycle/Graphic matroids. G = (V, E): undirected graph. E = edge set of G. L = {X E : G X = (V, X) is a forest}. Cor. We can find a heaviest spanning tree of G using the Greedy algorithm. CoReLab Monday seminar presentation: Evangelos Bampas 7/21

31 k-extendible systems Def. A subset system (E, L) is k-extendible if: C L, x C with C + x L, D extension of C, Y D \ C such that Y k and D \ Y + x L CoReLab Monday seminar presentation: Evangelos Bampas 8/21

32 k-extendible systems Def. A subset system (E, L) is k-extendible if: C CoReLab Monday seminar presentation: Evangelos Bampas 8/21

33 k-extendible systems Def. A subset system (E, L) is k-extendible if: C x: C+x CoReLab Monday seminar presentation: Evangelos Bampas 8/21

34 k-extendible systems Def. A subset system (E, L) is k-extendible if: D C x: C+x CoReLab Monday seminar presentation: Evangelos Bampas 8/21

35 k-extendible systems Def. A subset system (E, L) is k-extendible if: D C Y x: C+x CoReLab Monday seminar presentation: Evangelos Bampas 8/21

36 k-extendible systems Def. A subset system (E, L) is k-extendible if: D C Y Y k x: C+x CoReLab Monday seminar presentation: Evangelos Bampas 8/21

37 k-extendible systems Def. A subset system (E, L) is k-extendible if: D C Y x: C+x Y k D\Y+x CoReLab Monday seminar presentation: Evangelos Bampas 8/21

38 Matroids 1-extendible systems Thm. (E, L) is a matroid iff (E, L) is 1-extendible. A z: A+z B : A < B D C Y x: C+x Y 1 D\Y+x CoReLab Monday seminar presentation: Evangelos Bampas 9/21

39 Matroids 1-extendible systems C D x: C+x CoReLab Monday seminar presentation: Evangelos Bampas 10/21

40 Matroids 1-extendible systems C D x: C+x If C + x = D, then D \ C = 1. CoReLab Monday seminar presentation: Evangelos Bampas 10/21

41 Matroids 1-extendible systems C Y D x: C+x D \ Y + x L. CoReLab Monday seminar presentation: Evangelos Bampas 10/21

42 Matroids 1-extendible systems C D z 0 x: C+x Applying the augmentation property, z 0 D \ C such that C + z 0 + x L. CoReLab Monday seminar presentation: Evangelos Bampas 10/21

43 Matroids 1-extendible systems C D z 0 z 1 Y z x: C+x Finally, we get a sequence z 0,..., z ρ such that C + z i + x L and D \ (C + z i ) = 1. CoReLab Monday seminar presentation: Evangelos Bampas 10/21

44 Matroids 1-extendible systems A B : A < B CoReLab Monday seminar presentation: Evangelos Bampas 11/21

45 Matroids 1-extendible systems A B : A < B x 0 Pick any x 0 A \ B. CoReLab Monday seminar presentation: Evangelos Bampas 11/21

46 Matroids 1-extendible systems A B : A < B x 0 Y 0 By 1-extendibility, Y 0 B \ A with Y 0 1 such that B \ Y 0 + x 0 L. CoReLab Monday seminar presentation: Evangelos Bampas 11/21

47 Matroids 1-extendible systems A x B : A < B Y x 0 Y 0 Keep picking x i s in A \ B until there are no more. Then B \ Y i + x i L. CoReLab Monday seminar presentation: Evangelos Bampas 11/21

48 Matroids 1-extendible systems A x B : A < B Y x 0 z Y 0 Moreover, A B \ Y i + x i, which implies A + z L for arbitrary z B \ Y i. CoReLab Monday seminar presentation: Evangelos Bampas 11/21

49 Greedy on k-extendible systems Thm. If (E, L) is k-extendible then Greedy obtains a 1 k-approximate solution for any weight function on (E, L). CoReLab Monday seminar presentation: Evangelos Bampas 12/21

50 Greedy on k-extendible systems Thm. If (E, L) is k-extendible then Greedy obtains a 1 k-approximate solution for any weight function on (E, L). Proof. x 1, x 2,..., x ρ : successive choices of Greedy = S 0, S 1, S 2,..., S ρ = SOL: successive partial solutions with S i = S i 1 + x i, i : 1 i ρ CoReLab Monday seminar presentation: Evangelos Bampas 12/21

51 Obtaining the approximation ratio Lemma For each i : 1 i ρ, w (OPT (S i 1 )) w (OPT (S i ))+(k 1) w (x i ) CoReLab Monday seminar presentation: Evangelos Bampas 13/21

52 Obtaining the approximation ratio Lemma For each i : 1 i ρ, w (OPT (S i 1 )) w (OPT (S i ))+(k 1) w (x i ) Apply lemma ρ times: OPT = w (OPT (S 0 )) w (OPT (S ρ )) + (k 1) w (S ρ ) = k SOL CoReLab Monday seminar presentation: Evangelos Bampas 13/21

53 Proof of lemma Lemma For each i : 1 i ρ, w (OPT (S i 1 )) w (OPT (S i ))+(k 1) w (x i ) CoReLab Monday seminar presentation: Evangelos Bampas 14/21

54 Proof of lemma Lemma For each i : 1 i ρ, w (OPT (S i 1 )) w (OPT (S i ))+(k 1) w (x i ) OPT(S i-1 ) S i-1 Y x i : S i-1 +x i =S i Y k OPT(S i-1 )\Y+x i CoReLab Monday seminar presentation: Evangelos Bampas 14/21

55 Proof of lemma Lemma For each i : 1 i ρ, w (OPT (S i 1 )) w (OPT (S i ))+(k 1) w (x i ) OPT(S i-1 ) S i-1 Y x i : S i-1 +x i =S i Y k OPT(S i-1 )\Y+x i w (OPT (S i 1 )) = w (OPT (S i 1 ) \ Y + x i ) + w (Y ) w (x i ) CoReLab Monday seminar presentation: Evangelos Bampas 14/21

56 Proof of lemma Lemma For each i : 1 i ρ, w (OPT (S i 1 )) w (OPT (S i ))+(k 1) w (x i ) OPT(S i-1 ) S i-1 Y x i : S i-1 +x i =S i Y k OPT(S i-1 )\Y+x i w (OPT (S i 1 )) w (OPT (S i ))+w (Y ) w (x i ) CoReLab Monday seminar presentation: Evangelos Bampas 14/21

57 Proof of lemma Lemma For each i : 1 i ρ, w (OPT (S i 1 )) w (OPT (S i ))+(k 1) w (x i ) OPT(S i-1 ) S i-1 Y x i : S i-1 +x i =S i Y k OPT(S i-1 )\Y+x i y Y j i 1, S j + y OPT (S i 1 ) j i 1, S j + y L w (y) w (x i ) CoReLab Monday seminar presentation: Evangelos Bampas 14/21

58 Example of a 2-extendible system Maximum-weight b-matching. G = (V, E): undirected graph, b : V N, w : E R. E: edge set of G. L = {M E : u V, deg M (u) b (u)}. CoReLab Monday seminar presentation: Evangelos Bampas 15/21

59 Example of a 2-extendible system Maximum-weight b-matching. G = (V, E): undirected graph, b : V N, w : E R. E: edge set of G. L = {M E : u V, deg M (u) b (u)}. non-empty: u V, deg (u) = 0 b (u) CoReLab Monday seminar presentation: Evangelos Bampas 15/21

60 Example of a 2-extendible system Maximum-weight b-matching. G = (V, E): undirected graph, b : V N, w : E R. E: edge set of G. L = {M E : u V, deg M (u) b (u)}. hereditary: if M L and M M, then for any u V : deg M (u) deg M (u) b (u) CoReLab Monday seminar presentation: Evangelos Bampas 15/21

61 Example of a 2-extendible system Maximum-weight b-matching. G = (V, E): undirected graph, b : V N, w : E R. E: edge set of G. L = {M E : u V, deg M (u) b (u)}. 2-extendible: CoReLab Monday seminar presentation: Evangelos Bampas 15/21

62 Example of a 2-extendible system Maximum-weight b-matching. G = (V, E): undirected graph, b : V N, w : E R. E: edge set of G. L = {M E : u V, deg M (u) b (u)}. 2-extendible: CoReLab Monday seminar presentation: Evangelos Bampas 15/21

63 Example of a 2-extendible system Maximum-weight b-matching. G = (V, E): undirected graph, b : V N, w : E R. E: edge set of G. L = {M E : u V, deg M (u) b (u)}. 2-extendible: CoReLab Monday seminar presentation: Evangelos Bampas 15/21

64 Example of a 2-extendible system Maximum-weight b-matching. G = (V, E): undirected graph, b : V N, w : E R. E: edge set of G. L = {M E : u V, deg M (u) b (u)}. Cor. Greedy is a 1 2-approximation algorithm for Maximum-weight b-matching. CoReLab Monday seminar presentation: Evangelos Bampas 15/21

65 Other k-extendible systems Maximum profit scheduling (2-extendible). Maximum asymmetric TSP (3-extendible). Intersection of k matroids (k-extendible). CoReLab Monday seminar presentation: Evangelos Bampas 16/21

66 Tradeoffs for b-matching Maximum-weight b-matching can be solved exactly in time O ( b (u) min ( m log n, n 2 )). CoReLab Monday seminar presentation: Evangelos Bampas 17/21

67 Tradeoffs for b-matching Maximum-weight b-matching can be solved exactly in time O ( b (u) min ( m log n, n 2 )). Therefore the Greedy algorithm should be regarded as a tradeoff: 1 2-approximation in time O (m log n). CoReLab Monday seminar presentation: Evangelos Bampas 17/21

68 Tradeoffs for b-matching Maximum-weight b-matching can be solved exactly in time O ( b (u) min ( m log n, n 2 )). Therefore the Greedy algorithm should be regarded as a tradeoff: 1 2-approximation in time O (m log n). Improvement: 1 2-approximation in time O (bm). CoReLab Monday seminar presentation: Evangelos Bampas 17/21

69 Tradeoffs for b-matching Maximum-weight b-matching can be solved exactly in time O ( b (u) min ( m log n, n 2 )). Therefore the Greedy algorithm should be regarded as a tradeoff: 1 2-approximation in time O (m log n). Improvement: 1 2-approximation in time O (bm). Further ( improvement: randomized 2 3 ɛ) -approximation in time O ( ) bm log 1 ɛ. CoReLab Monday seminar presentation: Evangelos Bampas 17/21

70 b-matching by greedy walks Alg. Find-Walk(u) b (u) b (u) 1 if deg (u) = 0 then return let (u, v) be the heaviest edge out of u remove (u, v) from G if b (u) = 0 then remove all edges incident to u return (u, v) + Find-Walk(v) CoReLab Monday seminar presentation: Evangelos Bampas 18/21

71 b-matching by greedy walks Alg. Find-Walk(u) b (u) b (u) 1 if deg (u) = 0 then return let (u, v) be the heaviest edge out of u remove (u, v) from G if b (u) = 0 then remove all edges incident to u return (u, v) + Find-Walk(v) while u V s.t. b (u) > 0 and deg (u) > 0 do M M+ Find-Walk(u) CoReLab Monday seminar presentation: Evangelos Bampas 18/21

72 b-matching by greedy walks Alg. Find-Walk(u) b (u) b (u) 1 if deg (u) = 0 then return let (u, v) be the heaviest edge out of u remove (u, v) from G if b (u) = 0 then remove all edges incident to u return (u, v) + Find-Walk(v) while u V s.t. b (u) > 0 and deg (u) > 0 do M M+ Find-Walk(u) Only guarantees that deg M (u) 2b (u). CoReLab Monday seminar presentation: Evangelos Bampas 18/21

73 1-approximation for b-matching 2 Split M into M 1 and M 2 by taking alternative edges of individual walks. Pick the heaviest of M 1, M 2. CoReLab Monday seminar presentation: Evangelos Bampas 19/21

74 1-approximation for b-matching 2 Split M into M 1 and M 2 by taking alternative edges of individual walks. Pick the heaviest of M 1, M 2. SOL w(m) 2 w(m OPT) 2. Why? CoReLab Monday seminar presentation: Evangelos Bampas 19/21

75 1-approximation for b-matching 2 Split M into M 1 and M 2 by taking alternative edges of individual walks. Pick the heaviest of M 1, M 2. SOL w(m) 2 w(m OPT) 2. Why? To each edge (u, v) picked by Find-Walk, assign some edge e M OPT. If (u, v) M OPT, assign it to itself. Otherwise, pick any e M OPT incident to u. CoReLab Monday seminar presentation: Evangelos Bampas 19/21

76 1-approximation for b-matching 2 Split M into M 1 and M 2 by taking alternative edges of individual walks. Pick the heaviest of M 1, M 2. SOL w(m) 2 w(m OPT) 2. Why? To each edge (u, v) picked by Find-Walk, assign some edge e M OPT. If (u, v) M OPT, assign it to itself. Otherwise, pick any e M OPT incident to u. Each edge in M OPT is assigned to a unique edge in M. Moreover, w (e) w (u, v). CoReLab Monday seminar presentation: Evangelos Bampas 19/21

77 Arms and pieces CoReLab Monday seminar presentation: Evangelos Bampas 20/21

78 Arms and pieces u An Arm out of node u CoReLab Monday seminar presentation: Evangelos Bampas 20/21

79 Arms and pieces u An Arm out of node u u A Piece about edge (u, v) v CoReLab Monday seminar presentation: Evangelos Bampas 20/21

80 A randomized algorithm for b- matching Alg. Linear-Random(G, w) M repeat k times pick a vertex u uniformly at random with probability deg M (u) do b pick (u, v) M uniformly at random find max-benefit compatible piece P about (u, v) M M P with probability b(u) deg M (u) do b find max-benefit compatible arm A out of u M M A CoReLab Monday seminar presentation: Evangelos Bampas 21/21

10.3 Matroids and approximation

10.3 Matroids and approximation 10.3 Matroids and approximation 137 10.3 Matroids and approximation Given a family F of subsets of some finite set X, called the ground-set, and a weight function assigning each element x X a non-negative

More information

CMPSCI611: The Matroid Theorem Lecture 5

CMPSCI611: The Matroid Theorem Lecture 5 CMPSCI611: The Matroid Theorem Lecture 5 We first review our definitions: A subset system is a set E together with a set of subsets of E, called I, such that I is closed under inclusion. This means that

More information

Notes on MapReduce Algorithms

Notes on MapReduce Algorithms Notes on MapReduce Algorithms Barna Saha 1 Finding Minimum Spanning Tree of a Dense Graph in MapReduce We are given a graph G = (V, E) on V = N vertices and E = m N 1+c edges for some constant c > 0. Our

More information

15.1 Matching, Components, and Edge cover (Collaborate with Xin Yu)

15.1 Matching, Components, and Edge cover (Collaborate with Xin Yu) 15.1 Matching, Components, and Edge cover (Collaborate with Xin Yu) First show l = c by proving l c and c l. For a maximum matching M in G, let V be the set of vertices covered by M. Since any vertex in

More information

Matroids and submodular optimization

Matroids and submodular optimization Matroids and submodular optimization Attila Bernáth Research fellow, Institute of Informatics, Warsaw University 23 May 2012 Attila Bernáth () Matroids and submodular optimization 23 May 2012 1 / 10 About

More information

Matroids. Start with a set of objects, for example: E={ 1, 2, 3, 4, 5 }

Matroids. Start with a set of objects, for example: E={ 1, 2, 3, 4, 5 } Start with a set of objects, for example: E={ 1, 2, 3, 4, 5 } Start with a set of objects, for example: E={ 1, 2, 3, 4, 5 } The power set of E is the set of all possible subsets of E: {}, {1}, {2}, {3},

More information

/633 Introduction to Algorithms Lecturer: Michael Dinitz Topic: Matroids and Greedy Algorithms Date: 10/31/16

/633 Introduction to Algorithms Lecturer: Michael Dinitz Topic: Matroids and Greedy Algorithms Date: 10/31/16 60.433/633 Introduction to Algorithms Lecturer: Michael Dinitz Topic: Matroids and Greedy Algorithms Date: 0/3/6 6. Introduction We talked a lot the last lecture about greedy algorithms. While both Prim

More information

ABHELSINKI UNIVERSITY OF TECHNOLOGY

ABHELSINKI UNIVERSITY OF TECHNOLOGY Approximation Algorithms Seminar 1 Set Cover, Steiner Tree and TSP Siert Wieringa siert.wieringa@tkk.fi Approximation Algorithms Seminar 1 1/27 Contents Approximation algorithms for: Set Cover Steiner

More information

1 Matroid intersection

1 Matroid intersection CS 369P: Polyhedral techniques in combinatorial optimization Instructor: Jan Vondrák Lecture date: October 21st, 2010 Scribe: Bernd Bandemer 1 Matroid intersection Given two matroids M 1 = (E, I 1 ) and

More information

Chapter 11. Approximation Algorithms. Slides by Kevin Wayne Pearson-Addison Wesley. All rights reserved.

Chapter 11. Approximation Algorithms. Slides by Kevin Wayne Pearson-Addison Wesley. All rights reserved. Chapter 11 Approximation Algorithms Slides by Kevin Wayne. Copyright @ 2005 Pearson-Addison Wesley. All rights reserved. 1 Approximation Algorithms Q. Suppose I need to solve an NP-hard problem. What should

More information

Greedy Algorithms My T. UF

Greedy Algorithms My T. UF Introduction to Algorithms Greedy Algorithms @ UF Overview A greedy algorithm always makes the choice that looks best at the moment Make a locally optimal choice in hope of getting a globally optimal solution

More information

6.4 BASIS AND DIMENSION (Review) DEF 1 Vectors v 1, v 2,, v k in a vector space V are said to form a basis for V if. (a) v 1,, v k span V and

6.4 BASIS AND DIMENSION (Review) DEF 1 Vectors v 1, v 2,, v k in a vector space V are said to form a basis for V if. (a) v 1,, v k span V and 6.4 BASIS AND DIMENSION (Review) DEF 1 Vectors v 1, v 2,, v k in a vector space V are said to form a basis for V if (a) v 1,, v k span V and (b) v 1,, v k are linearly independent. HMHsueh 1 Natural Basis

More information

Algorithms Design & Analysis. Approximation Algorithm

Algorithms Design & Analysis. Approximation Algorithm Algorithms Design & Analysis Approximation Algorithm Recap External memory model Merge sort Distribution sort 2 Today s Topics Hard problem Approximation algorithms Metric traveling salesman problem A

More information

Discrete Optimization 2010 Lecture 2 Matroids & Shortest Paths

Discrete Optimization 2010 Lecture 2 Matroids & Shortest Paths Matroids Shortest Paths Discrete Optimization 2010 Lecture 2 Matroids & Shortest Paths Marc Uetz University of Twente m.uetz@utwente.nl Lecture 2: sheet 1 / 25 Marc Uetz Discrete Optimization Matroids

More information

Ring Sums, Bridges and Fundamental Sets

Ring Sums, Bridges and Fundamental Sets 1 Ring Sums Definition 1 Given two graphs G 1 = (V 1, E 1 ) and G 2 = (V 2, E 2 ) we define the ring sum G 1 G 2 = (V 1 V 2, (E 1 E 2 ) (E 1 E 2 )) with isolated points dropped. So an edge is in G 1 G

More information

1 Some loose ends from last time

1 Some loose ends from last time Cornell University, Fall 2010 CS 6820: Algorithms Lecture notes: Kruskal s and Borůvka s MST algorithms September 20, 2010 1 Some loose ends from last time 1.1 A lemma concerning greedy algorithms and

More information

Algorithm Design and Analysis

Algorithm Design and Analysis Algorithm Design and Analysis LECTURE 26 Computational Intractability Polynomial Time Reductions Sofya Raskhodnikova S. Raskhodnikova; based on slides by A. Smith and K. Wayne L26.1 What algorithms are

More information

Chapter 11. Approximation Algorithms. Slides by Kevin Wayne Pearson-Addison Wesley. All rights reserved.

Chapter 11. Approximation Algorithms. Slides by Kevin Wayne Pearson-Addison Wesley. All rights reserved. Chapter 11 Approximation Algorithms Slides by Kevin Wayne. Copyright @ 2005 Pearson-Addison Wesley. All rights reserved. 1 P and NP P: The family of problems that can be solved quickly in polynomial time.

More information

3.4 Relaxations and bounds

3.4 Relaxations and bounds 3.4 Relaxations and bounds Consider a generic Discrete Optimization problem z = min{c(x) : x X} with an optimal solution x X. In general, the algorithms generate not only a decreasing sequence of upper

More information

4. How to prove a problem is NPC

4. How to prove a problem is NPC The reducibility relation T is transitive, i.e, A T B and B T C imply A T C Therefore, to prove that a problem A is NPC: (1) show that A NP (2) choose some known NPC problem B define a polynomial transformation

More information

A First Course in Combinatorial Optimization. JON LEE IBM T.J. Watson Research Center, Yorktown Heights, New York

A First Course in Combinatorial Optimization. JON LEE IBM T.J. Watson Research Center, Yorktown Heights, New York A First Course in Combinatorial Optimization JON LEE IBM T.J. Watson Research Center, Yorktown Heights, New York published by the press syndicate of the university of cambridge The Pitt Building, Trumpington

More information

A Randomized Rounding Approach to the Traveling Salesman Problem

A Randomized Rounding Approach to the Traveling Salesman Problem A Randomized Rounding Approach to the Traveling Salesman Problem Shayan Oveis Gharan Amin Saberi. Mohit Singh. Abstract For some positive constant ɛ 0, we give a ( 3 2 ɛ 0)-approximation algorithm for

More information

Submodular Functions, Optimization, and Applications to Machine Learning

Submodular Functions, Optimization, and Applications to Machine Learning Submodular Functions, Optimization, and Applications to Machine Learning Spring Quarter, Lecture http://www.ee.washington.edu/people/faculty/bilmes/classes/eeb_spring_0/ Prof. Jeff Bilmes University of

More information

EE595A Submodular functions, their optimization and applications Spring 2011

EE595A Submodular functions, their optimization and applications Spring 2011 EE595A Submodular functions, their optimization and applications Spring 2011 Prof. Jeff Bilmes University of Washington, Seattle Department of Electrical Engineering Winter Quarter, 2011 http://ee.washington.edu/class/235/2011wtr/index.html

More information

CSE 421 Greedy Algorithms / Interval Scheduling

CSE 421 Greedy Algorithms / Interval Scheduling CSE 421 Greedy Algorithms / Interval Scheduling Yin Tat Lee 1 Interval Scheduling Job j starts at s(j) and finishes at f(j). Two jobs compatible if they don t overlap. Goal: find maximum subset of mutually

More information

Chapter 7 Network Flow Problems, I

Chapter 7 Network Flow Problems, I Chapter 7 Network Flow Problems, I Network flow problems are the most frequently solved linear programming problems. They include as special cases, the assignment, transportation, maximum flow, and shortest

More information

Proof methods and greedy algorithms

Proof methods and greedy algorithms Proof methods and greedy algorithms Magnus Lie Hetland Lecture notes, May 5th 2008 1 Introduction This lecture in some ways covers two separate topics: (1) how to prove algorithms correct, in general,

More information

Intro to Theory of Computation

Intro to Theory of Computation Intro to Theory of Computation LECTURE 25 Last time Class NP Today Polynomial-time reductions Adam Smith; Sofya Raskhodnikova 4/18/2016 L25.1 The classes P and NP P is the class of languages decidable

More information

Bipartite Matchings. Andreas Klappenecker

Bipartite Matchings. Andreas Klappenecker Bipartite Matchings Andreas Klappenecker Matching Number m(g) = number of edges in a maximally large matching. Why is m(g) < 4? m(g) = W iff A

More information

NP-Complete Problems and Approximation Algorithms

NP-Complete Problems and Approximation Algorithms NP-Complete Problems and Approximation Algorithms Efficiency of Algorithms Algorithms that have time efficiency of O(n k ), that is polynomial of the input size, are considered to be tractable or easy

More information

ACO Comprehensive Exam March 20 and 21, Computability, Complexity and Algorithms

ACO Comprehensive Exam March 20 and 21, Computability, Complexity and Algorithms 1. Computability, Complexity and Algorithms Part a: You are given a graph G = (V,E) with edge weights w(e) > 0 for e E. You are also given a minimum cost spanning tree (MST) T. For one particular edge

More information

Decomposition Theorems for Square-free 2-matchings in Bipartite Graphs

Decomposition Theorems for Square-free 2-matchings in Bipartite Graphs Decomposition Theorems for Square-free 2-matchings in Bipartite Graphs Kenjiro Takazawa RIMS, Kyoto University ISMP 2015 Pittsburgh July 13, 2015 1 Overview G = (V,E): Bipartite, Simple M E: Square-free

More information

Sublinear Algorithms for Big Data

Sublinear Algorithms for Big Data Sublinear Algorithms for Big Data Qin Zhang 1-1 2-1 Part 2: Sublinear in Communication Sublinear in communication The model x 1 = 010011 x 2 = 111011 x 3 = 111111 x k = 100011 Applicaitons They want to

More information

Linear Programming. Scheduling problems

Linear Programming. Scheduling problems Linear Programming Scheduling problems Linear programming (LP) ( )., 1, for 0 min 1 1 1 1 1 11 1 1 n i x b x a x a b x a x a x c x c x z i m n mn m n n n n! = + + + + + + = Extreme points x ={x 1,,x n

More information

DEF 1 Let V be a vector space and W be a nonempty subset of V. If W is a vector space w.r.t. the operations, in V, then W is called a subspace of V.

DEF 1 Let V be a vector space and W be a nonempty subset of V. If W is a vector space w.r.t. the operations, in V, then W is called a subspace of V. 6.2 SUBSPACES DEF 1 Let V be a vector space and W be a nonempty subset of V. If W is a vector space w.r.t. the operations, in V, then W is called a subspace of V. HMHsueh 1 EX 1 (Ex. 1) Every vector space

More information

Trees. A tree is a graph which is. (a) Connected and. (b) has no cycles (acyclic).

Trees. A tree is a graph which is. (a) Connected and. (b) has no cycles (acyclic). Trees A tree is a graph which is (a) Connected and (b) has no cycles (acyclic). 1 Lemma 1 Let the components of G be C 1, C 2,..., C r, Suppose e = (u, v) / E, u C i, v C j. (a) i = j ω(g + e) = ω(g).

More information

1 Matchings in Non-Bipartite Graphs

1 Matchings in Non-Bipartite Graphs CS 598CSC: Combinatorial Optimization Lecture date: Feb 9, 010 Instructor: Chandra Chekuri Scribe: Matthew Yancey 1 Matchings in Non-Bipartite Graphs We discuss matching in general undirected graphs. Given

More information

Submodular Functions, Optimization, and Applications to Machine Learning

Submodular Functions, Optimization, and Applications to Machine Learning Submodular Functions, Optimization, and Applications to Machine Learning Spring Quarter, Lecture 4 http://www.ee.washington.edu/people/faculty/bilmes/classes/ee563_spring_2018/ Prof. Jeff Bilmes University

More information

CS675: Convex and Combinatorial Optimization Fall 2014 Combinatorial Problems as Linear Programs. Instructor: Shaddin Dughmi

CS675: Convex and Combinatorial Optimization Fall 2014 Combinatorial Problems as Linear Programs. Instructor: Shaddin Dughmi CS675: Convex and Combinatorial Optimization Fall 2014 Combinatorial Problems as Linear Programs Instructor: Shaddin Dughmi Outline 1 Introduction 2 Shortest Path 3 Algorithms for Single-Source Shortest

More information

General Methods for Algorithm Design

General Methods for Algorithm Design General Methods for Algorithm Design 1. Dynamic Programming Multiplication of matrices Elements of the dynamic programming Optimal triangulation of polygons Longest common subsequence 2. Greedy Methods

More information

Cutting Plane Methods II

Cutting Plane Methods II 6.859/5.083 Integer Programming and Combinatorial Optimization Fall 2009 Cutting Plane Methods II Gomory-Chvátal cuts Reminder P = {x R n : Ax b} with A Z m n, b Z m. For λ [0, ) m such that λ A Z n, (λ

More information

Matching Residents to Hospitals

Matching Residents to Hospitals Midterm Review Matching Residents to Hospitals Goal. Given a set of preferences among hospitals and medical school students, design a self-reinforcing admissions process. Unstable pair: applicant x and

More information

Approximation Algorithms for Asymmetric TSP by Decomposing Directed Regular Multigraphs

Approximation Algorithms for Asymmetric TSP by Decomposing Directed Regular Multigraphs Approximation Algorithms for Asymmetric TSP by Decomposing Directed Regular Multigraphs Haim Kaplan Tel-Aviv University, Israel haimk@post.tau.ac.il Nira Shafrir Tel-Aviv University, Israel shafrirn@post.tau.ac.il

More information

Polynomial-Time Reductions

Polynomial-Time Reductions Reductions 1 Polynomial-Time Reductions Classify Problems According to Computational Requirements Q. Which problems will we be able to solve in practice? A working definition. [von Neumann 1953, Godel

More information

Scheduling on Unrelated Parallel Machines. Approximation Algorithms, V. V. Vazirani Book Chapter 17

Scheduling on Unrelated Parallel Machines. Approximation Algorithms, V. V. Vazirani Book Chapter 17 Scheduling on Unrelated Parallel Machines Approximation Algorithms, V. V. Vazirani Book Chapter 17 Nicolas Karakatsanis, 2008 Description of the problem Problem 17.1 (Scheduling on unrelated parallel machines)

More information

Undirected Graphs. V = { 1, 2, 3, 4, 5, 6, 7, 8 } E = { 1-2, 1-3, 2-3, 2-4, 2-5, 3-5, 3-7, 3-8, 4-5, 5-6 } n = 8 m = 11

Undirected Graphs. V = { 1, 2, 3, 4, 5, 6, 7, 8 } E = { 1-2, 1-3, 2-3, 2-4, 2-5, 3-5, 3-7, 3-8, 4-5, 5-6 } n = 8 m = 11 Undirected Graphs Undirected graph. G = (V, E) V = nodes. E = edges between pairs of nodes. Captures pairwise relationship between objects. Graph size parameters: n = V, m = E. V = {, 2, 3,,,, 7, 8 } E

More information

4 Packing T-joins and T-cuts

4 Packing T-joins and T-cuts 4 Packing T-joins and T-cuts Introduction Graft: A graft consists of a connected graph G = (V, E) with a distinguished subset T V where T is even. T-cut: A T -cut of G is an edge-cut C which separates

More information

Multi-Embedding and Path Approximation of Metric Spaces

Multi-Embedding and Path Approximation of Metric Spaces Multi-Embedding and Path Approximation of Metric Spaces Yair Bartal and Manor Mendel mendelma@cshujiacil The Hebrew University Multi-Embedding and Path Approximation of Metric Spaces p1/4 Metric Embedding

More information

Algorithm Design and Analysis

Algorithm Design and Analysis Algorithm Design and Analysis LECTURE 5 Greedy Algorithms Interval Scheduling Interval Partitioning Guest lecturer: Martin Furer Review In a DFS tree of an undirected graph, can there be an edge (u,v)

More information

M-convex Functions on Jump Systems A Survey

M-convex Functions on Jump Systems A Survey Discrete Convexity and Optimization, RIMS, October 16, 2012 M-convex Functions on Jump Systems A Survey Kazuo Murota (U. Tokyo) 121016rimsJUMP 1 Discrete Convex Analysis Convexity Paradigm in Discrete

More information

Rigidity of Graphs and Frameworks

Rigidity of Graphs and Frameworks Rigidity of Graphs and Frameworks Rigid Frameworks The Rigidity Matrix and the Rigidity Matroid Infinitesimally Rigid Frameworks Rigid Graphs Rigidity in R d, d = 1,2 Global Rigidity in R d, d = 1,2 1

More information

NP-Completeness. Andreas Klappenecker. [based on slides by Prof. Welch]

NP-Completeness. Andreas Klappenecker. [based on slides by Prof. Welch] NP-Completeness Andreas Klappenecker [based on slides by Prof. Welch] 1 Prelude: Informal Discussion (Incidentally, we will never get very formal in this course) 2 Polynomial Time Algorithms Most of the

More information

Minmax Tree Cover in the Euclidean Space

Minmax Tree Cover in the Euclidean Space Journal of Graph Algorithms and Applications http://jgaa.info/ vol. 15, no. 3, pp. 345 371 (2011) Minmax Tree Cover in the Euclidean Space Seigo Karakawa 1 Ehab Morsy 1 Hiroshi Nagamochi 1 1 Department

More information

8. INTRACTABILITY I. Lecture slides by Kevin Wayne Copyright 2005 Pearson-Addison Wesley. Last updated on 2/6/18 2:16 AM

8. INTRACTABILITY I. Lecture slides by Kevin Wayne Copyright 2005 Pearson-Addison Wesley. Last updated on 2/6/18 2:16 AM 8. INTRACTABILITY I poly-time reductions packing and covering problems constraint satisfaction problems sequencing problems partitioning problems graph coloring numerical problems Lecture slides by Kevin

More information

The Monte Carlo Method

The Monte Carlo Method The Monte Carlo Method Example: estimate the value of π. Choose X and Y independently and uniformly at random in [0, 1]. Let Pr(Z = 1) = π 4. 4E[Z] = π. { 1 if X Z = 2 + Y 2 1, 0 otherwise, Let Z 1,...,

More information

Minimization of Symmetric Submodular Functions under Hereditary Constraints

Minimization of Symmetric Submodular Functions under Hereditary Constraints Minimization of Symmetric Submodular Functions under Hereditary Constraints J.A. Soto (joint work with M. Goemans) DIM, Univ. de Chile April 4th, 2012 1 of 21 Outline Background Minimal Minimizers and

More information

Rigidity of Graphs and Frameworks

Rigidity of Graphs and Frameworks School of Mathematical Sciences Queen Mary, University of London England DIMACS, 26-29 July, 2016 Bar-and-Joint Frameworks A d-dimensional bar-and-joint framework is a pair (G, p), where G = (V, E) is

More information

Scheduling and Optimization Course (MPRI)

Scheduling and Optimization Course (MPRI) MPRI Scheduling and optimization: lecture p. /6 Scheduling and Optimization Course (MPRI) Leo Liberti LIX, École Polytechnique, France MPRI Scheduling and optimization: lecture p. /6 Teachers Christoph

More information

Unit 1A: Computational Complexity

Unit 1A: Computational Complexity Unit 1A: Computational Complexity Course contents: Computational complexity NP-completeness Algorithmic Paradigms Readings Chapters 3, 4, and 5 Unit 1A 1 O: Upper Bounding Function Def: f(n)= O(g(n)) if

More information

Easy Problems vs. Hard Problems. CSE 421 Introduction to Algorithms Winter Is P a good definition of efficient? The class P

Easy Problems vs. Hard Problems. CSE 421 Introduction to Algorithms Winter Is P a good definition of efficient? The class P Easy Problems vs. Hard Problems CSE 421 Introduction to Algorithms Winter 2000 NP-Completeness (Chapter 11) Easy - problems whose worst case running time is bounded by some polynomial in the size of the

More information

Improving Christofides Algorithm for the s-t Path TSP

Improving Christofides Algorithm for the s-t Path TSP Cornell University May 21, 2012 Joint work with Bobby Kleinberg and David Shmoys Metric TSP Metric (circuit) TSP Given a weighted graph G = (V, E) (c : E R + ), find a minimum Hamiltonian circuit Triangle

More information

Definition: A binary relation R from a set A to a set B is a subset R A B. Example:

Definition: A binary relation R from a set A to a set B is a subset R A B. Example: Chapter 9 1 Binary Relations Definition: A binary relation R from a set A to a set B is a subset R A B. Example: Let A = {0,1,2} and B = {a,b} {(0, a), (0, b), (1,a), (2, b)} is a relation from A to B.

More information

The Greedy Algorithm for the Symmetric TSP

The Greedy Algorithm for the Symmetric TSP The Greedy Algorithm for the Symmetric TSP Gregory Gutin Anders Yeo Abstract We corrected proofs of two results on the greedy algorithm for the Symmetric TSP and answered a question in Gutin and Yeo, Oper.

More information

Greedy Alg: Huffman abhi shelat

Greedy Alg: Huffman abhi shelat L15 Greedy Alg: Huffman 4102 10.17.201 abhi shelat Huffman Coding image: wikimedia In testimony before the committee, Mr. Lew stressed that the Treasury Department would run out of extraordinary measures

More information

MAKING BIPARTITE GRAPHS DM-IRREDUCIBLE

MAKING BIPARTITE GRAPHS DM-IRREDUCIBLE SIAM J. DISCRETE MATH. Vol. 32, No. 1, pp. 560 590 c 2018 Society for Industrial and Applied Mathematics MAKING BIPARTITE GRAPHS DM-IRREDUCIBLE KRISTÓF BÉRCZI, SATORU IWATA, JUN KATO, AND YUTARO YAMAGUCHI

More information

Guaranteeing Solution Quality for SAS Optimization Problems by being Greedy

Guaranteeing Solution Quality for SAS Optimization Problems by being Greedy Guaranteeing Solution Quality for SAS Optimization Problems by being Greedy Ulrike Stege University of Victoria ustege@uvic.ca Preliminary results of this in: S. Balasubramanian, R.J. Desmarais, H.A. Müller,

More information

Lecture Semidefinite Programming and Graph Partitioning

Lecture Semidefinite Programming and Graph Partitioning Approximation Algorithms and Hardness of Approximation April 16, 013 Lecture 14 Lecturer: Alantha Newman Scribes: Marwa El Halabi 1 Semidefinite Programming and Graph Partitioning In previous lectures,

More information

CS675: Convex and Combinatorial Optimization Fall 2016 Combinatorial Problems as Linear and Convex Programs. Instructor: Shaddin Dughmi

CS675: Convex and Combinatorial Optimization Fall 2016 Combinatorial Problems as Linear and Convex Programs. Instructor: Shaddin Dughmi CS675: Convex and Combinatorial Optimization Fall 2016 Combinatorial Problems as Linear and Convex Programs Instructor: Shaddin Dughmi Outline 1 Introduction 2 Shortest Path 3 Algorithms for Single-Source

More information

NCG Group New Results and Open Problems

NCG Group New Results and Open Problems NCG Group New Results and Table of Contents PoA for NSP 1 PoA for NSP 2 3 4 5 2 / 21 PoA for NSP 3 / 21 PoA for NSP Lemma The PoA for the NSP is in Θ(diam(G)), even when only reachable friendship situations

More information

CS599: Convex and Combinatorial Optimization Fall 2013 Lecture 17: Combinatorial Problems as Linear Programs III. Instructor: Shaddin Dughmi

CS599: Convex and Combinatorial Optimization Fall 2013 Lecture 17: Combinatorial Problems as Linear Programs III. Instructor: Shaddin Dughmi CS599: Convex and Combinatorial Optimization Fall 2013 Lecture 17: Combinatorial Problems as Linear Programs III Instructor: Shaddin Dughmi Announcements Today: Spanning Trees and Flows Flexibility awarded

More information

Outline / Reading. Greedy Method as a fundamental algorithm design technique

Outline / Reading. Greedy Method as a fundamental algorithm design technique Greedy Method Outline / Reading Greedy Method as a fundamental algorithm design technique Application to problems of: Making change Fractional Knapsack Problem (Ch. 5.1.1) Task Scheduling (Ch. 5.1.2) Minimum

More information

Breadth-First Search of Graphs

Breadth-First Search of Graphs Breadth-First Search of Graphs Analysis of Algorithms Prepared by John Reif, Ph.D. Distinguished Professor of Computer Science Duke University Applications of Breadth-First Search of Graphs a) Single Source

More information

COMPSCI 611 Advanced Algorithms Second Midterm Exam Fall 2017

COMPSCI 611 Advanced Algorithms Second Midterm Exam Fall 2017 NAME: COMPSCI 611 Advanced Algorithms Second Midterm Exam Fall 2017 A. McGregor 15 November 2017 DIRECTIONS: Do not turn over the page until you are told to do so. This is a closed book exam. No communicating

More information

Algorithm Design and Analysis

Algorithm Design and Analysis Algorithm Design and Analysis LECTURE 7 Network Flow Application: Bipartite Matching Adam Smith 0//008 A. Smith; based on slides by S. Raskhodnikova and K. Wayne Recently: Ford-Fulkerson Find max s-t flow

More information

Matroid Optimisation Problems with Nested Non-linear Monomials in the Objective Function

Matroid Optimisation Problems with Nested Non-linear Monomials in the Objective Function atroid Optimisation Problems with Nested Non-linear onomials in the Objective Function Anja Fischer Frank Fischer S. Thomas ccormick 14th arch 2016 Abstract Recently, Buchheim and Klein [4] suggested to

More information

COMPSCI 611 Advanced Algorithms Second Midterm Exam Fall 2017

COMPSCI 611 Advanced Algorithms Second Midterm Exam Fall 2017 NAME: COMPSCI 611 Advanced Algorithms Second Midterm Exam Fall 2017 A. McGregor 15 November 2017 DIRECTIONS: Do not turn over the page until you are told to do so. This is a closed book exam. No communicating

More information

On improving matchings in trees, via bounded-length augmentations 1

On improving matchings in trees, via bounded-length augmentations 1 On improving matchings in trees, via bounded-length augmentations 1 Julien Bensmail a, Valentin Garnero a, Nicolas Nisse a a Université Côte d Azur, CNRS, Inria, I3S, France Abstract Due to a classical

More information

Discrete (and Continuous) Optimization WI4 131

Discrete (and Continuous) Optimization WI4 131 Discrete (and Continuous) Optimization WI4 131 Kees Roos Technische Universiteit Delft Faculteit Electrotechniek, Wiskunde en Informatica Afdeling Informatie, Systemen en Algoritmiek e-mail: C.Roos@ewi.tudelft.nl

More information

Strongly chordal and chordal bipartite graphs are sandwich monotone

Strongly chordal and chordal bipartite graphs are sandwich monotone Strongly chordal and chordal bipartite graphs are sandwich monotone Pinar Heggernes Federico Mancini Charis Papadopoulos R. Sritharan Abstract A graph class is sandwich monotone if, for every pair of its

More information

July 18, Approximation Algorithms (Travelling Salesman Problem)

July 18, Approximation Algorithms (Travelling Salesman Problem) Approximation Algorithms (Travelling Salesman Problem) July 18, 2014 The travelling-salesman problem Problem: given complete, undirected graph G = (V, E) with non-negative integer cost c(u, v) for each

More information

ACO Comprehensive Exam October 14 and 15, 2013

ACO Comprehensive Exam October 14 and 15, 2013 1. Computability, Complexity and Algorithms (a) Let G be the complete graph on n vertices, and let c : V (G) V (G) [0, ) be a symmetric cost function. Consider the following closest point heuristic for

More information

CS 583: Algorithms. NP Completeness Ch 34. Intractability

CS 583: Algorithms. NP Completeness Ch 34. Intractability CS 583: Algorithms NP Completeness Ch 34 Intractability Some problems are intractable: as they grow large, we are unable to solve them in reasonable time What constitutes reasonable time? Standard working

More information

Linear Algebra 1 Exam 2 Solutions 7/14/3

Linear Algebra 1 Exam 2 Solutions 7/14/3 Linear Algebra 1 Exam Solutions 7/14/3 Question 1 The line L has the symmetric equation: x 1 = y + 3 The line M has the parametric equation: = z 4. [x, y, z] = [ 4, 10, 5] + s[10, 7, ]. The line N is perpendicular

More information

New Approaches to Multi-Objective Optimization

New Approaches to Multi-Objective Optimization New Approaches to Multi-Objective Optimization Fabrizio Grandoni R. Ravi Mohit Singh Rico Zenklusen July 17, 2013 Abstract A natural way to deal with multiple, partially conflicting objectives is turning

More information

CSE 421 Dynamic Programming

CSE 421 Dynamic Programming CSE Dynamic Programming Yin Tat Lee Weighted Interval Scheduling Interval Scheduling Job j starts at s(j) and finishes at f j and has weight w j Two jobs compatible if they don t overlap. Goal: find maximum

More information

1 Basic Definitions. 2 Proof By Contradiction. 3 Exchange Argument

1 Basic Definitions. 2 Proof By Contradiction. 3 Exchange Argument 1 Basic Definitions A Problem is a relation from input to acceptable output. For example, INPUT: A list of integers x 1,..., x n OUTPUT: One of the three smallest numbers in the list An algorithm A solves

More information

CS281A/Stat241A Lecture 19

CS281A/Stat241A Lecture 19 CS281A/Stat241A Lecture 19 p. 1/4 CS281A/Stat241A Lecture 19 Junction Tree Algorithm Peter Bartlett CS281A/Stat241A Lecture 19 p. 2/4 Announcements My office hours: Tuesday Nov 3 (today), 1-2pm, in 723

More information

Tree Decompositions and Tree-Width

Tree Decompositions and Tree-Width Tree Decompositions and Tree-Width CS 511 Iowa State University December 6, 2010 CS 511 (Iowa State University) Tree Decompositions and Tree-Width December 6, 2010 1 / 15 Tree Decompositions Definition

More information

Part V. Matchings. Matching. 19 Augmenting Paths for Matchings. 18 Bipartite Matching via Flows

Part V. Matchings. Matching. 19 Augmenting Paths for Matchings. 18 Bipartite Matching via Flows Matching Input: undirected graph G = (V, E). M E is a matching if each node appears in at most one Part V edge in M. Maximum Matching: find a matching of maximum cardinality Matchings Ernst Mayr, Harald

More information

The Lovász Local Lemma: constructive aspects, stronger variants and the hard core model

The Lovász Local Lemma: constructive aspects, stronger variants and the hard core model The Lovász Local Lemma: constructive aspects, stronger variants and the hard core model Jan Vondrák 1 1 Dept. of Mathematics Stanford University joint work with Nick Harvey (UBC) The Lovász Local Lemma

More information

Branch-and-Bound. Leo Liberti. LIX, École Polytechnique, France. INF , Lecture p. 1

Branch-and-Bound. Leo Liberti. LIX, École Polytechnique, France. INF , Lecture p. 1 Branch-and-Bound Leo Liberti LIX, École Polytechnique, France INF431 2011, Lecture p. 1 Reminders INF431 2011, Lecture p. 2 Problems Decision problem: a question admitting a YES/NO answer Example HAMILTONIAN

More information

Countable Menger s theorem with finitary matroid constraints on the ingoing edges

Countable Menger s theorem with finitary matroid constraints on the ingoing edges Countable Menger s theorem with finitary matroid constraints on the ingoing edges Attila Joó Alfréd Rényi Institute of Mathematics, MTA-ELTE Egerváry Research Group. Budapest, Hungary jooattila@renyi.hu

More information

Minimum Cycle Bases of Product Graphs

Minimum Cycle Bases of Product Graphs 1 Corresponding author 1 Minimum Cycle Bases of Product Graphs Wilfried Imrich a,1 and Peter F. Stadler b,c a Department of Mathematics and Applied Geometry Montanuniversität Leoben, Franz Josef Straße

More information

Lecture 4: NP and computational intractability

Lecture 4: NP and computational intractability Chapter 4 Lecture 4: NP and computational intractability Listen to: Find the longest path, Daniel Barret What do we do today: polynomial time reduction NP, co-np and NP complete problems some examples

More information

Randomized Algorithms III Min Cut

Randomized Algorithms III Min Cut Chapter 11 Randomized Algorithms III Min Cut CS 57: Algorithms, Fall 01 October 1, 01 11.1 Min Cut 11.1.1 Problem Definition 11. Min cut 11..0.1 Min cut G = V, E): undirected graph, n vertices, m edges.

More information

Submodular Functions, Optimization, and Applications to Machine Learning

Submodular Functions, Optimization, and Applications to Machine Learning Submodular Functions, Optimization, and Applications to Machine Learning Spring Quarter, Lecture 12 http://www.ee.washington.edu/people/faculty/bilmes/classes/ee596b_spring_2016/ Prof. Jeff Bilmes University

More information

A note on [k, l]-sparse graphs

A note on [k, l]-sparse graphs Egerváry Research Group on Combinatorial Optimization Technical reports TR-2005-05. Published by the Egrerváry Research Group, Pázmány P. sétány 1/C, H 1117, Budapest, Hungary. Web site: www.cs.elte.hu/egres.

More information

MA015: Graph Algorithms

MA015: Graph Algorithms MA015 3. Minimum cuts 1 MA015: Graph Algorithms 3. Minimum cuts (in undirected graphs) Jan Obdržálek obdrzalek@fi.muni.cz Faculty of Informatics, Masaryk University, Brno All pairs flows/cuts MA015 3.

More information

On the approximability of some degree-constrained subgraph problems

On the approximability of some degree-constrained subgraph problems On the approximability of some degree-constrained subgraph problems Omid Amini a a CNRS, Département de mathématiques et applications (DMA), École Normale Supérieure, Paris, France. E-mail: omid.amini@ens.fr.

More information

NP-Completeness. ch34 Hewett. Problem. Tractable Intractable Non-computable computationally infeasible super poly-time alg. sol. E.g.

NP-Completeness. ch34 Hewett. Problem. Tractable Intractable Non-computable computationally infeasible super poly-time alg. sol. E.g. NP-Completeness ch34 Hewett Problem Tractable Intractable Non-computable computationally infeasible super poly-time alg. sol. E.g., O(2 n ) computationally feasible poly-time alg. sol. E.g., O(n k ) No

More information