Consider again the task of writing a simulation involving forest fires. Modeling
ID: 3573885 • Letter: C
Question
Consider again the task of writing a simulation involving forest fires. Modeling a region of forest using a grid of forest squares, each of which has information on the proportion of low-lying vegetation (from 0 to 1), the number of trees, and whether that square is already on fire, we can specify various parameters for the likelihood of fire spreading to adjacent squares and (once on fire) how quickly the vegetation and trees in a given square will be consumed. Our high-level algorithm for running this simulation is as follows: forest[fire_start.row][fire.start.col].on_fire = true; loop while burning: for (row up to height of forest) for (col up to width of forest) if (forest [row][col] has fuel? and catches.fire(forest, row, col)) forest[row][col].on_fire = true; for (row up to height of forest) for (col up to width of forest) if (forest[row][col].on_fire) burn contents at row, col if (not (forest[row][col] has fuel?)) forest[row][col].on_fire = false For this problem, youll write more detailed pseudocode for two aspects of this problem: "burning", and ending the loop. Assume that once a section of the forest is on fire, at each time "tick" the vegetation coverage decreases by 0.2 (but never becoming negative), the number of trees decreases by 10% (rounded up, so always at least one tree will burn). Assume that the outer loop should continue as long as any part of the forest grid is still on fire. In your answer, make use of the fine numbers to indicate where your pseudocode will be added or what it will replace. Things to think about for later: How would different forest data affect the fire patterns? How much do the different parts of the simulation rely on randomness?Explanation / Answer
7th line
for(row up to height of forest)
for(col upto width of forest)
if (forest [row][col].on_fire)
tick everu burned tree at row
forest[row][col].on_fire=true;
FOREST DATA AFFECT THE FILE PATTERN:
The useof landsat 8 oli data for2013 on wards
1. The repossesing of data from 2011to 2013 on wards was maximum loss
2.Improvedtreating data for calibrating the loss model.
3. Improved input spectral features for building andapplying the loss model
4.These changes leadto a different andimprove detection of global forest loss.
Free validation of reset incorporating landsat 8 has not been undertaken yet.
Improved changes districted in the 2011-2014 are boreal forest loss due to fire.
5. Small holders rotation apiculture clearing in dry and humid tropical fores