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 14:30
The perimiter of a rectangle is 70 inches the legneth of the rectangle is 5 less than 3 times the width of the rectangle what is the width of the rectangle
Answers: 3
question
Mathematics, 21.06.2019 20:00
Frank owns a $141,000 home, for which he has a 30-year mortgage in the amount of $700 a month. once he has paid off mortgage, how much will he have paid in investment? a. $111,000 b. $109,000 c. $120,000 d. $141,000
Answers: 1
question
Mathematics, 21.06.2019 21:30
Acyclist bike x distance at 10 miles per hour .and returns over the same path at 8 miles per hour.what is the cyclist average rate for the round trip in miles per hour ?
Answers: 1
question
Mathematics, 21.06.2019 22:00
Which statements describe the solutions to the inequality x< -20 check all that apply. there are infinite solutions. each solution is negative. each solution is positive. the solutions are both positive and negative. the solutions contain only integer values. the solutions contain rational number values.
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
Social Studies, 31.10.2019 03:31
question
Mathematics, 31.10.2019 03:31
question
Social Studies, 31.10.2019 03:31
Questions on the website: 13722367