Answered step by step
Verified Expert Solution
Question
1 Approved Answer
2. (20 pts extra credit) Even though in this class we focus on those greedy algorithms that generate optimal solutions, in general a greedy algorithm
2. (20 pts extra credit) Even though in this class we focus on those greedy algorithms that generate optimal solutions, in general a greedy algorithm may not give an optimal solution. So, we are interested in those greedy algorithms that generate a good enough solution, i.e., not too far from the optimal solution. Let us consider one such problem as follows Given subsets Si, S2, . Sn of a set S of points and an integer m, a maximum m-cover is a collection of m of the subsets that covers the maximum number of points of S. Finding a maximum m-cover is a computationally hard problem. Give a greed;y algorithm that achieves approximation ratio 1-1/e; i.e., let y be the maximum number of points that can be covered by m subsets and r be the number of points that are covered by the m subsets generated by your algorithm, then give a greedy algorithm such that x 2 (1 - 1/e )y Some useful hints: You may want to use the inequality (1-1/m)rn 1/e for integer m > 1. . You may want to use induction at some point. 2. (20 pts extra credit) Even though in this class we focus on those greedy algorithms that generate optimal solutions, in general a greedy algorithm may not give an optimal solution. So, we are interested in those greedy algorithms that generate a good enough solution, i.e., not too far from the optimal solution. Let us consider one such problem as follows Given subsets Si, S2, . Sn of a set S of points and an integer m, a maximum m-cover is a collection of m of the subsets that covers the maximum number of points of S. Finding a maximum m-cover is a computationally hard problem. Give a greed;y algorithm that achieves approximation ratio 1-1/e; i.e., let y be the maximum number of points that can be covered by m subsets and r be the number of points that are covered by the m subsets generated by your algorithm, then give a greedy algorithm such that x 2 (1 - 1/e )y Some useful hints: You may want to use the inequality (1-1/m)rn 1/e for integer m > 1. . You may want to use induction at some point
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started