There exists finite set of coin types-coin-changing problem

Assignment Help Basic Computer Science
Reference no: EM1361440

Let An = {a1, a2, ... , an} be a finite set of distinct coin types (for example a1 = 50 cents, a2 = 25 cents, a3 = 10 cents, and so on.) We can assume each ai is an integer and a1 > a2 > ... > an. Each type 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) Show that if an ≠ 1, then there exists a finite set of coin types and a C for which there is no solution to the coin-changing problem.

b) Show that there is always a solution when an = 1.

c) When an = 1, a greedy solution to the problems makes change by using the coin types in order a1, a2, ... , an. When coin type ai is being considered, as many coins of this type as possible are given. Write an algorithm based on this strategy. Show that this algorithm doesn't necessarily generate solutions that use the minimum total number of coins.

d) Show that if An = {kn-1, kn-2, ... , k0} for some k > 1, then the greedy method of part

(c) always yields solutions with a minimum number of coins.

Reference no: EM1361440

Questions Cloud

Explain how does the price of fertilizer compare : Explain how does the price of fertilizer compare to the average total cost, the average variable cost, and the marginal cost of producing fertilizer.
Find the acceleration of the bucket : suppose that the springs have somehow not yet compressed to their maximum amount. How much are the springs compressed.
Calculate company margin of safety : Van Roekel Corporation sells a single product. The product has a selling price of $100 each unit and variable expenses of 80 percent of sales. If the company's fixed expenses total $150,000 each year,
Disease prevention strategies : Should healthcare organizations develop disease prevention strategies? Why or why not? Do you think ethically it is their responsibility?
There exists finite set of coin types-coin-changing problem : Show that if an ≠ 1, then there exists a finite set of coin types and a C for which there is no solution to the coin-changing problem. Show that there is always a solution when an = 1.
Illustrate what would be the size of the us labor force : Suppose that the U.S. noninstituional adult population is 230 million and the labor force participation rate is 67 percent. Illustrate what would be the size of the U.S. labor force.
Solving finance related problems : In a statement of cash flow, the term cash includes, The ownership of common stock in a corporation usually carries the following rights:
Describe the profit-maximizing amounts of electricity : Describe the profit-maximizing amounts of electricity to produce at the two facilities, the optimal price, and the utility company's profits.
How college receive payments : The college has annual fixed costs of $10 million, and the variable cost for each additional student is $5,000. To continue operating, the college must receive payments equal to its total costs.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Explaining vulnerability in novice programmer-s code

You have found vulnerability in novice programmer's code and have recommended sweeping changes in your organization to address issues.

  Explaining components of computing environment

According to Raggad's taxonomy of information security, a computing environment is made up of ?ve continuously interacting components namely; activities, people, data, technology and networks.

  What was business impact of tjx-s data loss on tjx

What was the business impact of TJX's data loss on TJX, consumers and banks and how effectively did TJX deal with these problems?

  Explain vulnerability in the system

How would you respond if Goli came to you describing a vulnerability in your system and offering to help fix it--What would incline you to hire her? What would disincline you from doing so?

  Explaining multiple-level total

Whch of the following is an example of a multiple-level total? A total shown at the end of report for number of books in a library or Total shown every time the type of book changes (for example, reference, fiction, nonfiction).

  Finding project schedule if critical path is identified

Describe in scholarly detail how you find out a project schedule once critical path has been identified.

  Evaluate for risk management purposes

Choose three information assets that a typical organization has and evaluate for risk management purposes which vulnerability should be evaluated for additional controls first?

  How to use system tools to identify problems

How can you use system tools, such as the Task Manager, to help identify and troubleshoot these problems? Report your findings in a one page paper.

  Hardware and system software qualify as infrastructure

What is infrastructure? In what was do hardware and system software qualify as infrastructure? What basic strategic planning questions should be addressed with respect to infrastructure?

  Significant difference of typical salary for system analyst

Is there a significant difference between typical salaries for system analyst, designers, and developers? What is the difference between typical salaries for these different groups?

  Drivers for digital dashboards found in automobiles

Believe or not digital dashboards can be found in automobiles. In fact, Mossberg (2010) wrote article titled, "Ford Drives Digital Dashboards to Next Level. Are drivers ready for this kind of technology?

  Create application to declares array of ten houseplant

Design an application that declares an array of 10 HousePlants. Prompt the user for data for each of the HousePlants, then display all values.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd