Suppose you work at a restaurant as a waiter. One night, only you and a coworker are staffed. At the end of the night, you decide to split the tips. You notice that you have 2k many bills (where k is an integer) of the following denominations: $1, $2, $5, and $10 bills. First, you and your co-worker spread out the bills in a fixed, non-ascending order. You both agree to take turns picking a bill to keep by selecting either the leftmost or the rightmost bill, and you are allowed to have the first pick. Knowing that your co-worker will adopt the strategy of always choosing the larger denomination on his turn, develop a recurrence relation that will maximize the amount of tips you get to keep.

Algebra and Trigonometry (MindTap Course List)
4th Edition
ISBN:9781305071742
Author:James Stewart, Lothar Redlin, Saleem Watson
Publisher:James Stewart, Lothar Redlin, Saleem Watson
Chapter14: Counting And Probability
Section14.CT: Chapter Test
Problem 1CT: Alice and Bill have four grandchildren, and they have three framed pictures of each grandchild. They...
icon
Related questions
Question

Suppose you work at a restaurant as a waiter. One night, only you and a coworker are staffed. At the end of the night, you decide to split the tips. You notice that you have 2k many bills (where k is an integer) of the following denominations: $1, $2, $5, and $10 bills. First, you and your co-worker spread out the bills in a fixed, non-ascending order. You both agree to take turns picking a bill to keep by selecting either the leftmost or the rightmost bill, and you are allowed to have the first pick. Knowing that your co-worker will adopt the strategy of always choosing the larger denomination on his turn, develop a recurrence relation that will maximize the amount of tips you get to keep. 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Recommended textbooks for you
Algebra and Trigonometry (MindTap Course List)
Algebra and Trigonometry (MindTap Course List)
Algebra
ISBN:
9781305071742
Author:
James Stewart, Lothar Redlin, Saleem Watson
Publisher:
Cengage Learning
College Algebra
College Algebra
Algebra
ISBN:
9781305115545
Author:
James Stewart, Lothar Redlin, Saleem Watson
Publisher:
Cengage Learning
Algebra & Trigonometry with Analytic Geometry
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:
9781133382119
Author:
Swokowski
Publisher:
Cengage
Algebra: Structure And Method, Book 1
Algebra: Structure And Method, Book 1
Algebra
ISBN:
9780395977224
Author:
Richard G. Brown, Mary P. Dolciani, Robert H. Sorgenfrey, William L. Cole
Publisher:
McDougal Littell
Holt Mcdougal Larson Pre-algebra: Student Edition…
Holt Mcdougal Larson Pre-algebra: Student Edition…
Algebra
ISBN:
9780547587776
Author:
HOLT MCDOUGAL
Publisher:
HOLT MCDOUGAL
College Algebra
College Algebra
Algebra
ISBN:
9781337282291
Author:
Ron Larson
Publisher:
Cengage Learning