Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

XML Data Management Native XML And XML Enabled Database Systems

Authors: Akmal Chaudhri, Awais Rashid, Roberto Zicari, John Fuller

1st Edition

0201844524, 978-0201844528

More Books

Students also viewed these Databases questions

Question

4. What actions should Bouleau & Huntley take now?

Answered: 1 week ago