random_walk_2d_avoid_simulation_test
random_walk_2d_avoid_simulation_test,
a MATLAB program which
calls random_walk_2d_avoid_simulation() to simulate a self-avoiding random walk in a 2D region.
Licensing:
The computer code and data files described and made available on this web page
are distributed under
the GNU LGPL license.
Related Data and Programs:
random_walk_2d_avoid_simulation,
a MATLAB program which
simulates a self-avoiding random walk in a 2-dimensional region.
Source Code:
-
avoid_2d_length_056.png,
the plot of a self-avoiding random walk, which was requested to be
of length 100, but which terminated at length 56.
-
avoid_2d_length_100.png,
the plot of a self-avoiding random walk of 100 steps.
-
count_100_100.png,
a plot of how many random walks of a given length were found
when 100 such walks of length 100 were requested.
-
fit_100_100.png,
a plot of a least squares fit log(D^2) = A * log(N) + B to the
data computed by random_walk_2d_avoid_simulation.
Last revised on 10 March 2019.