Prepared by: Becky Bamber
Herds are simply groups of animals, including people. They also could be classified as a cascade. A cascade is where an individual makes decisions based upon something that has already happend regarless of whether or not it is the correct thing to do. An example of this would be: there is a group of people who are all going to one place, there is one person who knows exactly how to get there and another person who knows part of the way but not the exact route. Everyone opts to follow the one who knows exactly where to go, but along the way the person leading makes a mistake and the person who was unsure of the way knows that it is the wrong way to go but still opts to follow the rest of the group instead of going in the corrent way. With people, this behavior can be the result of peer pressure and a desire to follow the group instead of going against it as we have an unconscious desire to be a part of something and not be alone. In the animal world, most animals live in groups for many reason including safety, and making food easier to find. Animals do not want to be separated from a group and will do anything to rejoin the group.
The general algorithm is for animals to be placed randomly and to move at a semi random heading until one meets up with another and then they move in a similar manner. Originally the goal was to have individuals form their own groups and change color to indicate their group affiliation. For some reason this did not work, all the animals turned black and ceased to move. So a modification was made such that the animals will group according to their color, making it easy to see what they are doing and to observe the group behavior. This is not unrealistic as people will form groups based on similar values and ideas. One other thing to note is that two animals can occupy the same space and will still act accordingly to their group. In this simulation you can modify how many animals there are in the space and how large a step they can take. These two modifications will cause different behaviors to be seen as it demonstrates how the size of a trend/decision can impact the group. Observer Code turtles-own [closest closest-distall closest-dist] to setup Turtle Code to move to turn :other-heading :degrees Herding algorithm: View online If that doesn't work, you can download the StarLogo package from their homepage at http://education.mit.edu/starlogo/ and my .slogo project file from below Herding algorithm: Right-click and select 'Save as' herd.slogo
Hardy-Weinberg Equilibrium
Background Information This is a genetic principle that states that the frequency of genes of a rondomly mating population will remain constant as long as there is no selection, no mutation and no new animals are added to a population. This was going to be used to simulate what happens in a population whenall of these things are carried out and then to allow various changes to occur such as mutation to see how it would affect the population. Programming This did not happen due to difficulties observed within the herding behavior as well as the complexity of this problem. These things include detection of the location of another animal, in the herd behavior for some reason they are not detecting if another is within a certain distance and this is a highly necessary attribute for this algorithm. The other prolem is detecting color of another individual, there were problems with this and color would have been crucial to this. General Algorithm for what would have had to be done
2. If another animal is at my location then: generate a random number and if above .5 then reproduce
3. if age equals 2 then individual dies 4. Allow selection: if color is yellow then die 5. Allow migration: bring in 9 blue and 1 yellow individuals 6. Allow mutation: Allowing for different number of mutated individuals to be introduced, new individual is purple which is one blue allele and one red (red is mutation) |