Nested Set Collection
   HOME

TheInfoList



OR:

A nested set collection or nested set family is a collection of sets that consists of chains of
subset In mathematics, a Set (mathematics), set ''A'' is a subset of a set ''B'' if all Element (mathematics), elements of ''A'' are also elements of ''B''; ''B'' is then a superset of ''A''. It is possible for ''A'' and ''B'' to be equal; if they a ...
s forming a hierarchical structure, like Russian dolls. It is used as reference concept in scientific hierarchy definitions, and many technical approaches, like the
tree In botany, a tree is a perennial plant with an elongated stem, or trunk, usually supporting branches and leaves. In some usages, the definition of a tree may be narrower, e.g., including only woody plants with secondary growth, only ...
in computational data structures or
nested set model The nested set model is a technique for representing nested set collections (also known as trees or hierarchies) in relational databases. It is based on Nested Intervals, that "are immune to hierarchy reorganization problem, and allow answering an ...
of
relational database A relational database (RDB) is a database based on the relational model of data, as proposed by E. F. Codd in 1970. A Relational Database Management System (RDBMS) is a type of database management system that stores data in a structured for ...
s. Sometimes the concept is confused with a collection of sets with a
hereditary property In mathematics, a hereditary property is a property of an object that is inherited by all of its subobjects, where the meaning of ''subobject'' depends on the context. These properties are particularly considered in topology and graph theory, but a ...
(like finiteness in a
hereditarily finite set In mathematics and set theory, hereditarily finite sets are defined as finite sets whose elements are all hereditarily finite sets. In other words, the set itself is finite, and all of its elements are finite sets, recursively all the way down to t ...
).


Formal definition

Some authors regard a nested set collection as a family of sets. Others prefer to classify it relation as an
inclusion order In the mathematical field of order theory, an inclusion order is the partial order that arises as the subset-inclusion relation on some collection of objects. In a simple way, every poset ''P'' = (''X'',≤) is (isomorphic to) an inclusion orde ...
. Let ''B'' be a
non-empty In mathematics, the empty set or void set is the unique set having no elements; its size or cardinality (count of elements in a set) is zero. Some axiomatic set theories ensure that the empty set exists by including an axiom of empty set, whil ...
set and C a collection of subsets of ''B''. Then C is a nested set collection if: * B \in \mathbf (and, for some authors, \empty \notin \mathbf) * \forall H,K \in \mathbf ~:~ 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. Some authors do not assume that ''B'' is nonempty. 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. In particular, when scanning all pairs of subsets at the second condition, it is true for any combination with ''B''.


Example

Using a set of atomic elements, as the set of the
playing card suit In playing cards, a suit is one of the categories into which the cards of a deck are divided. Most often, each card bears one of several pips (symbols) showing to which suit it belongs; the suit may alternatively or additionally be indicated ...
s: : ''B'' = ;     ''B''1 = ;   ''B''2 = ;   ''B''3 = ;
C = . The second condition of the formal definition can be checked by combining all pairs: : . There is a hierarchy that can be expressed by two branches and its nested order: .


Derived concepts

As sets, that are general abstraction and foundations for many concepts, the ''nested set'' is the foundation for "nested hierarchy", "containment hierarchy" and others.


Nested hierarchy

A nested hierarchy or ''inclusion hierarchy'' is a hierarchical ordering of ''nested set''s. The concept of nesting is exemplified in Russian
matryoshka doll Matryoshka dolls (), also known as stacking dolls, nesting dolls, Russian tea dolls, or Russian dolls, are a set of wooden dolls of decreasing size placed one inside another. The name ''Matryoshka'' is a diminutive form of ''Matryosha'' (), i ...
s. Each doll is encompassed by another doll, all the way to the outer doll. The outer doll holds all of the inner dolls, the next outer doll holds all the remaining inner dolls, and so on. 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. Illustrating the general concept: : \text \subset \text \subset \text \subset \text \, A square can always also be referred to as a quadrilateral, polygon or shape. In this way, it is a hierarchy. However, consider the set of polygons using this classification. A square can ''only'' be a quadrilateral; it can never be a
triangle A triangle is a polygon with three corners and three sides, one of the basic shapes in geometry. The corners, also called ''vertices'', are zero-dimensional points while the sides connecting them, also called ''edges'', are one-dimension ...
,
hexagon In geometry, a hexagon (from Greek , , meaning "six", and , , meaning "corner, angle") is a six-sided polygon. The total of the internal angles of any simple (non-self-intersecting) hexagon is 720°. Regular hexagon A regular hexagon is de ...
, etc. Nested hierarchies are the organizational schemes behind
taxonomies image:Hierarchical clustering diagram.png, 280px, Generalized scheme of taxonomy Taxonomy is a practice and science concerned with classification or categorization. Typically, there are two parts to it: the development of an underlying scheme o ...
and systematic classifications. For example, using the original
Linnaean taxonomy Linnaean taxonomy can mean either of two related concepts: # The particular form of biological classification (taxonomy) set up by Carl Linnaeus, as set forth in his ''Systema Naturae'' (1735) and subsequent works. In the taxonomy of Linnaeus th ...
(the version he laid out in the 10th edition of ''
Systema Naturae ' (originally in Latin written ' with the Orthographic ligature, ligature æ) is one of the major works of the Sweden, Swedish botanist, zoologist and physician Carl Linnaeus (1707–1778) and introduced the Linnaean taxonomy. Although the syste ...
''), a human can be formulated as: : \text \subset \text \subset \text \subset \text \subset \text Taxonomies may change frequently (as seen in biological taxonomy), but the underlying concept of nested hierarchies is always the same.


Containment hierarchy

A containment hierarchy is a direct extrapolation of the
nested hierarchy A hierarchy (from Greek: , from , 'president of sacred rites') is an arrangement of items (objects, names, values, categories, etc.) that are represented as being "above", "below", or "at the same level as" one another. Hierarchy is an important ...
concept. All of the ordered sets are still nested, but every set must be "
strict In mathematical writing, the term strict refers to the property of excluding equality and equivalence and often occurs in the context of inequality and monotonic functions. It is often attached to a technical term to indicate that the exclusiv ...
" — no two sets can be identical. The shapes example above can be modified to demonstrate this: : \text \subsetneq \text \subsetneq \text \subsetneq \text \, The notation x \subsetneq y \, means ''x'' is a subset of ''y'' but is not equal to ''y''. Containment hierarchy is used in class inheritance of
object-oriented programming Object-oriented programming (OOP) is a programming paradigm based on the concept of '' objects''. Objects can contain data (called fields, attributes or properties) and have actions they can perform (called procedures or methods and impl ...
.


See also

*
Hereditarily countable set In set theory, a set is called hereditarily countable if it is a countable set of hereditarily countable sets. Results The inductive definition above is well-founded and can be expressed in the language of first-order set theory. Equivalent p ...
*
Hereditary property In mathematics, a hereditary property is a property of an object that is inherited by all of its subobjects, where the meaning of ''subobject'' depends on the context. These properties are particularly considered in topology and graph theory, but a ...
*
Hierarchy (mathematics) In mathematics, a hierarchy is a set-theoretical object, consisting of a preorder defined on a set. This is often referred to as an ordered set, though that is an ambiguous term that many authors reserve for partially ordered sets or totally ord ...
*
Nested set model The nested set model is a technique for representing nested set collections (also known as trees or hierarchies) in relational databases. It is based on Nested Intervals, that "are immune to hierarchy reorganization problem, and allow answering an ...
for storing hierarchical information in relational databases


References

{{Set theory Set theory