Code covered by the BSD License  

Highlights from
Coins

Be the first to rate this file! 2 Downloads (last 30 days) File Size: 7.89 KB File ID: #19282
image thumbnail

Coins

by Giuseppe Cardillo

 

21 Mar 2008 (Updated 23 Dec 2009)

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

| 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

You can visit my homepage http://home.tele2.it/cardillo
My profile on XING http://www.xing.com/go/invita/13675097
My profile on LinkedIN http://it.linkedin.com/in/giuseppecardillo

MATLAB release MATLAB 7.1.0 (R14SP3)
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).

23 Dec 2009

Changes in description

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

Contact us at files@mathworks.com