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, 21.06.2019 16:10
Which is a benefit of peer-to-peer networking? easy to add or remove devices main server has a fast processor more reliable than a client/server network same software versions on all computers
Answers: 3
question
Computers and Technology, 24.06.2019 00:30
Use the keyword strategy to remember the meaning of the following word. the meaning for the word has been provided. write your keyword and describe the picture you would create in your mind. obfuscate: to make something so confusing that it is difficult to understand.
Answers: 2
question
Computers and Technology, 24.06.2019 07:00
Why would a business likely use a java applet - to back up their data files for the business - to create a program that a customer can launch in their web browser - to create music on a powerpoint presentation - to organize files on their company directory
Answers: 3
question
Computers and Technology, 24.06.2019 16:00
Your is an example of personal information that you should keep private.
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
History, 21.05.2021 01:50
question
English, 21.05.2021 01:50
question
Mathematics, 21.05.2021 01:50
question
World Languages, 21.05.2021 01:50
question
Mathematics, 21.05.2021 01:50
question
Mathematics, 21.05.2021 01:50
question
Mathematics, 21.05.2021 01:50
Questions on the website: 13722363