Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This question needs to use Dynamic Programming technique to solve. Just need to write the algorithm 1. Consider a gamble with n boxes, each box
This question needs to use Dynamic Programming technique to solve. Just need to write the algorithm
1. Consider a gamble with n boxes, each box i being labeled with a probability pi and a cost ci to open box i, a player needs to pay ci, and the content of the box is revealed: a voucher is in it with probability it's e independent of all other boxes. The player will get a reward W if and only if every box is opened and each yields a voucher. The player can choose the order in which she opens the boxes, and can quit at any point. For example, whenever she sees an empty box, she know:s she will never collect any reward, and therefore she should quit. This question asks for a polynomial time algorithm that, given the n labels and the reward W, outputs the optimal order in which the player should open the boxes, and determines if she should enter the game at all. (The player should enter the game if and only if the expected reward is no less than the expected cost. For example, if the two boxes are labeled pi opens the first box first, she will incur a cost of 10 on box 1, and she will continue opening box 2 with probability 0.3 (because if box 1 is empty she should quit the game), which will cost her 5. The expected cost is 10+0.3 5-115. Similarly, if the player opens box 2 first, the expected cost is 5 +0.5 10-10. Therefore the optimal ordering is first box 2 then box 1. The expected reward is 0.3 0.5W-0.15W. Therefore the player should enter the game if and only if W is at least 10/0.15. ity pi, otherwise it's empty. The event that box i contains a voucher is = 0.3, c-10, and P2- 0.5, c2 = 5. If the player
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started