Question regarding Assignment 7

Question regarding Assignment 7

by Shashank Mehendale -
Number of replies: 3
  1. I might be missing something very simple here, but shouldn't the probabilities l,r,u, and d add up to 1? In the current version, I do not think that is the case. Should the actual probabilities be l/z, r/z, u/z and d/z instead?

  2. Since we are evolving K different walkers, but on the same lattice, do they interact with each other? My assumption is they do not. That is, a single cell can be occupied by more than one walker. In other words, a walker will not be affected by the presence of another walker.
In reply to Shashank Mehendale

Re: Question regarding Assignment 7

by Ramses van Zon -
1. You are right, what was meant was that z is to be chosen such that l+r+u+d is equal to 1.
2. All walkers should be independent, without interaction.
In reply to Ramses van Zon

Re: Question regarding Assignment 7

by Christian DiMaria -
Is it okay if we did not normalize the probabilities by z, since the ratios of l, r, u, and d will be the same? In my code I just generated a random number on the range [0,z) rather than [0,1) when choosing a direction, and my walkers seem to be behaving properly (the image shows a demo for a small lattice).
Attachment Screenshot 2025-03-21 at 9.06.32 AM.png
In reply to Christian DiMaria

Re: Question regarding Assignment 7

by Ramses van Zon -
Haven't looked at the details, but yes, it they are not normalized but you draw a random number from 0 to l+r+u+d it will have the same effect.