Nested set collection
.[src] example.[src] Outside-in: order, family, genus, species.[src] A nested set collection or nested set family is a collection of sets that consists of chains of subsets forming a hierarchical structure, like Russian dolls.[src] It is used as reference concept in scientific hierarchy definitions, and many technical approaches, like the tree in computational data structures or nested set model of relational databases.[src] Sometimes the concept is confused with a collection of sets with a hereditary property (like finiteness in a hereditarily finite set).[src]
.]] example.[src] Outside-in: order, family, genus, species.]] A nested set collection or nested set family is a collection of sets that consists of chains of subsets forming a hierarchical structure, like Russian dolls.[src] It is used as reference concept in scientific hierarchy definitions, and many technical approaches, like the tree in computational data structures or nested set model of relational databases.[src] Sometimes the concept is confused with a collection of sets with a hereditary property (like finiteness in a hereditarily finite set).[src] ==Formal definition== Some authors regard a nested set collection as a family of sets.[src] Others prefer to classify it relation as an inclusion order.[src] Let B be a non-empty set and C a collection of subsets of B.[src] Then C is a nested set collection if: B \in \mathbf{C} (and, for some authors, \empty \notin \mathbf{C} ) \forall H,K \in \mathbf{C} ~:~ H \cap K \neq \empty \implies H \subset K ~\lor~ K \subset H The first condition states that the whole set B, which contains all the elements of every subset, must belong to the nested set collection.[src] Some authors do not assume that B is nonempty.[src] The second condition states that the intersection of every couple of sets in the nested set collection is not the empty set only if one set is a subset of the other.[src] In particular, when scanning all pairs of subsets at the second condition, it is true for any combination with B.[src] B = {♠, ♥, ♦, ♣}; B 1 = {♠, ♥}; B 2 = {♦, ♣}; B 3 = {♣}; C = {B, B 1 , B 2 , B 3 }.[src] The second condition of the formal definition can be checked by combining all pairs: .[src] There is a hierarchy that can be expressed by two branches and its nested order: .[src] ===Nested hierarchy=== A nested hierarchy or inclusion hierarchy is a hierarchical ordering of nested sets.[src] The concept of nesting is exemplified in Russian matryoshka dolls.[src] Each doll is encompassed by another doll, all the way to the outer doll.[src] The outer doll holds all of the inner dolls, the next outer doll holds all the remaining inner dolls, and so on.[src] Matryoshkas represent a nested hierarchy where each level contains only one object, i.e., there is only one of each size of doll; a generalized nested hierarchy allows for multiple objects within levels but with each object having only one parent at each level.[src] Illustrating the general concept: \text{square} \subset \text{quadrilateral} \subset \text{polygon} \subset \text{shape} \, A square can always also be referred to as a quadrilateral, polygon or shape.[src] In this way, it is a hierarchy.[src] However, consider the set of polygons using this classification.[src] A square can only be a quadrilateral; it can never be a triangle, hexagon, etc.[src] Nested hierarchies are the organizational schemes behind taxonomies and systematic classifications.[src] For example, using the original Linnaean taxonomy (the version he laid out in the 10th edition of Systema Naturae), a human can be formulated as: \text{H.[src] sapiens} \subset \text{Homo} \subset \text{Primates} \subset \text{Mammalia} \subset \text{Animalia} Taxonomies may change frequently (as seen in biological taxonomy), but the underlying concept of nested hierarchies is always the same.[src] ===Containment hierarchy=== A containment hierarchy is a direct extrapolation of the nested hierarchy concept.[src] All of the ordered sets are still nested, but every set must be "strict" — no two sets can be identical.[src] The shapes example above can be modified to demonstrate this: \text{square} \subsetneq \text{quadrilateral} \subsetneq \text{polygon} \subsetneq \text{shape} \, The notation x \subsetneq y \, means x is a subset of y but is not equal to y.[src] Containment hierarchy is used in class inheritance of object-oriented programming.[src] ==See also== Hereditarily countable set Hereditary property Hierarchy (mathematics) Nested set model for storing hierarchical information in relational databases ==References==[src]
37 sentences · 37 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Nested set collection." encyclopegia.org, 2024, https://encyclopegia.org/wiki/nested-set-collection. Accessed 25 November 2026.
Chicago
"Nested set collection." encyclopegia.org. Accessed November 25, 2026. https://encyclopegia.org/wiki/nested-set-collection.
APA
encyclopegia.org. (2024). Nested set collection. Retrieved November 25, 2026, from https://encyclopegia.org/wiki/nested-set-collection
Accessed November 25, 2026 · CC BY-SA 4.0 · citation page · JSON