![Page 1: Self-Organization and Templates in Swarm Computing](https://reader035.vdocuments.us/reader035/viewer/2022070500/5681683a550346895dde037e/html5/thumbnails/1.jpg)
04/22/23
Self-Organization and Templates in Swarm Computing
Chapter 5 of Swarm Computing Presented by Qing Cao
![Page 2: Self-Organization and Templates in Swarm Computing](https://reader035.vdocuments.us/reader035/viewer/2022070500/5681683a550346895dde037e/html5/thumbnails/2.jpg)
04/22/23
Overview The behavior of biological
colonies Self-organization Process The function of templates Two models in biological world Applications and Inspirations to computer science
![Page 3: Self-Organization and Templates in Swarm Computing](https://reader035.vdocuments.us/reader035/viewer/2022070500/5681683a550346895dde037e/html5/thumbnails/3.jpg)
04/22/23
Biological Colonies We will focus on the behavior of
large colonies, such as termites, ants, etc.
In this presentation, we will model their building behavior. For example, we study how worker termites build chamber around the queen termite.
![Page 5: Self-Organization and Templates in Swarm Computing](https://reader035.vdocuments.us/reader035/viewer/2022070500/5681683a550346895dde037e/html5/thumbnails/5.jpg)
04/22/23
Self-Organization Process Large clusters grow larger and
they are more attractive. The same rule applies to the
building of the walls. The ants deposit more where there are more deposits already.
As a result, pillars are first formed and walls filled later.
![Page 6: Self-Organization and Templates in Swarm Computing](https://reader035.vdocuments.us/reader035/viewer/2022070500/5681683a550346895dde037e/html5/thumbnails/6.jpg)
04/22/23
The function of Templates Template is a pattern that is
used to construct another pattern.
Various kinds of templates available in the natural world.
Templates interplays with self-organization to determine the building pattern.
![Page 7: Self-Organization and Templates in Swarm Computing](https://reader035.vdocuments.us/reader035/viewer/2022070500/5681683a550346895dde037e/html5/thumbnails/7.jpg)
04/22/23
Different kinds of Templates Template is a pre-pattern in the
environment. Templates may be the temperature
and humidity gradients. Templates are the body shape of
the queen in the building of “royal chamber” of termites.
![Page 8: Self-Organization and Templates in Swarm Computing](https://reader035.vdocuments.us/reader035/viewer/2022070500/5681683a550346895dde037e/html5/thumbnails/8.jpg)
04/22/23
temperature template
![Page 9: Self-Organization and Templates in Swarm Computing](https://reader035.vdocuments.us/reader035/viewer/2022070500/5681683a550346895dde037e/html5/thumbnails/9.jpg)
04/22/23
How the body shape template works?
The queen emits a pheromone that diffuses and creates decreasing gradient.
A worker deposits a soil pellet if the concentration of the pheromone is within the suitable window.
It is shown by experiments that wax dummy queen doesn’t stimulate construction.
![Page 10: Self-Organization and Templates in Swarm Computing](https://reader035.vdocuments.us/reader035/viewer/2022070500/5681683a550346895dde037e/html5/thumbnails/10.jpg)
04/22/23
The Building of the Chamber
![Page 11: Self-Organization and Templates in Swarm Computing](https://reader035.vdocuments.us/reader035/viewer/2022070500/5681683a550346895dde037e/html5/thumbnails/11.jpg)
04/22/23
Quantitative Evaluation of the first model Goals: 1 The speed of building 2 The construction model
![Page 12: Self-Organization and Templates in Swarm Computing](https://reader035.vdocuments.us/reader035/viewer/2022070500/5681683a550346895dde037e/html5/thumbnails/12.jpg)
04/22/23
Goal 1: The speed of construction The rate of the building process
increases very rapidly, especially in large groups.
In the first 60 minutes, 0.2 depositions/per worker (20 workers)
The same interval. 2.2 depositions/per worker (80 workers)
![Page 13: Self-Organization and Templates in Swarm Computing](https://reader035.vdocuments.us/reader035/viewer/2022070500/5681683a550346895dde037e/html5/thumbnails/13.jpg)
04/22/23
The speed of construction
Comments? Two factors, the time and group size. However, the author doesn’t
specify clearly which one is more important.
![Page 14: Self-Organization and Templates in Swarm Computing](https://reader035.vdocuments.us/reader035/viewer/2022070500/5681683a550346895dde037e/html5/thumbnails/14.jpg)
04/22/23
Speed of construction
![Page 15: Self-Organization and Templates in Swarm Computing](https://reader035.vdocuments.us/reader035/viewer/2022070500/5681683a550346895dde037e/html5/thumbnails/15.jpg)
04/22/23
Goal 2: The construction model
What the author wants to do is to build up a mathematical model for the building process.
First without templates: 1 The dynamics of pheromone. 2 The dynamics of loaded termites. 3 The dynamics of active material.
![Page 16: Self-Organization and Templates in Swarm Computing](https://reader035.vdocuments.us/reader035/viewer/2022070500/5681683a550346895dde037e/html5/thumbnails/16.jpg)
04/22/23
Step 1: The dynamics of pheromone. H(r,t) is the concentration at
location r and time t. k2P is the pheromone emitted per
unit of deposited material per unit time.
HDHkPkH Ht2
42
![Page 17: Self-Organization and Templates in Swarm Computing](https://reader035.vdocuments.us/reader035/viewer/2022070500/5681683a550346895dde037e/html5/thumbnails/17.jpg)
04/22/23
Step 1: The dynamics of pheromone. k4H is the decay of pheromone. is the pheromone diffusion. What the equation states is that the current
change of H is equal to the emit of pheromone
minus the decay of pheromone, and then plus the diffused pheromone.
HDHkPkH Ht2
42
HDH 2
![Page 18: Self-Organization and Templates in Swarm Computing](https://reader035.vdocuments.us/reader035/viewer/2022070500/5681683a550346895dde037e/html5/thumbnails/18.jpg)
04/22/23
Step 2: The dynamics of loaded termites
denotes the attractiveness of the pheromone gradient. denotes the random component in individual motion. denotes a constant flow of loaded termites into the system. denotes the rate of unloading per termite per time unit.
)( HC
)(21 HCCDCkC Ct
CDC 2
Ck1
![Page 19: Self-Organization and Templates in Swarm Computing](https://reader035.vdocuments.us/reader035/viewer/2022070500/5681683a550346895dde037e/html5/thumbnails/19.jpg)
04/22/23
Step 3: Dynamics of active material
This equation shows the dynamics of active material P. K1C denotes the drop of the loaded termites while k2P denotes the rate of disappearance of active material P.
PkCKPt 21
![Page 20: Self-Organization and Templates in Swarm Computing](https://reader035.vdocuments.us/reader035/viewer/2022070500/5681683a550346895dde037e/html5/thumbnails/20.jpg)
04/22/23
Overall Behavior When material is dropped, cement
pheromone is emitted and diffuses, thus attracting more termites toward this area and thus more material is therefore dropped.
Positive feedback, leading to a pillars to exist.
![Page 21: Self-Organization and Templates in Swarm Computing](https://reader035.vdocuments.us/reader035/viewer/2022070500/5681683a550346895dde037e/html5/thumbnails/21.jpg)
04/22/23
Then… templates The template is in the form of pheromonal template. The amount of queen pheromone at location (x,y) is : ])/)0(()/)0[(( 22
),( yx yyxxeyxT
![Page 22: Self-Organization and Templates in Swarm Computing](https://reader035.vdocuments.us/reader035/viewer/2022070500/5681683a550346895dde037e/html5/thumbnails/22.jpg)
04/22/23
Template Distribution
![Page 23: Self-Organization and Templates in Swarm Computing](https://reader035.vdocuments.us/reader035/viewer/2022070500/5681683a550346895dde037e/html5/thumbnails/23.jpg)
04/22/23
Template Model
)()(21 TCvHCCDCFkC Ct
)()(21 TCvHCCDCkC Ct
PKCFkPt 21
Dynamics of loaded termites and the deposited active material.
![Page 24: Self-Organization and Templates in Swarm Computing](https://reader035.vdocuments.us/reader035/viewer/2022070500/5681683a550346895dde037e/html5/thumbnails/24.jpg)
04/22/23
Spatial Distribution of P
![Page 25: Self-Organization and Templates in Swarm Computing](https://reader035.vdocuments.us/reader035/viewer/2022070500/5681683a550346895dde037e/html5/thumbnails/25.jpg)
04/22/23
Review of this model It simulated the wall-generating process
around the queen. It explains the snowball effect and the
formation of pillars. However, it doesn’t take in account of many
factors realistically. For example, it considers everything to be linear or constant.
Oversimplified? Comments and Questions?
![Page 26: Self-Organization and Templates in Swarm Computing](https://reader035.vdocuments.us/reader035/viewer/2022070500/5681683a550346895dde037e/html5/thumbnails/26.jpg)
04/22/23
The second Model The second model studied is the wall
building process by another kind of ants. The second model is different from the first model in several aspects.
The template for the second model remains unknown, but we know its function is to allow the size of the nest to be regulated by the colony size.
![Page 27: Self-Organization and Templates in Swarm Computing](https://reader035.vdocuments.us/reader035/viewer/2022070500/5681683a550346895dde037e/html5/thumbnails/27.jpg)
04/22/23
The nest in the lab
![Page 28: Self-Organization and Templates in Swarm Computing](https://reader035.vdocuments.us/reader035/viewer/2022070500/5681683a550346895dde037e/html5/thumbnails/28.jpg)
04/22/23
Overview of the model The deposition behavior is
influenced by the local density of grains and the distance from the cluster of ants and brood.
The model exhibits double mechanism,
template and self organization.
![Page 29: Self-Organization and Templates in Swarm Computing](https://reader035.vdocuments.us/reader035/viewer/2022070500/5681683a550346895dde037e/html5/thumbnails/29.jpg)
04/22/23
Basic Model According to the basic model of
depositing grains, the possibility of depositing is pdpt. The possibility of picking up a grain is pd(1-pt).
Pd depends on the perceived number of grains. Pt accounts for the effect of the template.
![Page 30: Self-Organization and Templates in Swarm Computing](https://reader035.vdocuments.us/reader035/viewer/2022070500/5681683a550346895dde037e/html5/thumbnails/30.jpg)
04/22/23
Template for the simulation
![Page 31: Self-Organization and Templates in Swarm Computing](https://reader035.vdocuments.us/reader035/viewer/2022070500/5681683a550346895dde037e/html5/thumbnails/31.jpg)
04/22/23
The model result
S is the density of the grain. In a stationary regime, we can get the two equations below.
![Page 32: Self-Organization and Templates in Swarm Computing](https://reader035.vdocuments.us/reader035/viewer/2022070500/5681683a550346895dde037e/html5/thumbnails/32.jpg)
04/22/23
Simulation Process
![Page 33: Self-Organization and Templates in Swarm Computing](https://reader035.vdocuments.us/reader035/viewer/2022070500/5681683a550346895dde037e/html5/thumbnails/33.jpg)
04/22/23
Applications Currently the idea of template and self-organizing mechanisms have been used in the context of data analysis and graph partition model. The template method is an elegant way of restoring parametricity. However, no comparison with previous methods is provided.
![Page 34: Self-Organization and Templates in Swarm Computing](https://reader035.vdocuments.us/reader035/viewer/2022070500/5681683a550346895dde037e/html5/thumbnails/34.jpg)
04/22/23
Applications (cont.) In the graph partitioning problem, the
goal is to partition the graph into c clusters of equal size while minimizing the number of inter-cluster connections.
“Adding a template mechanism to the KLS algorithm solves this particular problem.” But the author didn’t show how he did this.
Questions?
![Page 35: Self-Organization and Templates in Swarm Computing](https://reader035.vdocuments.us/reader035/viewer/2022070500/5681683a550346895dde037e/html5/thumbnails/35.jpg)
04/22/23
Review A template is a pattern used by insects
to organize their activities. Building following a template is typical.
Two examples. Both have self-organized deposition following the template.
Template inspires new parametric solutions to some problems.
![Page 36: Self-Organization and Templates in Swarm Computing](https://reader035.vdocuments.us/reader035/viewer/2022070500/5681683a550346895dde037e/html5/thumbnails/36.jpg)
04/22/23
Thank you!