Implement the Monte Carlo algorithm described in Algorithm 2. The input pa-
rameters should be the number of Monte Carlo steps in the simulation, Ns, as well as N ,
M , T and any other parameters you find necessary. It will be convenient to also have a
grid as an argument to the function. This grid is the initial system configuration before
the simulation starts. For monomer-systems, the only illegal move is trying to move a
monomer on top of another monomer.
Implement the Monte Carlo algorithm described in Algorithm 2. The input pa- rameters should be the number of Monte Carlo steps in the simulation, Ns, as well as N , M , T and any other parameters you find necessary. It will be convenient to also have a grid as an argument to the function. This grid is the initial system configuration before the simulation starts. For monomer-systems, the only illegal move is trying to move a monomer on top of another monomer.