Answered step by step
Verified Expert Solution
Link Copied!

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!

image text in transcribed

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 = 16

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

Privacy In Statistical Databases International Conference Psd 2022 Paris France September 21 23 2022 Proceedings Lncs 13463

Authors: Josep Domingo-Ferrer ,Maryline Laurent

1st Edition

3031139445, 978-3031139444

More Books

Students also viewed these Databases questions