Log In Start studying!

Select your language

Suggested languages for you:
Answers without the blur. Sign up and see all textbooks for free! Illustration

Q56E

Expert-verified
Discrete Mathematics and its Applications
Found in: Page 204
Discrete Mathematics and its Applications

Discrete Mathematics and its Applications

Book edition 7th
Author(s) Kenneth H. Rosen
Pages 808 pages
ISBN 9780073383095

Answers without the blur.

Just sign up for free and you're in.

Illustration

Short Answer

Show that if there were a coin worth 12 cents, the greedy algorithm using quarters, 12 - cent coins, dimes, nickels, and pennies would not always produce change using the fewest coins possible

For 12 - cents, greedy algorithm will always not produce fewest number of coins.

See the step by step solution

Step by Step Solution

Step 1

As mentioned in the question we have to use the greedy algorithm using quarters for 12 cents.

As per given preferences rankings of the men for the three women are:

m1:w3,w1,w2;m2:w1,w2,w3;m3:w2,w3,w1

Step 2

Now, for the rankings of the women, we have:

w1:m1,m2,m3;w2:m2,m1,m3;w3:m3,m2,m1.

This is because then no women will be matched with the men out of her preferences and also will not violate the condition of stability.

Therefore, we can conclude that for cents greedy algorithm will always not produce fewest number of coins.

Recommended explanations on Math Textbooks

94% of StudySmarter users get better grades.

Sign up for free
94% of StudySmarter users get better grades.