Question

A mouse is put into a linear maze with 6 cells, with Cell 0 on the...

A mouse is put into a linear maze with 6 cells, with Cell 0 on the left end where the mouse will receive a shock, and Cell 5 on the right end, where the mouse will find food. The four cells in between are numbered 1 to 4. Assume that from any of the cells 1 to 4, the mouse moves right or left with probability p and q = 1 ? p

a) Starting from Cell 3, find the probability that the mouse finds food before being shocked. (b) Assuming that p = q = 0.5, and that the starting cell is Cell 2, find the probability that the mouse finds food before being shocked

0 0
Add a comment Improve this question Transcribed image text
Answer #1

for mouse to find food before shock

let the stat at k be g(k) so we have

g(k) =q*g (k+1) +p*g(k-1) 1<=k<=4

at g(5) we will have g(5)= 1 and g(0) =0

so

g(0)=0

g(1) =q g(2)

q(2) = q g(3) + p g(1)

g(3) =q g(4) + pg(2)

g(4) = q + p g(3)

solving

subtituting one afte tthe other we will get

g(4) =2q/(1+pq)

g(3) = (1-pq) g(4) /2p

= (1-pq)q/(1+pq)p

g(2) =q g(3) /1-pq

=1/((1+pq)q)

at .5, .5

we have p(2) =2/5

Add a comment
Know the answer?
Add Answer to:
A mouse is put into a linear maze with 6 cells, with Cell 0 on the...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Problem 4: Maze A mouse travels in a maze (shown in figure). At each discrete time-step, the mouse chooses one of the doors from the room it is curently in (uniformly at random), and moves to the cho...

    Problem 4: Maze A mouse travels in a maze (shown in figure). At each discrete time-step, the mouse chooses one of the doors from the room it is curently in (uniformly at random), and moves to the chosen neighboring room. Room three has a block of cheese in it (reward for the mouse (a) Model the location of mouse as a DTMC. Ist irreducible and aperiodic? Justify your answers b) Write the one-step probability transition matrix (c) Find the steady...

  • In this question, you will test, using a backtracking algorithm, if a mouse can escape from...

    In this question, you will test, using a backtracking algorithm, if a mouse can escape from a rectangular maze. To ensure consistency of design, start your solution with maze_start.c. The backtracking algorithm helps the mouse by systematically trying all the routes through the maze until it either finds the escape hatch or exhausts all possible routes (and concludes that the mouse is trapped in the maze). If the backtracking algorithm finds a dead end, it retraces its path until it...

  • 3. You are in a rectangular maze organized in the form of M x N cells/locations....

    3. You are in a rectangular maze organized in the form of M x N cells/locations. You are starting at the upper left corner (grid location: (1, 1)) and you want to go to the lower right corner (grid location: (M, N)). From any location, you can move either to the right or to the bottom, or go diagonal. I.e., from (i,j) you can move to (i, j + 1) or (i + 1,j) or to (i+1, 3+1). Cost of...

  • Code a program and reads a maze file and exits non-zero if the maze is not...

    Code a program and reads a maze file and exits non-zero if the maze is not valid. Or outputs the maze in a frame if it is good. The name of the file containg the maze is the only command-line parameter to this program. Read that file with the stdio functions, and close it propperly. A maze is a rectangular array of characters. It is encoded in the file in 2 parts: header line The header has 2 decimal intergers...

  • Maze Solving with Stacks Problem Statement Consider a maze made up of rectangular array of squares,...

    Maze Solving with Stacks Problem Statement Consider a maze made up of rectangular array of squares, such as the following one: X X X X X X X X X X X X X           X            X X X X    X X X           X               X     X X X     X X    X    X     X     X X X         X          X             X X X     X X X X X                X X X X X X X X X X X X X Figure...

  • This lab will use 2D arrays, recursive algorithms, and logical thinking. The following grid of hashes(#)...

    This lab will use 2D arrays, recursive algorithms, and logical thinking. The following grid of hashes(#) and dots(.) is a 2D array representation of a maze # # # # # # # # # # # # # . . . # . . . . . . # . . # . # . # # # # . # # # # . # . . . . # . # # . . . . #...

  • A dry cell battery has 6 individual cells and puts out 1.9 V total. (1) What...

    A dry cell battery has 6 individual cells and puts out 1.9 V total. (1) What is the potential difference over a single cell? V (2) What is the change in an electron's potential energy if it moves through a single cell? J (3) If the electron was stationary before being accelerated through the battery, what is its speed after moving through a the battery? m/s

  • 2. Let's now use Excel to simulate rolling two 6-sided dice and finding the minimum of...

    2. Let's now use Excel to simulate rolling two 6-sided dice and finding the minimum of both dice. • Create a new Excel sheet in your document. Click on cell Al, then click on the function icon f. and select Math&Trig, then select RANDBETWEEN. In the dialog box, enter 1 for bottom and enter 6 for top. • After getting the random number in the first cell, click and hold down the mouse button to drag the lower right corner...

  • The Problem A robot is asked to navigate a maze. It is placed at a certain...

    The Problem A robot is asked to navigate a maze. It is placed at a certain position (the starting position) in the maze and is asked to try to reach another position (the goal position). Positions in the maze will either be open or blocked with an obstacle. Positions are identified by (x,y) coordinates. At any given moment, the robot can only move 1 step in one of 4 directions. Valid moves are: ● Go North: (x,y) -> (x,y-1) ●...

  • I want to make a really simple maze game in Python. I need to use tkinter and GUI to make this ha...

    I want to make a really simple maze game in Python. I need to use tkinter and GUI to make this happened. Under you can see the description of the task, but i need help to getting startet. If there is an other easier way I'm just happy for the help!! task Description: You have to create a maze game. The goal of the game is to get out of the maze. The game should read The maze from a...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT