Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Hi, I am having issues understanding how to do go about solving these problems in my algorithms course. Thanks! Assume we have an unlimited number
Hi, I am having issues understanding how to do go about solving these problems in my algorithms course. Thanks!
Assume we have an unlimited number of coins of each of the denominations 35, 15, 5, and 1. - What coins are dispensed by the greedy algorithm for the amount 45? - Find a different solution for the amount 45 that uses the same number of coins. Solve the activity selection problem for the activities listed below: i 1|2|3|4| 5 | 6 | 7 | 8 | 9 | s[i 1 3 5 7 9 11 13 15 17 fil 2 5 8 8 14 14 15 29 21 . 0-1 Knapsack: Given items with the following weights and values: w = [12, 1, 2, 1.4) v = [4, 2, 2, 1, 10) Use two different greedy techniques we discussed in class to approximate the optimal value of your knapsack if you are limited to a total weight W = 16Step 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