Question: Analysis of Algorithm quickly please 4. Explaind and solve the following problen: (20 points) 1. What is the differenoe betwoent Gready Approakt and Knapsack Jroblem
4. Explaind and solve the following problen: (20 points) 1. What is the differenoe betwoent Gready Approakt and Knapsack Jroblem explain. ii. Solve the following Ciroody preblem. I hwe the following anirals and their eoits: - Lamb 7 L corrpulsary. - Cow 5 f compulsory? - Cunil 12x mot comijuluery - Chisher 3E compulsory - Rabbir 10 ef not comgalary Total amount of moncy that thave is 272f. Here tamb, Cow and Chicken are computsory to buy, but Quai and Rabbit are optional to bay. Alt animals are unique and exact so buy ( 1.5,2.9 cte. Not possible to buy? . 5olve the abave Greedy prohlem. 5. What is the knapssck solution for the below table? (IS points) Let W=30
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
