Landscapes and Trees

Chapter: Landscapes and Trees

In this assignment, you will simulate a forest fire using "trees" on a "landscape". Here, the landscape is going to be 2-dimensional grid of cells, each of which either either contains a tree of some kind or else is devoid of trees. This rudimentary landscape is useful in studying burn patterns, safety measures and the effects of a "controlled burn".

For example, here is a 5 x 5 grid with 17 trees, represented with ones, twos and zeroes (1 = pine tree, 2 = oak tree, 0 = no tree).

   1 2 1 0 1
   0 0 2 0 1
   0 1 1 1 0
   1 0 2 2 1
   1 1 0 1 1

The following "rules" determine the behavior of the system:

Let us consider what happens when a pine tree is ignited. The tree itself catches fire and ignites its pine neighbors, which in turn ignite their pine neighbors, and so on. All these trees eventually burn down. Eventually, the burning stops and we are left with the stumps of a cluster. Thus, a pine-cluster is a collection of pine trees, such that any two pine trees in the cluster are connected to each other via a string of neighboring pine trees. Hence, in the example below

   1 1 1
   0 0 0
   0 1 1
there are two clusters. The cluster
   x x x
   0 0 0
   0 1 1
and the cluster
   1 1 1
   0 0 0
   0 x x
It is clear that if any tree in a cluster is ignited, the entire cluster will eventually burn.

Oaks are trees with different "burn" properties:

Your goal in this project is to consider the effects of a controlled burn on mixed forests. This simulation that you will write is part of a long tradition of simulating "macro" behaviors (for example: a complete burn) that arise from local behavior of small units (a burning tree ignites its neighbors). These types of simulations are often called agent or artificial society simulations.


rhyspj@gwu.edu