Tag: hierarchy

About

A hierarchy (in Greek: Ἱεραρχία, derived from ἱερός — hieros, 'sacred', and ἄρχω — arkho, 'rule') is a system of ranking and organizing things or people, where each element of the system (except for the top element) is a subordinate to a single other element.

The first use of the word "hierarchy" cited by the Oxford English Dictionary was in 1880, when it was used in reference to the three orders of three angels as depicted by Pseudo-Dionysius the Areopagite. Pseudo-Dionysius used the word both in reference to the celestial hierarchy and the ecclesiastical hierarchy. His term is derived from the Greek for 'Bishop' (hierarch), and Dionysius is credited with first use of it as an abstract noun. Since hierarchical churches, such as the Roman Catholic and Eastern Orthodox churches, had tables of organization that were "hierarchical" in the modern sense of the word (traditionally with God as the pinnacle of the hierarchy), the term came to refer to similar organizational methods in more general settings.

A hierarchy can link entities either directly or indirectly, and either vertically or horizontally. The only direct links in a hierarchy, insofar as they are hierarchical, are to one's immediate superior or to one of one's subordinates, although a system that is largely hierarchical can also incorporate other organizational patterns. Indirect hierarchical links can extend "vertically" upwards or downwards via multiple links in the same direction. All parts of the hierarchy which are not vertically linked to one another can nevertheless be "horizontally" linked by traveling up the hierarchy to find a common direct or indirect superior, and then down again. This is akin to two co-workers, neither of whom is the other's boss, but both of whose chains of command will eventually meet.

Computation and electronics

Large electronic devices such as computers are usually composed of modules, which are themselves created out of smaller components (integrated circuits), which in turn are internally organized using hierarchical methods (e.g. using standard cells). The order of tasks in a computational algorithm is often managed hierarchically, with repeated loops nested within one another. Computer files in a file system are stored in a hierarchy of directories in most operating systems. In object-oriented programming, classes are organized hierarchically; the relationship between two related classes is called inheritance. In the Internet, IP addresses are increasingly organized in a hierarchy (so that the routing will continue to function as the Internet grows).

From en.wikipedia.org/wiki/Hierarchical

 

Working with trees When working with tree data structures you often need to craft them in different ways. PHP offers a lot of functions to change the shape of arrays, but often they only go 1 level deep. Trees can count an almost infinite number of levels. Hence we need recursive replacements for our beloved array & string functions.

Working with trees When working with tree data structures you often need to craft them in different ways. PHP offers a lot of functions to change the shape of arrays, but often they only go 1 level deep. Trees can count an almost infinite number of levels. Hence we need recursive replacements for our beloved array functions.

article is not ready for publishing yet