subject
Mathematics, 28.01.2020 21:41 randlemccray1907

The game dien is played in the following way:
you will be given a die with n sides. you will know the size of n, and can assume that n is a value greater than 1 and less than or equal to 30. you will be given a bit mask vector isbadsiderepresenting the sides of a die that will make you lose. the vector will be of size n, and 1 indexed. (there is no 0 side) you start with 0 dollars. at any time you have the option to roll the die or to quit the game if you decide to roll: and you roll a number not in isbadside, you receive that many dollars. (eg. if you roll the number 2 and 2 is not active -- meaning the second element of the vector is 0 -- in isbadside, then you receive 2 dollars) repeat step 4. and you roll a number in isbadside, then you lose all money obtained in previous rolls and the game ends. if you decide to quit: i. you keep all money gained from previous rolls and the game ends.
for this problem, determine an optimal policy for playing the game dien for n sides. you will be givenn and the array isbadside which indicates which sides are bad. as you will see, the optimal policy for this game will depend onyour current bankroll.

ansver
Answers: 2

Another question on Mathematics

question
Mathematics, 21.06.2019 17:30
Thelime contains the point(-3,0) and parallel x-3y=3( show all work)
Answers: 3
question
Mathematics, 21.06.2019 19:30
Find the commission on a $590.00 sale if the commission is 15%.
Answers: 2
question
Mathematics, 21.06.2019 20:40
Describe the symmetry of the figure. identify lines of symmetry, if any. find the angle and the order of any rotational symmetry.
Answers: 1
question
Mathematics, 21.06.2019 21:10
Aplane intersects a pris paralel to the base of the prism. the cross section is a polygon wth eight sides. how many sides does the base of the prism have? a. 10 b. 8 c. 7 d. 9
Answers: 1
You know the right answer?
The game dien is played in the following way:
you will be given a die with n sides. you will...
Questions
question
Mathematics, 15.09.2020 20:01
question
Mathematics, 15.09.2020 20:01
question
Biology, 15.09.2020 20:01
question
Mathematics, 15.09.2020 20:01
question
Biology, 15.09.2020 20:01
question
Mathematics, 15.09.2020 20:01
question
Mathematics, 15.09.2020 20:01
question
Mathematics, 15.09.2020 20:01
question
Mathematics, 15.09.2020 20:01
question
Social Studies, 15.09.2020 20:01
question
Mathematics, 15.09.2020 20:01
question
Mathematics, 15.09.2020 20:01
question
Mathematics, 15.09.2020 20:01
question
English, 15.09.2020 20:01
question
Mathematics, 15.09.2020 20:01
question
Mathematics, 15.09.2020 20:01
question
Mathematics, 15.09.2020 20:01
question
Mathematics, 15.09.2020 20:01
question
English, 15.09.2020 20:01
question
Mathematics, 15.09.2020 20:01
Questions on the website: 13722363