Replies: 2 comments 5 replies
-
I very much agree. If you solve using DFS, it will automatically fill the caverns above the blue sites. That's how I generated my visualizations. But if you solve instead iteratively, but doing row 1, then row 2, etc, then you will get the other diagram. Both methods will give the same To get the iterative method to draw a different picture, you can flip the lattice over and repeat the simulation, and then color sites blue if they got filled in either or both simulations. Or, you could modify the DFS solution to only go downwards (that would correspond to commenting out one line in the recursive call). The latter actually should give you a minor speedup in calculating |
Beta Was this translation helpful? Give feedback.
-
Quick comment about a typo. The text above Todo for problem 2 says "fraction of open sites Edit: |
Beta Was this translation helpful? Give feedback.
-
This is a clarification question about the definition of percolation.
In the graph provided in the hw1 jupyter notebook also attached here
the circled site could only be filled if water flowed upwards.
At the same time, the commented description of class PercolationSimulation says that,
This to me sounds contradictory to the above graph. Instead, taking the commented description of percolation to be correct, I suggest the correct graph should be,
Similarly, the given graph
should be
What do you think? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions