Clarification about walker steps for assignment 7

Clarification about walker steps for assignment 7

by Christian DiMaria -
Number of replies: 2

I'm working on my single walker module and I just wanted to make sure I'm understanding the assignment properly. Does the walker need to take a step if there is a valid direction to move in each timestep, or should there also be a chance of the walker staying where it is?

I interpreted it as the walker must always take a step if there are adjacent empty cells, and the step direction is determined by the probabilities l, r, u, and d. So for example, if there is only one adjacent empty cell to the right of the walker and all the other cells around it are full, it will move to the right with 100% certainty.  And if all surrounding cells are empty, if we let g = 1, then there is a 25% chance of it moving in any direction but it will definitely not stay where it is. But the calculation will be different if there is also a chance for the walker to stay where it is.

In reply to Christian DiMaria

Re: Clarification about walker steps for assignment 7

by Ramses van Zon -
Correct, the walker should always move (unless that is absolutely impossible from the start).