subject

Consider the following 2-player game played with a 6-sided die. on your turn, you can decide either to roll the die or to pass. if you roll the die and get a 1, your turn immediately ends and you get 1 point. if you instead get some other number, it gets added to a running total and your turn continues (i. e. you can again decide whether to roll or pass). if you pass, then you get either 1 point or the running total number of points, whichever is larger, and it becomes your opponent’s turn. for example, if you roll 3, 4, 1 you get only 1 point, but if you roll 3, 4, 2 and then decide to pass you get 9 points. the first player to get to n points wins, for some positive n. alice and bob are playing the above game. let w(x, y, z) be the probability that alice wins given that it is currently alice’s turn, alice’s score (in the bank) is x, bob’s score is y and alice’s running total is z. a) give a recursive formula for the winning probability w(x, y, z).b) based on the recursive formula you gave in the previous part, design an o(n3 ) dynamic programming algorithm to compute w(x, y, z). briefly describe your algorithm, prove its correctness and runtime.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:00
The great length of north america causes the climate to be varied. true false
Answers: 2
question
Computers and Technology, 22.06.2019 18:00
Which of the following physical laws can make the flow of water seem more realistic? a. motion b. gravity c. fluid dynamics d. thermodynamics
Answers: 2
question
Computers and Technology, 22.06.2019 18:30
Which of the following is an example of intellectual properly! oa. new version of a novelb. journal of ideasc. pages of a bookood. lines of a poem
Answers: 2
question
Computers and Technology, 23.06.2019 18:00
Ramona enjoys her job because she is able to kids in an after school program. the work value ramona feels strongest about is a. leadership b. risk c. independence d. work with people select the best answer from the choices provided a b c d
Answers: 1
You know the right answer?
Consider the following 2-player game played with a 6-sided die. on your turn, you can decide either...
Questions
question
English, 29.10.2020 22:10
question
Mathematics, 29.10.2020 22:10
question
Mathematics, 29.10.2020 22:10
question
Mathematics, 29.10.2020 22:10
question
Mathematics, 29.10.2020 22:10
question
History, 29.10.2020 22:10
Questions on the website: 13722362