HOME

TheInfoList



OR:

In a
naive set theory Naive set theory is any of several theories of sets used in the discussion of the foundations of mathematics. Unlike axiomatic set theories, which are defined using formal logic, naive set theory is defined informally, in natural language. It des ...
, a nested set is a set containing a chain of subsets, forming a hierarchical structure, like Russian dolls. It is used as reference-concept in all scientific hierarchy definitions, and many technical approaches, like the tree in computational data structures or
nested set model The nested set model is a technique for representing nested sets (also known as trees or hierarchies) in relational databases. Motivation The standard relational algebra and relational calculus, and the SQL operations based on them, are unabl ...
of relational databases. Sometimes the concept is confused with a "set 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 al ...
(like the 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 ...
).


Formal definition

Some authors prefer to use the term nested set collection, because it is a formal definition of a collective property of many sets. Others prefer to classify this relation as an inclusion order. A collection is a "set of sets". Let ''B'' be a non-empty set and ''C'' be a collection of subsets of ''B''. Then ''C'' is a nested set collection if: * B \in C (and \empty \notin C) * \forall H,K \in C ~:~ H \cap K \neq \empty \implies H \subset K ~\lor~ K \subset H The first condition states that set ''B'', which contains all the elements of any subset, must belong to the Nested Set Collection. Some authors also state that ''B'' is not empty or the empty is not a subset of ''C''. The second condition states 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 by ...
s: : ''B'' = ;     ''B''1 = ;   ''B''2 = ;   ''B''3 = ;
''C'' = . The second condition (of the formal definition) can be checked by combining all pairs: : ''B''1 ∩ ''B''2 = ∅;  ''B''1 ∩ ''B''3 = ∅;  ''B''3 ⊂ ''B''2. There is a hierarchy that can be expressed by two branches and its nested order: ''B''3 ⊂ ''B''2 ⊂ ''B'';  ''B''1 ⊂ ''B''.


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 dolls. 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,
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'' has ...
, etc. Nested hierarchies are the organizational schemes behind taxonomies and systematic classifications. 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 \subset \text \subset \text \subset \text \subset \text Taxonomies may change frequently (as seen in
biological taxonomy In biology, taxonomy () is the scientific study of naming, defining ( circumscribing) and classifying groups of biological organisms based on shared characteristics. Organisms are grouped into taxa (singular: taxon) and these groups are given ...
), 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 exclusive ...
" — 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 In object-oriented programming, inheritance is the mechanism of basing an object or class upon another object ( prototype-based inheritance) or class ( class-based inheritance), retaining similar implementation. Also defined as deriving new class ...
of object-oriented programming.


See also

* Hereditarily countable set *
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 al ...
*
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 or ...
*
Nested set model The nested set model is a technique for representing nested sets (also known as trees or hierarchies) in relational databases. Motivation The standard relational algebra and relational calculus, and the SQL operations based on them, are unabl ...
for storing hierarchical information in relational databases


References

{{Set theory Set theory