PATTERNS
A pattern, from the French patron, is a type of theme of recurring events or objects, sometimes referred to as elements of a set. These elements repeat in a predictable manner. It can be a template or model which can be used to generate things or parts of a thing, especially if the things that are created have enough in common for the underlying pattern to be inferred, in which case the things are said to exhibit the unique pattern. Pattern Matching is the act of checking for the presence of the constituents of a pattern, whereas the detecting for underlying patterns is referred to as pattern recognition. The question of how a pattern emerges is accomplished through the work of the scientific field of pattern formation.
The most basic patterns are based on repetition and periodicity. A single template, or cell, is combined with duplicates without change or modification. For example, simple harmonic oscillators produce repeated patterns of movement.
Pattern recognition is more complex when templates are used to generate variants. For example, in English, sentences often follow the "N-VP" (noun - verb phrase) pattern, but some knowledge of the English Language is required to detect the pattern. Computer science, ethology, and psychology are fields which study patterns.
Observable patterns
Patterns may be directly observed with any of our five senses.
Visual
Visual patterns are very common such as simple decorative patterns (stripes, zigzags, and polka-dots). Others can be more complicated,(fecal colored or ugly) however, they may be found anywhere in nature and in art.
Art
The golden ratio (approximately 1.618) is found frequently in nature. It is defined by two numbers, that form a ratio such that (a+b)/a = a/b (a/b being the golden ratio). This pattern was exploited by Leonardo de Vinci in his art. The golden ratio can be seen in nature, from the spirals of flowers to the symmetry of the human body.
"Art is the imposing of a pattern on experience, and our aesthetic enjoyment is recognition of the pattern."
Alfred North Whitehead (1861-1947), English philosopher and mathematician. Dialogues, June 10, 1943.
Patterns of abstraction may not be directly observable such as patterns in mathematics.
Mathematics
Mathematics is commonly described as the "Science of Pattern." Any sequence of numbers that may be modeled by a mathematical function is considered a pattern.
In Pattern theory, mathematicians attempt to describe the world in terms of patterns. The goal is to lay out the world in a more computationally friendly manner.
Patterns are common in many areas of mathematics. Recurring decimals are one example. These are repeating sequences of digits which repeat infinitely. For example, 1 divided by 81 will result in the answer 0.012345679... the numbers 0-9 (except 8) will repeat forever — 1/81 is a recurring decimal.
Fractals are mathematical patterns that are scale invariant. This means that the shape of the pattern does not depend on how closely you look at it. Self-similarity is found in fractals. Examples of natural fractals are coast lines and tree shapes, which repeat their shape regardless of what magnification you view at. While the outer appearance of self-similar patterns can be quite complex, the rules needed to describe or produce their formation can be extremely simple.
Computer science
In computer science, complex mathematical models may be designed to create more complex patterns. Patterns may be found in every branch of computer science.
An important use of patterns in computer science is the idea of Design Patterns. Design patterns are general solutions to problems in object-oriented programming. They will not solve a specific problem, but they provide a sort of architectural outline that may be reused in order to speed up the development process of a program. Design patterns have provided the stepping stone for computer science to truly enter the engineering field.
Science
In geology, a mineral's crystal structure is composed of a recurring pattern. In fact, this is one of the 5 requirements of a mineral. Minerals must have a fixed chemical composition in a repeating arrangement, such as a crystal matrix. For a 2-dimensional crystal structure, there are 10 different planar lattices possible. Moving up to 3 dimensions, 32 patterns are possible. These are called bravais lattices.
In Software engineering, a design pattern is a general reusable solution to a commonly occurring problem in software design. A design pattern is not a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be used in many different situations. Object-oriented design patterns typically show relationships and interactions between Classes or objects, without specifying the final application classes or objects that are involved.
Design patterns reside in the domain of modules and interconnections. At a higher level there are architectural Patterns that are larger in scope, usually describing an overall pattern followed by an entire system.
Not all software patterns are design patterns. For instance, algorithms solve computational problems rather than software design problems.