Monkey problem: A little monkey is allowed to jump k times between n branches labeled with the integers in {0, 1, 2..., n-1}, for some even integer n> 5, starting from branch 0. The branches are arranged evenly each forming a radius of a circle. If the monkey is at branch i, then it will jump to one of branches branch (i-1) mod n and (i+1) mod n each with probability 1/2. The game is to predict at which branch will the monkey be after 10 jumps, if it started from the branch 0. Let f(i) be the probability that the monkey arrives at the branch i after 10 jumps from the branch 0, where i ranges from 0 to n - 1. i) Create a SAGE code that computes f.(i) by simulations, and plots all three graphs of for fe(i). fs(i) and fio(i). ii) Create a SAGE code that computes f. (i) using the Markov Chain method, and plots all three graphs of for fe(i). fs(i) and fio(i). iii) Provide reasons explaining the behaviour of the graph for odd i.

Operations Research : Applications and Algorithms
4th Edition
ISBN:9780534380588
Author:Wayne L. Winston
Publisher:Wayne L. Winston
Chapter18: Deterministic Dynamic Programming
Section18.4: Resource-allocation Problems
Problem 3P
icon
Related questions
Question

No image and no hand written solution 

 

With SAGE 2023
Due date Sunday 19 March at 13:00
Monkey problem:
A little monkey is allowed to jump k times between n branches labeled with the integers in
{0, 1,2....n-1}, for some even integer n > 5, starting from branch 0. The branches are arranged
evenly each forming a radius of a circle.
If the monkey is at branch i, then it will jump to one of branches branch (i-1) mod n and (i+1)
mod n each with probability 1/2.
The game is to predict at which branch will the monkey be after 10 jumps, if it started from the
branch 0.
Let f(i) be the probability that the monkey arrives at the branch i after 10 jumps from the branch
0, where i ranges from 0 to n - 1.
i) Create a SAGE code that computes f.(i) by simulations, and plots all three graphs of for fe(i),
fs(i) and fio(i).
Walk Problem
ii) Create a SAGE code that computes f.(i) using the Markov Chain method, and plots all three
graphs of for fe(i). fs(i) and fio(i).
iii) Provide reasons explaining the behaviour of the graph for odd i.
will of
Transcribed Image Text:With SAGE 2023 Due date Sunday 19 March at 13:00 Monkey problem: A little monkey is allowed to jump k times between n branches labeled with the integers in {0, 1,2....n-1}, for some even integer n > 5, starting from branch 0. The branches are arranged evenly each forming a radius of a circle. If the monkey is at branch i, then it will jump to one of branches branch (i-1) mod n and (i+1) mod n each with probability 1/2. The game is to predict at which branch will the monkey be after 10 jumps, if it started from the branch 0. Let f(i) be the probability that the monkey arrives at the branch i after 10 jumps from the branch 0, where i ranges from 0 to n - 1. i) Create a SAGE code that computes f.(i) by simulations, and plots all three graphs of for fe(i), fs(i) and fio(i). Walk Problem ii) Create a SAGE code that computes f.(i) using the Markov Chain method, and plots all three graphs of for fe(i). fs(i) and fio(i). iii) Provide reasons explaining the behaviour of the graph for odd i. will of
Expert Solution
steps

Step by step

Solved in 3 steps with 4 images

Blurred answer
Knowledge Booster
Problems on Dynamic Programming
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Operations Research : Applications and Algorithms
Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole