Consider the Knapsack problem. Let I be the set of items, a, b, be the size...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Consider the Knapsack problem. Let I be the set of items, a, b, be the size and the profit of item i for any i I, and W be the knapsack size. Consider the following greedy algorithm: 1. Sort the items in I in non-increasing order of b;/a, for all i € I. 2. Pack the items in the knapsack whenever possible according to the above order. Show that the above algorithm can perform arbitrarily bad, i.e., for any fixed constant € > 0, there exists an instance such that the approximation ratio of the above algorithm on this instance is at most €. Consider the Knapsack problem. Let I be the set of items, a, b, be the size and the profit of item i for any i I, and W be the knapsack size. Consider the following greedy algorithm: 1. Sort the items in I in non-increasing order of b;/a, for all i € I. 2. Pack the items in the knapsack whenever possible according to the above order. Show that the above algorithm can perform arbitrarily bad, i.e., for any fixed constant € > 0, there exists an instance such that the approximation ratio of the above algorithm on this instance is at most €.
Expert Answer:
Answer rating: 100% (QA)
The Knapsack problem is a wellknown NPhard optimization problem To show that the given greedy algori... View the full answer
Related Book For
Introduction to Algorithms
ISBN: 978-0262033848
3rd edition
Authors: Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest
Posted Date:
Students also viewed these programming questions
-
Find the equation of the line passing through the points ( 4 , 7 ) and ( 4 , 6 ) . Your answer should take the form x = a or y = a , whichever is appropriate.
-
List three specific parts of the Case Guide, Objectives and Strategy Section (See below) that you had the most difficulty understanding. Describe your current understanding of these parts. Provide...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
QUESTION 17 The moment of a force about a pivot point is; a. The force multiplied by the perpendicular distance fro the pivot point to the direction of the force b. the distance from the pivot to the...
-
To locate an IRS Revenue Procedure that was issued during the past week, which source would you consult? a. Federal Register. b. Internal Revenue Bulletin. c. Internal Revenue Code. d. Some other...
-
It is desired to enrich the partial pressure of hydrogen in a hydrogen-nitrogen gas mixture for which the partial pressures of both gases are 0.1013 MPa (1 atm). It has been proposed to accomplish...
-
A 50-mm-diameter nozzle meter is installed at the end of a 80 -mm-diameter pipe through which air flows. A manometer attached to the static pressure tap just upstream from the nozzle indicates a...
-
At the time of her death, Monica held the following assets. Fair Market Value Personal residence (title listed as Monica and Peter, tenants by the entirety with right of survivorship) $900,000...
-
Branding is very important to marketing, that is while most businesses focus on brands that attract customer's interest. Store brand is unique to a particular store compared to national brand . A...
-
On November 10, 2020, Singh Electronics began to buy and resell scanners for $55 each. Singh uses the perpetual system to account for inventories. The scanners are covered under a warranty that...
-
Calculating Net Cash Flow from Operating Activities (Indirect Method) The following information was obtained from Galena Company's comparative balance sheets. Assume that Galena Company's annual...
-
In Problems 23-34, find the value of each annuity at the end of the indicated number of years. Assume that the interest is compounded with the same frequency as the deposits. Amount of Deposit m 25....
-
Evaluate the expressions in Problems 11-18. \(\sum_{k=1}^{4} k^{2}\)
-
Convert each credit card rate in Problems 25-30 to the APR. Oregon, \(1 \frac{1}{4} \%\) per month
-
Find the amount of periodic payment necessary for each deposit to a sinking fund in Problems 35-46. Amount Needed A 35. Frequency n $7,000 annually Rate r 0.5% Time t 5 yr
-
Find the monthly payment for the loans in Problems 33-44. Used-car financing of \(\$ 2,300\) for 24 months at \(15 \%\)
-
A boat leaves a port and sails 50km due east. It then changes direction and sails another 50km on a bearing of 200. Calculate how far from the port the boat is. (3mks)
-
Find the inverse, if it exists, for the matrix. -1
-
Show the data structure that results and the answers returned by the FIND-SET operations in the following program. Use the linked-list representation with the weighted-union heuristic. Assume that if...
-
Suppose that we designed a proto-vEB structure in which each cluster array had only u 1/4 elements. What would the running times of each operation be?
-
Show that the Bellman-Ford algorithm, when run on the constraint graph for a system Ax b of difference constraints, minimizes the quantity (max {x i } min {x i }) subject to Ax b. Explain how this...
-
In a test with a separating and throttling calorimeter, the following observations were made : Water separated \(=2.04 \mathrm{~kg}\) Steam discharged from throttling calorimeter \(=20.6...
-
Entropy of wet steam is given by (a) \(s_{f}+x s_{f g}\) (b) \(x s_{g}\) (c) \(s_{g}+s_{f g}\) (d) \(x s_{f}\)
-
Entropy of \(1 \mathrm{~kg}\) of water at \(T K\) is given by (a) \(c_{p w} \ln \frac{\mathrm{T}}{273}\) (b) \(c_{p w} \log \frac{\mathrm{T}}{273}\) (c) \(c_{p w} \ln \frac{\mathrm{T}}{273}\) (d)...
Study smarter with the SolutionInn App