









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










Forest Fire project.
This project simulates the spread of a fire through a forest. The fire starts on the left edge of the forest, and spreads to neighboring trees. The fire spreads in four directions: north, east, south, and west. The fire's chance of reaching the right edge of the forest depends critically on the density of trees in the forest.
The Author of the book claims that there is a sharp transition somewhere between 55 and 63 percent.
Density of trees
Times the fire won
Times the fire lost
Chance of Propagation 55 0 35 0.0 % 57 5 30 14.3 % 59 16 19 45.7 % 61 29 6 82.9 % 63 35 0 100 % Table 1: Chances for propagation over 35 trails
My values are slightly off compared to the values the author had. This is most likely connected with the fact that I only ran 35 trails on each density. During these test I began to wonder if it would be possible to find this threshold value with mathematics.
The world at the moment is too large, but if I shrink it down to a manageable size maybe it would be possible to do some math on it. So let’s start with a world that is two by two.
Let:
Further assume that:
So there is a foursquare world that can be filled with trees.
Forest Fire project.
Four squares with trees.
Three squares with trees:
Two squares with trees:
P(F) is increasing as the density of the forest is increasing. The threshold value should be the inflection point where the function changes from concave-up to concave- down.
2
2 2 2
3
4 3 2 2 4 2
p
p
p p dP
d P
p p dp
dP
P F p p p p p p
So the threshold value is at.
Let us consider a 3x3 matrix:
Forest Fire project.
Five Squares: It can be a straight line over and then two squares that can be placed anywhere.
This will be repeated for each straight horizontal line. Then there are fourteen more combination that will allow propagation.
Forest Fire project.
This makes it 59 combinations that are successful with five trees.
Six Squares:
This will be easier to count off the combinations that will not cause propagation.
So there are:
17 6
= 67 successful combinations, with six trees.
Forest Fire project.
These fires propagate from left to right, with the whole left side on fire. Nothing in the equation says that a full side needs to be on fire to create propagation from one side to the other. Let’s create a world where the fire starts in the center and is able to spread to the sides.
Figure 2: The fire has spread from side to side
Figure 3: The fire has connected top and bottom.
Figure 4: The fire has not connected any sides.
As can be observed in figure 2-4, I had three different outcomes; the fire propagated from side to side, the fire only connected top and bottom or the fire didn’t connect any of the sides.
Forest Fire project.
Density of trees
Times the sides connected
Times there were no connection
Times up-down connection
Chance for side-side Propagation
Up-down connections included 55 % 0 35 0 0.0 % 0.0 % 57 % 2 31 2 5.7 % 11.4 % 59 % 14 18 3 40.0 % 48.6 % 61 % 26 9 2 74.3 % 80.0 % 63 % 34 0 1 97.1 % 100 % Table 2: Chances of propagation over 35 trails.
If I include the up-down connection to the amount of side-side connections the numbers for the probability for the fire to propagate is close to the same as the numbers for propagation when the whole left side was set on fire (see Table 1). This tells e that it does not matter where the fire is started or how large the fire was at the beginning, the probability for propagation is always the same.
The Author of the book claims that there is a sharp transition somewhere around 41%.
Density of trees
Times the fire won
Times the fire lost
Chance of Propagation 37 0 35 0.0 % 39 9 26 25.8 % 41 17 18 48.6 % 43 32 3 91.4 % 45 35 0 100 % Table 1: Chances for propagation over 35 trails
My values are slightly off compared to the values the author had. Once more this is most likely connected with the fact that I only run 35 trails on each density.
Figure 5: Success over diagonals Figure 6: Failure over diagonals
Forest Fire project.
So the equation will be
2
2 2 2
3 2
4 3 2 2 4 3 2
p
p p
p p p p dp
d P
p p p dp
dP
P F p p p p p p p
So the calculated threshold value for diagonals is.
Let’s consider the three by three world.
Further assume that:
So there is a nine-square world that can be filled with trees.
This gives for: 9 there is one combination. 8 there are nine combinations and, 7 there are 36 combinations.
Six squares:
With six trees there are three non-successful combinations.
This gives 3 6
= 81 successful combinations.
Forest Fire project.
Three squares squares:
With three trees there are s17 successful combinations.
This was interesting; there is a correlation between the old nine and the new three squares values, as well as between the old three and the new nine square values. It seems that the new values are:
^ −
old value for three squares (3) = new value for nine squares, and
old value for nine squares (^)
= new value for three squares.
So what was before a successful rout, in the three square world, is now an unsuccessful rout if it is rotated 90o^ and the colors of the squares are inversed. The same goes for three-square world.
Forest Fire project.
Unsuccessful combinations for four squares are:
It can be a straight line down and then two empty squares that can be placed anywhere.
This will be repeated for each straight vertical line. Then there are fourteen more combination that will not allow propagation.
Forest Fire project.
This makes it 59 combinations that are unsuccessful with four trees, and
59 4
= 67 successful combinations
p p p p p p p
p p p p p p p dp
d P
p p p p p p p dp
dP
p p p p p p p
p p p p
PT p p p p p p p p p
0 72 168 84 150 480 420 102
72 168 84 150 480 420 102
9 24 14 30 120 140 51
3 2 5 246 35 17
59 ( 1 ) 17 ( 1 ) 4
9
22 ( 1 ) 5
9 3 ( 1 ) 6
9 ( 1 ) 7
9 ( 1 ) 8
9 ( )
7 6 5 4 3 2
7 6 5 4 3 2 2
8 7 6 5 4 3 2
9 8 7 6 5 4 3
4 5 3 6
9 8 7 2 6 3 5 4
= − + − + − +
= − + − + − +
= − + − + − +
= − + − + − +
− + −
−
−^ +
−
−^ +
−
−^ +
−^ +
= +
There are six sign-changes, so Descartes’ theorem of real positive roots, says me absolutely nothing. All terms include p so one root has to be p = 0, further the sum of the coefficients is equal to zero so p = 1 also have to be a solution.
I guess that there is a third real-root [ 0 , .5 ] I will use Newton-Raphson’s iterative method to find that root.
The method gives a root at: p = .4197.
This is exactly the complement to the probability that the fire will spread over the N-S and E-W direction only. This I interpret as a proof that my claim that the diagonal can be seen as the probability that the empty squares will percolate from top to bottom is true.