Problem 4. (15 points) The box stacking game is as follows: you start with a stack...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Problem 4. (15 points) The box stacking game is as follows: you start with a stack of n boxes. Then you make a sequence of moves; in one move you pick one stack and divide it into two smaller non-empty stacks. The game ends when you have n stacks, each containing one box. When you divide a stack into two stacks of sizes a and b, you get ab points. Your overall score is the sum of points you accumulate per move, from the starting position to when the game ends. What strategy should you follow to maximize your score? Hint: Play the game with 4 boxes-separate it into two stacks of 2 and 2 or into two stacks of 1 and 3. In both cases how many points do you collect on completion? Hmm, what if we started with 5 boxes instead? There are more ways to proceed - do different plays result in different final scores? Next, define the potential p (S) of a stack S with k boxes to be *(-¹), and the potential of a set of stacks 2 as the sum of the potentials of all its stacks. After each move, the potential decreases but you collect points. Add up the potential of the two stacks and the points earned. How does that compare to the original potential? Now use induction, and think chocolate bars! Problem 4. (15 points) The box stacking game is as follows: you start with a stack of n boxes. Then you make a sequence of moves; in one move you pick one stack and divide it into two smaller non-empty stacks. The game ends when you have n stacks, each containing one box. When you divide a stack into two stacks of sizes a and b, you get ab points. Your overall score is the sum of points you accumulate per move, from the starting position to when the game ends. What strategy should you follow to maximize your score? Hint: Play the game with 4 boxes-separate it into two stacks of 2 and 2 or into two stacks of 1 and 3. In both cases how many points do you collect on completion? Hmm, what if we started with 5 boxes instead? There are more ways to proceed - do different plays result in different final scores? Next, define the potential p (S) of a stack S with k boxes to be *(-¹), and the potential of a set of stacks 2 as the sum of the potentials of all its stacks. After each move, the potential decreases but you collect points. Add up the potential of the two stacks and the points earned. How does that compare to the original potential? Now use induction, and think chocolate bars!
Expert Answer:
Answer rating: 100% (QA)
Lets break down the problem step by step Base Case n1 When there is only one box the game ends immediately and you get 0 points Base Case n2 With two ... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
Draw a square and divide it into four equal sections. Label the horizontal axis Interactivity and the vertical axis Media Richness. Label the first column Low and the second column High. Label the...
-
A stack of N + 1 ideal polarizing sheets is arranged with each sheet rotated by an angle of /2N rad with respect to the preceding sheet. A plane linearly polarized light wave of intensity I0 is...
-
Suppose you start with a mixture of 1.00 mol CO and 4.00 mol H2 in a 10.00-L vessel. Find the moles of substances present at equilibrium at 1200 K for the reaction You will get an equation of the...
-
Top Bun, an international bread empire that reports under IFRS. Their fiscal year-end is December 31, 2022. They began the year on January 1, 2022 with 102116 common shares. They issued 56760 common...
-
Suppose the production possibility frontier for guns (X) and butter (Y) is given by X2 + 2Y2 = 900 a. Graph this frontier. b. If individuals always prefer consumption bundles in which Y = 2X, how...
-
1. For a deep discounter, should price be the only element of the retailers strategy that is promoted? Explain your answer. 2. In advertising prices, does Walmart have to enact the same prices for...
-
Are there organizations that provide a list of potential arbitrators and mediators in your area? What types of disputes are subject to arbitration?
-
The specific internal energy of formaldehyde (HCHO) vapor at 1 atm and moderate temperatures is given by the formula U(J/mol) = 25.96T + O.02134T 2 where T is in C. (a) Calculate the specific...
-
A farmer collects 2 containers of milk and sells them to an ice cream manufacturer for $20 each. The ice cream manufacturer creates 10 tubs of chocolate ice cream which it sells to a grocery store...
-
The following information is available for the preparation of the governmentwide financial statements for the city of Southern Springs as of April 30, 2020: From the preceding information, prepare,...
-
Simplify the following. $4508 1+0.48 x- $4508 1+0.48 219 365 219 365 = $ (Type an integer or a decimal.)
-
3. Consider a state space S {$1, S2, S3, S4, S5}. There are two agents, i = 1,2, with a common prior p = (0.3, 0.1,0.2, 0.3, 0.1). Agent 1 has information partition II = {{$, $2}, {$3}, {$4, $5}} and...
-
What are the Market Cap Leverage Ratios (Debt Value to Equity Value, Debt Value to Asset Value) for the following 2015 and 2016 financial data?(PLEASE SHOW THE JOB TO UNDERSTAND HOW THIS IS DONE....
-
7. A teacher gave a 10-point quiz to 10 students. Their scores are shown in the dot plot below. 2 3 5 6 7 8 9 10 a) (4 points) Find each of the following measures: Mean: Median: MAD (Mean Absolute...
-
How much arbitrage profit can you make before transaction costs based on the exchange rate quotations of SC$/$ = C$1.2500/$, S$/ = $1.5000/, and S/C$ = 0.5100/C$? Assume that you start with...
-
YTD % CHG STOCK SYM YLD P/E LAST NET CHG 4.6 DowChem DOW 1.7 21.43 36.87 0.1 How much of dividends were paid out most recently? What is the dividend payout ratio for DOW? If you assume DOW will...
-
Chance u ltd is a quoted company with authorized share capital of 250,000 ordinary shares of shs,1000 each. The company prepares its accounts as on 31 st march every year. And the trial balance...
-
Prove the formula for (d/dx)(cos-1x) by the same method as for (d/dx)(sin-1x).
-
Kent Pham, CPA, is a 45-year-old single taxpayer living at 169 Trendie Street, La Jolla, CA 92037. His Social Security number is 865-68-9635. In 2012, Kent's W-2 as the controller of a local...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family. The Incisors own a rental beach house in Hawaii. The beach house was rented for the full year during 2012...
-
Your supervisor has asked you to research the following situation concerning Owen and Lisa Cordoncillo. Owen and Lisa are brother and sister. In May 2012, Owen and Lisa exchange business pickup...
-
How closely related do you believe language and thought to be? During the production of Chapter 3 in this book, the authors and editors debated whether we should use the word "autistics" or the...
-
When did human language originate?
-
How do children learn language?
Study smarter with the SolutionInn App