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 16:30
Yoku is putting on sunscreen. he uses 2\text{ ml}2 ml to cover 50\text{ cm}^250 cm 2 of his skin. he wants to know how many milliliters of sunscreen (c)(c) he needs to cover 325\text{ cm}^2325 cm 2 of his skin. how many milliliters of sunscreen does yoku need to cover 325 \text{ cm}^2325 cm 2 of his skin?
Answers: 3
question
Mathematics, 22.06.2019 00:30
Pls as soon as ! will award brainliest and 20 ! also the answer is not 22.5 degrees! find the value of x in each case:
Answers: 3
question
Mathematics, 22.06.2019 01:00
Use mathematical induction to prove the statement is true for all positive integers n, or show why it is false. 1^2 + 4^2 + 7^2 + + (3n - 2)^2 = [n(6n^2-3n-1)/2]
Answers: 1
question
Mathematics, 22.06.2019 01:30
Write 37/22 as a decimal rounded to the nearest hundredth.
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
History, 02.12.2019 08:31
question
Mathematics, 02.12.2019 08:31
question
Mathematics, 02.12.2019 08:31
question
English, 02.12.2019 08:31
Questions on the website: 13722359