香港中文大学:《Design and Analysis of Algorithms》课程教学资源(辅导课件)tutorial 11

CSCI 3160 Design and Analysis of Algorithms Chengyu Lin
CSCI 3160 Design and Analysis of Algorithms Chengyu Lin

Approximation algorithms 。Motivation Some (optimization)problems are very hard Unlikely to have efficient polynomial-time algorithms Approximation algorithms -Algorithms to find approximate solutions to optimization problems
Approximation algorithms • Motivation – Some (optimization) problems are very hard – Unlikely to have efficient polynomial-time algorithms • Approximation algorithms – Algorithms to find approximate solutions to optimization problems

Optimization Many problems are actually optimization problems i.e-the task can be naturally rephrased as finding a maximal/minimal solution For example:Vertex Cover problem
Optimization • Many problems are actually optimization problems • i.e – the task can be naturally rephrased as finding a maximal/minimalsolution • For example: Vertex Cover problem

Approximation Algorithm An algorithm that returns near-optimal solutions in polynomial time Approximation Ratio p(n): Define:C*as a optimal solution and C is the solution produced by the approximation algorithm -max (C/C*,C*/C)<=p(n) -Maximization problem:0<C<=C*,thus C*/C shows that C*is larger than c by p(n) Minimization problem:0<C*<=C,thus C/C* shows that C is larger than C*by p(n)
Approximation Algorithm • An algorithm that returns near-optimal solutions in polynomial time • Approximation Ratio ρ(n): – Define: C* as a optimal solution and C is the solution produced by the approximation algorithm – max (C/C*, C*/C) <= ρ(n) – Maximization problem: 0 < C <= C*, thus C*/C shows that C* is larger than C by ρ(n) – Minimization problem: 0 < C* <= C, thus C/C* shows that C is larger than C* by ρ(n)

Techniques A variety of techniques to design and analyze many approximation algorithms for computationally hard problems: Combinatorial algorithms Linear Programming based algorithms Semi-definite Programming based algorithms
Techniques • A variety of techniques to design and analyze many approximation algorithms for computationally hard problems: – Combinatorial algorithms – Linear Programming based algorithms – Semi-definite Programming based algorithms

Vertex Cover 。Definition Given an undirected graph G=V,E),a subset 'V is called a vertex cover of G iff for every edge eeE,e has at least one endpoint incident at V 。Example Vertex Cover
Vertex Cover • Definition – Given an undirected graph 𝐺 = (𝑉, 𝐸),a subset 𝑉′ ⊆ 𝑉 is called a vertex cover of 𝐺 iff for every edge 𝑒 ∈ 𝐸, 𝑒 has at least one endpoint incident at 𝑉′ • Example

Vertex Cover Problem ●Definition: Given an undirected graph G=(V,E),find a vertex cover with minimum size (has the least number of vertices) -This is sometimes called cardinality vertex cover More generalization: Given an undirected graph G=(V,E),and a cost function on vertices c:V>Q+ -Find a minimum cost vertex cover
Vertex Cover Problem • Definition: – Given an undirected graph G=(V,E), find a vertex cover with minimum size (has the least number of vertices) – This is sometimes called cardinality vertex cover • More generalization: – Given an undirected graph G=(V,E), and a cost function on vertices c: V → Q+ – Find a minimum cost vertex cover

How to solve it 。Matching: -A set M of edges in a graph G is called a matching of G if no two edges in set M have an endpoint in common 。Example:
How to solve it • Matching: – A set M of edges in a graph G is called a matching of G if no two edges in set M have an endpoint in common • Example:

