Keep It Simple, Stupid PerlMonks

### Re^3: Running a simulation - expected outcome

by BrowserUk (Pope)
 on Oct 01, 2012 at 18:41 UTC ( #996712=note: print w/replies, xml ) Need Help??

That isn't my reading of his algorithm.

You are probably right.

I took cristoforo's description of the algorithm -- which includes this passage "moving randomly 1 to 6 cells" -- as correct. Looking back to the originator's code, I do not know where than came from, but I didn't look very hard now, or at all before posting.

there isn't the possibility of moving diagonally.

Hm. It depends how you interpret the phrase: moving randomly 1 to 6 cells, (up, down, left or right),, that not quite the same as "not diagonally". I took to mean that move 5 UP and 1 LEFT was a valid move. Hence I came up with my "13 x 13 diamond pattern" and 1:84:

```......X......
.....XXX.....
....XXXXX....
...XXXXXXX...
..XXXXXXXXX..
.XXXXXXXXXXX.
XXXXXX.XXXXXX
.XXXXXXXXXXX.
..XXXXXXXXX..
...XXXXXXX...
....XXXXX....
.....XXX.....
......X......

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Replies are listed 'Best First'.
Re^4: Running a simulation - expected outcome
by Cristoforo (Curate) on Oct 01, 2012 at 20:59 UTC
Yes, the specs say either of 1 way (up 1 to 6, right 1 to 6, down 1 to 6 or left 1 to 6, where a number is randomly chosen from 1 to 6 for each step).

My misreading or overthinking.

But I think that my main point still applies: because the originator was following a path, his choices at each step are far restricted compared to your pick a random start point each time.

On average, random walks tend to cover far less than the full field of play, which if the infected squares are randomly distributed means the odds of infection are lessened.

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
network sites:

Create A New User
Node Status?
node history
Node Type: note [id://996712]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2017-12-14 06:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
Voting Booth?
What programming language do you hate the most?

Results (384 votes). Check out past polls.

Notices?