subject
Mathematics, 09.04.2021 02:00 kimmy6973

Smoov and Curly are playing a game. In this game, there is a stack of n bricks. The ith brick in the stack is worth v[i] points (where v[0] is the value of the top brick). The players take turns removing either 1 or 2 bricks from the top of the stack. The player that removes a brick earns the number of points associated with the brick. The game ends when all the bricks have been removed, and the winner is the player who has earned the most points. For example, if v = [1, 1, 3, 4] and Smoov is the first player to move, then Smoov's optimal strategy is to take just the first brick (earning 1 point). Curly's optimal strategy is then to take the next two bricks (earning 4 points). Smoov then finishes by taking the last brick (earning 4 more points). Therefore, the maximum score Smoov can earn is 5. Assume that Smoov takes the first turn and that both Smoov and Curly play optimally. Given the list v of the values of the bricks (all integers greaterthanorequalto 0), output the maximum score Smoov can earn.

Required:
a. Define the subproblems to be solved in English.
b. Define an appropriate recurrence for the subproblems.

ansver
Answers: 2

Another question on Mathematics

question
Mathematics, 21.06.2019 17:00
Line gh passes through points (2, 5) and (6, 9). which equation represents line gh? y = x + 3 y = x – 3 y = 3x + 3 y = 3x – 3
Answers: 1
question
Mathematics, 21.06.2019 19:00
Which of the expressions (on the photo document i inserted) together represent all solutions to the following equation? 8cos(12x)+4=-4 *the answer should be in degrees.* > i would like for someone to explain the process to find the solutions for this.
Answers: 2
question
Mathematics, 21.06.2019 19:30
Me find the value of x each figure.
Answers: 1
question
Mathematics, 21.06.2019 22:10
Using graph paper, determine the line described by the given point and slope. click to show the correct graph below.(0, 0) and 2/3
Answers: 2
You know the right answer?
Smoov and Curly are playing a game. In this game, there is a stack of n bricks. The ith brick in the...
Questions
question
Law, 14.12.2020 21:10
question
Mathematics, 14.12.2020 21:10
question
Mathematics, 14.12.2020 21:10
Questions on the website: 13722361