E N D
Patterns in Nature Related to Software Design Patterns Peter JohanssonUndergraduate studentpetjo450@student.liu.seAmanuens at AIICS, IDApejoh@ida.liu.se
Introduction We have traced the origin of Software Design Patterns back to Alexander’s work on architecture. Can we learn even more by studying pattern formation in nature? • Patterns in nature • Symmetry • Symmetry-breaking • Patterns revisited
Books Philip Ball: The Self-made Tapestry Ian Stewart & Martin Golubitsky: Fearful Symmetry
Patterns in Nature • Bubbles • Waves • Bodies • Branches • Breakdowns • Fluids • Grains • Communities This is actually the table of contents from The Self-made Tapestry.
Patterns in Nature • Patterns are result of naturally occuring processes • One of the purposes of natural science is to build models of these processes • How can complexity arise from simplicity? • (Is this the inverse of Computer Science?)
Example How did the Zebra get its stripes?
Autocatalysis Activator A Diffusion Degradation + - Inhibitor B Activator-inhibitor model • A generates more of itself and activates B • B inhibits formation of A • A and B diffuses at different rates First proposed by Alan Turing in 1952.
Activator-inhibitor • Examples of activator-inhibitor systems. Light areas are dominated by one compound, dark areas by another.
Activator-inhibitor • Patterns formed by activator-inhibitor systems depend on the size of the system.
Activator-inhibitor • It is though that this process takes place in the embryo and thus forms a pre-pattern • It remains to be shown that this really is the process that gives the Zebra its stripes
Activator-inhibitor • This process may also explain the marks of other animals.
Symmetry • “Pattern” is a very loose term • Instead we look at a more formal property that objects in the world can have: symmetry • We mean “symmetry” in the mathematical sense • How do patterns relate to symmetry?
What is Symmetry? A symmetry of an object is a transformation that leaves it apparently unchanged. Rotation Reflection
Symmetry Groups • Closure: For all a, bG, the set G is closed under composition, i.e. ab, baG. • Associativity: For all a, b, cG, the composition is associative, i.e. (ab)c = a(bc) • Identity: For all aG there exists an element eG such that ae = a = ea. • Inverses: For each aG there exists an a-1G such that aa-1 = e = a-1a. A group is a nonempty set G with a law of composition satisfying these axioms
Symmetry Groups • Most common symmetry group: the group of rigid motions in two- and three-dimensional space (translation, reflection, rotation) • Time symmetry (e.g. periodic systems like the Earth and the Sun)
Symmetries in Nature • Animal bodies • Crystals • Soap bubbles • Flowers (e.g. Sunflowers)
More or less symmetry? Infinite number of rotations and reflections 24 rotations and 12 reflections
Symmetry-breaking • A falling drop of milk has circular symmetry… • …but after impact a ”crown” rises that only has 24 possible rotations.
Where does it go? • Falling drop: O(2) symmetryCrown: D24 symmetry • If we rotate the crown an arbitrary angle we get another crown with spikes in different places. • This ”new” system also has D24 symmetry. • Symmetry-breaking imposes an equivalence relation. It divides the symmetry group into subgroups.
Where does it go? • A symmetric cause produces one from a symmetrically related set of effects. • Symmetry is actually not broken, rather shared.
What is a pattern? • A pattern is the result of symmetry-breaking. • A system with lesser degree of symmetry is perceived (by humans) as having a pattern. • Example: A circle or a clear surface is not perceived as symmetric, even though it is the most symmetric thing nature can produce.
Summary • Symmetrya formally defined property of object • Symmetry-breakinga process in which an applied force breaks the symmetry of the system • Patternan informal property of systems with broken symmetry