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:00
Arestaurant offers a $12 dinner special that has 5 choices for an appetizer, 12 choices for an entrée, and 4 choices for a dessert. how many different meals are available when you select an appetizer, an entrée, and a dessert? a meal can be chosen in nothing ways. (type a whole number.)
Answers: 1
question
Mathematics, 21.06.2019 19:30
Okay so i didn't get this problem petro bought 8 tickets to a basketball game he paid a total of $200 write an equation to determine whether each ticket cost $26 or $28 so i didn't get this question so yeahyou have a good day.
Answers: 1
question
Mathematics, 21.06.2019 19:40
Which of the following could be the ratio of the length of the longer leg 30-60-90 triangle to the length of its hypotenuse? check all that apply. a. 313 6 b. 3: 215 c. 18: 13 d. 1: 13 e. 13: 2 of. 3: 15
Answers: 3
question
Mathematics, 21.06.2019 21:30
The map shows the location of the airport and a warehouse in a city. though not displayed on the map, there is also a factory 112 miles due north of the warehouse.a truck traveled from the warehouse to the airport and then to the factory. what is the total number of miles the truck traveled?
Answers: 3
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, 23.03.2021 01:00
question
Mathematics, 23.03.2021 01:00
question
Mathematics, 23.03.2021 01:00
question
Mathematics, 23.03.2021 01:00