help Let A = { 11, 8, 5, 1 } be a finite set of coin types. Each type in A is available in unlimited quantity. The coin

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

help Let A = { 11, 8, 5, 1 } be a finite set of coin types. Each type in A is available in unlimited quantity. The coin

Post by answerhappygod »

help
Let A = { 11, 8, 5, 1 } be a finite set of coin
types. Each type in A is available in unlimited quantity. The coin
changing problem is to make up an exact amount C using a minimum
total number of coins. C is an integer > 0. A greedy solution to
the problem will make change by using the coin types in the order
of 11, 8, 5, 1. When a coin type is being considered, as many coins
of this type as possible will be given. Give a counterexample to
show that this greedy algorithm doesn't necessarily generate
solutions that use the minimum total number of coins.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply