Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

SICP: Counting change

101 views
Skip to first unread message

.

unread,
May 17, 2012, 4:54:25 AM5/17/12
to
Hello,

"If a is exactly 0, we should count that as 1 way to make change." [1]
Could you explain this? I thought that we should count that as 0 ways
to make a change.

[1] http://mitpress.mit.edu/sicp/full-text/book/book-Z-H-11.html#%_sec_1.2.2

Regards

Jussi Piitulainen

unread,
May 17, 2012, 6:15:55 AM5/17/12
to
0 dollars = 0 half-dollars + 0 quarters + 0 dimes + 0 nickels + 0 pennies.

toby

unread,
May 17, 2012, 10:48:33 PM5/17/12
to
No, it's a way to make change. If you go to the store, buy milk for $1.00, and you pay with $1.00, the change is $0.00. The cashier doesn't say "sorry, I can't make change for that;" change is made (in exactly one way) just that no money happens to need moving.
0 new messages