**random_walk_2d_avoid_simulation_test**,
a MATLAB code which
calls random_walk_2d_avoid_simulation(), which
simulates a self-avoiding random walk in a 2D region.

The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.

random_walk_2d_avoid_simulation, a MATLAB code which simulates a self-avoiding random walk in a 2-dimensional region.

- random_walk_2d_avoid_simulation_test.m, calls all the tests.
- random_walk_2d_avoid_simulation_test.sh, runs all the tests.
- random_walk_2d_avoid_simulation_test.txt, the output file.

- 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.