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

  Explain process of extracting contours from edge image

Assume that the edge points in an image are extracted using a robust edge detection. Explain the process of extracting the contours from this edge image.

  Describe operating model for business process integration

Describe the chosen operating model in terms of business process integration. Compare the selected organization to the sample organizations using the chosen operating model in terms of business process integration.

  How much memory is required to store picture

A 1024*768 image is displayed, noninterlaced, at a rate of thirty frames per second. If the image is stored with 64k-color resolution, which uses 2 bytes per pixel, how much memory is required to store the picture?

  Explaining resulting scheme is not ind-cpa-secure

Let a variant of CBC-mode encryption where sender simply increments the IV by 1 each time a message is encrypted. Illustrate that resulting scheme is not IND-CPA-secure.

  Confidentiality and integrity for transaction to secure

Make a list of at least 10 confidentiality, integrity, and availability requirements which should be met for transaction to be secure.

  Explaining it acquisition issued request for proposal

A federal agency that does not use IT acquisition best practices issued a request for proposal that requires the contractor selected to use such practices, including certification at CMMI Level 3 or above.

  Responsibility to maintain ethical standard in department

Do managers have a responsibility to maintain an ethical standard within a department? If so, how is the expected ethical standard established? How is it documented? How is compliance measured?

  Key factors limiting use of personalization

Two key factors limiting the use of personalization to more precisely target marketing efforts to individual customers are?

  Technology aided in the evolution of instrument

Identify one musical instrument that has evolved over the centuries (e.g., the piano or guitar) so that you can enlighten us about the evolution of this instrument.

  Ratio of the frequency of the second processor to first one

The frequency of the processor is proportional to the voltage at which it is run. Considering only dynamic power, what will be the ratio of the frequency of the second processor to the first one?

  Project life cycle model to create game plan

Explain in scholarly detail how you would apply project life cycle model to create a game plan for developing different project.

  How computer technology has changed our society

How have the major players including the government either made these statements true or false? What are examples of why or why not.

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