Be the first to rate this file! 143 downloads (last 30 days) File Size: 7.89 KB File ID: #19282

Coins

by Giuseppe Cardillo

 

21 Mar 2008 (Updated 15 Oct 2009)

Code covered by BSD License  

Is there an algorithm to use the max numbers of coins in your pocket?

Download Now | Watch this File

File Information
Description

How do you choose the coins in your pocket to pay something?
Is there an algorithm to use the max numbers of coins?
Of course there is as shown in the book "L'algoritmo del parcheggio" (the parking algorithm) by Prof. Furio Honsell.
This GUI help you to choose the exact combination of coins that you have in your pocket to pay the bill.

More details on: http://www.advancedmcode.org/coins.html

MATLAB release MATLAB 7.1.0 (R14SP3)
Zip File Content  
Other Files coins.fig,
coins.m,
license.txt
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
27 Mar 2008 Dimitri Shvorob

Is there an algorithm to use the max numbers of coins? Of course there is, as anybody who has taken half a course in dynamic programming will tell you. Your own code solves the problem in less than 10 lines :)

Please login to add a comment or rating.
Updates
12 Nov 2008

Changes in help section

14 Oct 2009

The file coins.fig is more rational using global variables

15 Oct 2009

Somewhere, the floating point representation of cents retrieve an incorrect results. This was fixed multiplying by 100 (so the cents became an integer).

Tag Activity for this File
Tag Applied By Date/Time
gui tools Giuseppe Cardillo 22 Oct 2008 09:54:30
example Giuseppe Cardillo 22 Oct 2008 09:54:30
coins Giuseppe Cardillo 22 Oct 2008 09:54:30
algorithm Giuseppe Cardillo 22 Oct 2008 09:54:30
choose Giuseppe Cardillo 22 Oct 2008 09:54:30
tools Giuseppe Cardillo 22 Oct 2008 09:54:30
gui Giuseppe Cardillo 22 Oct 2008 09:54:30
tools Cristina McIntire 12 Nov 2008 14:07:57
example Cristina McIntire 12 Nov 2008 14:07:57
gui Cristina McIntire 13 Nov 2008 16:34:49
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com