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, 23.06.2019 03:00
Jason, samantha, ravi, sheila, and ankit are preparing for an upcoming marathon. each day of the week, they run a certain number of miles and write them into a notebook. at the end of the week, they would like to know the number of miles run each day, the total miles for the week, and average miles run each day. write a program to them analyze their data. your program must contain parallel arrays: an array to store the names of the runners and a two-dimensional array of five rows and seven columns to store the number of miles run by each runner each day. furthermore, your program must contain at least the following functions: a function to read and store the runners’ names and the numbers of miles run each day; a function to find the total miles run by each runner and the average number of miles run each day; and a function to output the results. (you may assume that the input data is stored in a file and each line of data is in the following form: runnername milesday1 milesday2 milesday3 milesday4 milesday5 milesday6 milesday7.)
Answers: 3
question
Computers and Technology, 23.06.2019 10:00
Whats three fourths of 15(this is supposed to be in math but i clicked too fast)
Answers: 1
question
Computers and Technology, 23.06.2019 16:10
What is the ooh? a. omaha occupation handbook b. online occupational c. occupations online d. occupational outlook handbook select the best answer from the choices provided
Answers: 3
question
Computers and Technology, 23.06.2019 16:30
Monica and her team have implemented is successfully in an organization. what factor leads to successful is implementation? good between different departments in an organization leads to successful is implementation.
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, 07.01.2021 19:50
question
Mathematics, 07.01.2021 19:50
question
Mathematics, 07.01.2021 19:50
question
Mathematics, 07.01.2021 19:50
question
Mathematics, 07.01.2021 19:50
question
Mathematics, 07.01.2021 19:50
question
Mathematics, 07.01.2021 19:50