Hierarchical Orderings
A relation ≤ is said to be a hierarchical ordering if the following
three statements hold:
- For all , ,
- If and ,
,
- If and ,
it follows that ,
- There is an object such that
for all
, and
If
and
then either
or
.
A finite collection of objects which are related with a hierarchical ordering
are said to form a tree and the singular object referenced in
Requirement 4 is referred to as the root of the tree.
The astute reader will note that the first three requirements are identical to
a partial ordering; however, there are two further requirements: Requirement 4
states that there is a single root object which must
precede all other objects. Requirement 5 may be reinterpreted as saying that from
any object , there is only one path
such that
.
Strict Hierarchical Ordering
A relation < is said to be a strict hierarchical ordering if the following
statements hold:
- For all , ,
- At most one of or
is true,
- If and ,
it follows that ,
- There is an object such that
for all other objects
, and
If
and
,
either
,
, or
.
Local Definitions
Most hierarchical orderings are defined locally with definitions of
form immediately precedes
.
Forests
If we remove Restriction 4, the natural consequence is that there may
be more than one root. These n roots then define n disjoint
trees. Such a collection of trees is said to be a forest.
Examples
- The Unix directory structure with dir_a immediately preceding dir_b if
dir_b is a directory within dir_a; the root of the
tree is the root directory designated /.
- Java inheritance defines a hierarchical ordering with
Class_A immediately preceding Class_B if Class_B
is a subclass of Class_A; the root of the tree is the
class Type.
- Most hierarchical organizations in society describe a hierarchical
ordering where
if
is a subordinate of
.
- Given all members of the species Homo sapian, the local definition
that Ann immediately precedes Bob/Barb if Ann is the
mother of Bob or Barb defines a hierarchical ordering.
The root is the most recent common ancestor of all Homo sapians
(see common descent).
- Given a person and his or her ancestors
(but not too far back), then define
if
is a descendant of
.
- The DOS file system forms a forest where each drive is the
root of a tree.
References