How to solve it(cont. 。Maximum Matching: -A matching of G with the greatest number of edges 。Maximal Matching: -A matching which is not contained in any larger matching Note:Any maximum matching is certainly maximal,but not the reverse
How to solve it(cont.) • Maximum Matching: – A matching of G with the greatest number of edges • Maximal Matching: – A matching which is not contained in any larger matching • Note: Any maximum matching is certainly maximal, but not the reverse

Main observation No vertex can cover two edges of a matching The size of every vertex cover is at least the size of every matching:M<C .M=C indicates the optimality Possible Solution:Using Maximal matching to find Minimum vertex cover
Main observation • No vertex can cover two edges of a matching • The size of every vertex cover is at least the size of every matching: |M| ≤ |C| • |M| = |C| indicates the optimality • Possible Solution: Using Maximal matching to find Minimum vertex cover
按次数下载不扣除下载券;
注册用户24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
- 香港中文大学:《Design and Analysis of Algorithms》课程教学资源(辅导课件)tutorial 10.pptx
- 香港中文大学:《Design and Analysis of Algorithms》课程教学资源(辅导课件)tutorial 01.pptx
- 香港中文大学:《Design and Analysis of Algorithms》课程教学资源(PPT课件讲稿)Week 10 Stable Matching and Secretary Problem.pptx
- 香港中文大学:《Design and Analysis of Algorithms》课程教学资源(PPT课件讲稿)Week 8 Maximum Network Flow.pptx
- 香港中文大学:《Design and Analysis of Algorithms》课程教学资源(PPT课件讲稿)Week 7 Divide and Conquer.pptx
- 香港中文大学:《Design and Analysis of Algorithms》课程教学资源(PPT课件讲稿)Week 6 Linear Programming.pptx
- 香港中文大学:《Design and Analysis of Algorithms》课程教学资源(PPT课件讲稿)Week 12 Online Algorithms.pptx
- 香港中文大学:《Design and Analysis of Algorithms》课程教学资源(PPT课件讲稿)Week 11 Approximation Algorithms.pptx
- 香港中文大学:《Design and Analysis of Algorithms》课程教学资源(PPT课件讲稿)Week 10 NP-completeness.pptx
- 香港中文大学:《Design and Analysis of Algorithms》课程教学资源(PPT课件讲稿)Week 5 Dynamic Programming.pptx
- 香港中文大学:《Design and Analysis of Algorithms》课程教学资源(PPT课件讲稿)Week 4 Randomized Algorithms.pptx
- 香港中文大学:《Design and Analysis of Algorithms》课程教学资源(PPT课件讲稿)Week 3 Greedy Algorithms.pptx
- 香港中文大学:《Design and Analysis of Algorithms》课程教学资源(PPT课件讲稿)Week 2 Single Source Shortest Paths.pptx
- 香港中文大学:《Design and Analysis of Algorithms》课程教学资源(PPT课件讲稿)Week 1 Introduction to the course.pptx
- 香港中文大学:《Quantum Computing》课程教学资源(课件讲稿)Lecture 12 Quantum information theory 4.pdf
- 香港中文大学:《Quantum Computing》课程教学资源(课件讲稿)Lecture 11 Quantum information theory 3.pdf
- 香港中文大学:《Quantum Computing》课程教学资源(课件讲稿)Lecture 10 Quantum information theory 2.docx
- 香港中文大学:《Quantum Computing》课程教学资源(课件讲稿)Lecture 9 Quantum information theory 1.docx
- 香港中文大学:《Quantum Computing》课程教学资源(课件讲稿)Lecture 8 Quantum communication complexity 2.docx
- 香港中文大学:《Quantum Computing》课程教学资源(课件讲稿)Lecture 7 Quantum communication complexity 1.docx
- 香港中文大学:《Design and Analysis of Algorithms》课程教学资源(辅导课件)tutorial 12.pptx
- 香港中文大学:《Design and Analysis of Algorithms》课程教学资源(辅导课件)tutorial 02.pptx
- 香港中文大学:《Design and Analysis of Algorithms》课程教学资源(辅导课件)tutorial 03.pptx
- 香港中文大学:《Design and Analysis of Algorithms》课程教学资源(辅导课件)tutorial 04.pptx
- 香港中文大学:《Design and Analysis of Algorithms》课程教学资源(辅导课件)tutorial 05.pptx
- 香港中文大学:《Design and Analysis of Algorithms》课程教学资源(辅导课件)tutorial 06.pptx
- 香港中文大学:《Design and Analysis of Algorithms》课程教学资源(辅导课件)tutorial 08.pptx
- 香港中文大学:《Design and Analysis of Algorithms》课程教学资源(辅导课件)tutorial 09.pptx
- 香港中文大学:《Theory of Computational Complexity》课程教学资源(讲义)Lecture 1 Samples of possibility and impossibility results in algorithm designing.docx
- 香港中文大学:《Theory of Computational Complexity》课程教学资源(讲义)Lecture 2 More samples.docx
- 香港中文大学:《Theory of Computational Complexity》课程教学资源(讲义)Lecture 3 Communication complexity.docx
- 香港中文大学:《Theory of Computational Complexity》课程教学资源(讲义)Lecture 4 Multiparty Communication Complexity.docx
- 香港中文大学:《Theory of Computational Complexity》课程教学资源(讲义)Lecture 5 Formula complexity I.docx
- 香港中文大学:《Theory of Computational Complexity》课程教学资源(讲义)Lecture 6 Formula complexity II.docx
- 香港中文大学:《Theory of Computational Complexity》课程教学资源(讲义)Lecture 7 Decision Tree Complexity and Fourier analysis.docx
- 香港中文大学:《Theory of Computational Complexity》课程教学资源(讲义)Lecture 9 Circuit Complexity.docx
- 香港中文大学:《Theory of Computational Complexity》课程教学资源(讲义)Lecture 10 Circuit Complexity 2.docx
- 香港中文大学:《Theory of Computational Complexity》课程教学资源(讲义)Lecture 11 Information theoretical argument.docx
- 香港中文大学:《Theory of Computational Complexity》课程教学资源(讲义)Lecture 12 A glimpse of computational complexity.docx
- 香港中文大学:《CMSC5719 Seminar》课程教学资源(讲义)Lecture 08 An introduction to expander graphs(EXPANDER GRAPHS AND THEIR APPLICATIONS).pdf