ArticleslgStudy

science

Nested set collection

Nested set collection is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Nested set collection rather than just read about it. In short: 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. 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.

Nested set collection — main illustration
Nested set collection — illustration

Key takeaways

  • Nested set collection belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Nested set collection to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Nested set collection from memory before moving on to harder problems.

Reference excerpt

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. 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. Sometimes the concept is confused with a collection of sets with a hereditary property (like finiteness in a hereditarily finite set).

Formal definition Some authors regard a nested set collection as a family of sets. Others prefer to classify it relation as an inclusion order. Let B be a non-empty set and C a collection of subsets of B. Then C is a nested set collection if:

B ∈ C {\displaystyle B\in \mathbf {C} } (and, for some authors, ∅ ∉ C {\displaystyle \emptyset \notin \mathbf {C} } )

∀ H , K ∈ C : H ∩ K ≠ ∅ ⟹ H ⊂ K ∨ K ⊂ H {\displaystyle \forall H,K\in \mathbf {C} ~:~H\cap K\neq \emptyset \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 suits:

B = {♠, ♥, ♦, ♣}; B1 = {♠, ♥}; B2 = {♦, ♣}; B3 = {♣}; C = {B, B1, B2, B3}. The second condition of the formal definition can be checked by combining all pairs:

B1 ∩ B2 = ∅; B1 ∩ B3 = ∅; B3 ⊂ B2. There is a hierarchy that can be expressed by two branches and its nested order: B3 ⊂ B2 ⊂ B; B1 ⊂ 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 sets. 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:

square ⊂ quadrilateral ⊂ polygon ⊂ shape {\displaystyle {\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. 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, 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:

H. sapiens ⊂ Homo ⊂ Primates ⊂ Mammalia ⊂ Animalia {\displaystyle {\text{H. 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.

Containment hierarchy A containment hierarchy is a direct extrapolation of the nested hierarchy concept. All of the ordered sets are still nested, but every set must be "strict" — no two sets can be identical. The shapes example above can be modified to demonstrate this:

square ⊊ quadrilateral ⊊ polygon ⊊ shape {\displaystyle {\text{square}}\subsetneq {\text{quadrilateral}}\subsetneq {\text{polygon}}\subsetneq {\text{shape}}\,}

The notation x ⊊ y {\displaystyle 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.

See also Hereditarily countable set Hereditary property Hierarchy (mathematics) Nested set model for storing hierarchical information in relational databases

References

Illustrations

Nested set collection: A nested set of Russian dolls.
A nested set of Russian dolls.
Nested set collection: Nested set representing a biological taxonomy example. Outside-in: order, family, genus, species.
Nested set representing a biological taxonomy example. Outside-in: order, family, genus, species.
Nested set collection: Expressing the example as a partially ordered set by its Hasse diagram.
Expressing the example as a partially ordered set by its Hasse diagram.

Worked examples

Example 1 — a first encounter with Nested set collection

Start with the simplest possible case. Write down what Nested set collection claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Nested set collection before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Nested set collection ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Nested set collection

In research
Nested set collection appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Nested set collection in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Nested set collection is common in secondary-school and first-year university syllabi. It links to neighbouring topics Set theory, so understanding it makes those chapters shorter.
In everyday life
Look for Nested set collection outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Nested set collection in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Nested set collection means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Nested set collection out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Nested set collection in simple terms?

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. It is used as reference concept in scientific hierarchy definitions, and many technical approaches, like the tree in computational data struc…

Why does Nested set collection matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Nested set collection?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Nested set collection.

Tags

  • Set theory

Keep exploring