All Topics  
Tree structure

 

   Email Print
   Bookmark   Link






 

Tree structure



 
 
A tree structure is a way of representing the hierarchical
Hierarchy

A 'hierarchy' is an arrangement of items The word derives from the Greek language , from ?e?????? , "president of sacred rites, high-priest" and that from , "sacred" + , "to lead, to rule"....
 nature of a structure
Structure

Structure is a fundamental and sometimes intangible notion covering the recognition, observation, nature , and stability of patterns and relationships of entities....
 in a graphical form. It is named a "tree structure" because the graph looks a bit like a tree
TREE

TREE was a Boston hardcore punk band formed in the summer of 1990. They were active in the Boston music scene until disbanding in 2002....
, even though the tree is generally shown upside down compared with a real tree; that is to say with the root at the top and the leaves at the bottom.

In graph theory
Graph theory

In mathematics and computer science, graph theory is the study of graph : mathematical structures used to model pairwise relations between objects from a certain collection....
, a tree
Tree (graph theory)

In mathematics, more specifically graph theory, a tree is a graph in which any two Vertex are connected by exactly one path . Alternatively, any connectedness graph with no Cycle is a tree....
 is a connected acyclic graph (or sometimes, a connected directed acyclic graph
Directed acyclic graph

In computer science and mathematics, a directed acyclic graph, also called a DAG, is a with no ; that is, for any Vertex v, there is no nonempty directed path that starts and ends on v....
 in which every vertex has indegree 0 or 1).






Discussion
Ask a question about 'Tree structure'
Start a new discussion about 'Tree structure'
Answer questions from other users
Full Discussion Forum



Encyclopedia


Enc Systeme Figure
A tree structure is a way of representing the hierarchical
Hierarchy

A 'hierarchy' is an arrangement of items The word derives from the Greek language , from ?e?????? , "president of sacred rites, high-priest" and that from , "sacred" + , "to lead, to rule"....
 nature of a structure
Structure

Structure is a fundamental and sometimes intangible notion covering the recognition, observation, nature , and stability of patterns and relationships of entities....
 in a graphical form. It is named a "tree structure" because the graph looks a bit like a tree
TREE

TREE was a Boston hardcore punk band formed in the summer of 1990. They were active in the Boston music scene until disbanding in 2002....
, even though the tree is generally shown upside down compared with a real tree; that is to say with the root at the top and the leaves at the bottom.

In graph theory
Graph theory

In mathematics and computer science, graph theory is the study of graph : mathematical structures used to model pairwise relations between objects from a certain collection....
, a tree
Tree (graph theory)

In mathematics, more specifically graph theory, a tree is a graph in which any two Vertex are connected by exactly one path . Alternatively, any connectedness graph with no Cycle is a tree....
 is a connected acyclic graph (or sometimes, a connected directed acyclic graph
Directed acyclic graph

In computer science and mathematics, a directed acyclic graph, also called a DAG, is a with no ; that is, for any Vertex v, there is no nonempty directed path that starts and ends on v....
 in which every vertex has indegree 0 or 1). An acyclic graph which is not necessarily connected is sometimes called a forest (because it consists of trees).

Nomenclature and properties


Every finite tree structure has a member that has no superior
Superior (hierarchy)

In a hierarchy or tree structure of any kind, a superior is an individual or position at a higher level in the hierarchy than another , and thus closer to the Apex ....
. This member is called the "root" or root node. It can be thought of as the starting node The converse is not true: infinite tree structures may or may not have a root node.

The lines connecting elements are called "branches", the elements themselves are called "node
Node (computer science)

A node is an abstract basic unit used to build linked data structures such as tree data structure, linked lists, and computer-based representations of graph ....
s". Nodes without children are called "end-nodes" or "leaves".

The names of relationships between nodes are modeled after family relations. In computer science, traditionally only names for male family members had been used. In linguistics, the names of female family members are used. It is said that this was an express countermovement to the traditional naming convention, started by the female students of linguist Noam Chomsky
Noam Chomsky

Avram Noam Chomsky is an United States linguistics, philosopher, cognitive science, political activist, author, and lecturer. He is an Institute Professor emeritus and professor emeritus of linguistics at the Massachusetts Institute of Technology....
. However, nowadays, in computer science at least, the gender-neutral names "parent" and "child" have largely displaced the older "father" and "son" terminology, although the term "uncle" is still used for other nodes at the same level as the parent.

  • A node is a "parent" of another node if it is one step higher in the hierarchy and closer to the root node.
  • "Sibling" ("brother" or "sister") nodes share the same parent node.
  • A node that is connected to all lower-level nodes is called an "ancestor".


In the example, "encyclopedia" is the parent of "science" and "culture", its children. "Art" and "craft" are siblings, and children of "culture".

Tree structures are used to depict all kinds of taxonomic
Taxonomy

Taxonomy is the practice and science of classification. The word comes from the Greek language ', taxis and ', nomos .Taxonomies, or taxonomic schemes, are composed of taxonomic units known as taxa , or kinds of things that are arranged frequently in a hierarchical structure....
 knowledge, such as family tree
Family tree

A family tree is a chart representing family relationships in a conventional tree structure. The more detailed family trees used in medicine, genealogy, and social work are known as genograms....
s, the evolutionary tree, the grammatical structure of a language (the famous example being S ? NP VP, meaning a sentence is a noun phrase and a verb phrase), the way web pages are logically ordered in a web site, et cetera.

In a tree structure there is one and only one path
Path (graph theory)

In graph theory, a path in a graph is a sequence of vertex such that from each of its vertices there is an edge to the next vertex in the sequence....
 from any point to any other point.

Tree structures are used extensively in computer science
Computer science

Computer science is the study of the theoretical foundations of information and computation, and of practical techniques for their implementation and application in computer systems....
 (see Tree (data structure)
Tree (data structure)

In computer science, a tree is a widely-used data structure that emulates a hierarchical tree structure with a set of linked Vertex_. It is an acyclic connected graph where each node has a set of zero or more children nodes, and at most one parent node....
 and telecommunications.)

Examples of tree structures

  • Internet: usenet hierarchy, Document Object Model
    Document Object Model

    The Document Object Model is a platform- and programming language-independent standard object model for representing HTML or XML documents as well as an Application Programming Interface for querying, traversing and manipulating such documents....
    's logical structure, Yahoo!
    Yahoo!

    Yahoo! Inc. is an United States public company corporation with headquarters in Sunnyvale, California, , and provides Internet services worldwide....
     subject index, Open Directory Project
    Open Directory Project

    The Open Directory Project , also known as Dmoz , is a multilingual open content Web directory of World Wide Web links owned by Netscape that is constructed and maintained by a virtual community of volunteer editors....
  • Information management: Dewey Decimal System
  • Management: hierarchical organization
    Organization

    An organization is a social arrangement which pursues collective goals, which controls its own performance, and which has a boundary separating it from its environment....
    al structures
  • Computer Science: binary search tree
    Binary search tree

    In computer science, a binary search tree is a binary tree data structurewhich has the following properties:* Each node has a distinct value....
     Red-Black Tree
    Red-black tree

    A red-black tree is a type of self-balancing binary search tree, a data structure used in computer science, typically used to implement associative arrays....
     AVL tree
    AVL tree

    In computer science, an AVL tree is a self-balancing binary search tree, and it is the first such data structure to be invented. In an AVL tree, the tree height of the two child node subtrees of any node differ by at most one; therefore, it is also said to be height-balanced tree....
  • Biology: evolutionary tree
  • Business: pyramid selling scheme
  • Project management: work breakdown structure
    Work breakdown structure

    A work breakdown structure in project management and systems engineering, is a tool used to define and group a project's discrete work elements in a way that helps organize and define the total work scope of the project....
  • Linguistics (syntax): Phrase structure trees


Representing trees


There are many ways of visually representing tree structures. Almost always, these boil down to variations, or combinations, of a few basic styles:
  • Classical node-link diagrams, that connect nodes together with line segments:
encyclopedia
  /      \
      science  culture
/   \
      art  craft
  • Nested sets that use enclosure/containment to show parenthood (for an interesting variation on this, see ):
      +------encyclopedia------+
      |  +--culture--+ |
      | science  |art   craft| |
      |  +-----------+ |
      +------------------------+
  • Layered "icicle" diagrams that use alignment/adjacency:
      +-------------------+
      |   encyclopedia    |
      +---------+---------+
      | science | culture |
      +---------+---+-----+
|art|craft|
+---+-----+
  • Diagrams that use indentation, sometimes called "outlines" or "tree view
    Tree view

    A tree view or an outline view is a graphical user interface element that presents a hierarchy#Containment hierarchy view of information....
    s":
      encyclopedia
 science
 culture
    art
    craft
  • Nested parentheses, a correspondence first noticed by Sir Arthur Cayley
    Arthur Cayley

    Arthur Cayley was a British mathematician. He helped found the modern British school of pure mathematics.As a child, Cayley enjoyed solving complex maths problems for amusement....
(science,(art,craft)culture)encyclopedia
Identification of some of these basic styles can be found in:
  • Jacques Bertin
    Jacques Bertin

    Jacques Bertin is a France cartographer and theorist, known from his book Semiologie Graphique , edited in 1967. This monumental work, based on his experience as a cartographer and geographer, represents the first and widest intent to provide a theoretical foundation to Information Visualization....
    , Sémiologie graphique, 1967, Éditions Gauthier-Villars, Paris (2nd edition 1973, English translation 1983);
  • Donald E. Knuth, The Art of Computer Programming
    The Art of Computer Programming

    The Art of Computer Programming is a comprehensive monograph written by Donald Knuth that covers many kinds of programming algorithms and their analysis....
    , Volume I: Fundamental Algorithms, 1968, Addison-Wesley, pp. 309-310;
  • Brian Johnson and Ben Shneiderman
    Ben Shneiderman

    Ben Shneiderman is an United States Computer science, and professor for Computer Science at the Human-Computer Interaction Laboratory at the University of Maryland, College Park....
    , Tree-maps: A space-filling approach to the visualization of hierarchical information structures, in Proceedings of IEEE Visualization (VIS), 1991, pp. 284-291;
  • Peter Eades, Tao Lin, and Xuemin Lin, Two Tree Drawing Conventions, International Journal of Computational Geometry and Applications, 1993, volume 3, number 2, pp. 133-153.


See also

Kinds of trees:
  • B-tree
    B-tree

    In computer science, a B-tree is a tree data structure that keeps data sorted and allows searches, insertions, and deletions in logarithmic Amortized analysis....
  • Dancing trees
  • Tree (data structure)
    Tree (data structure)

    In computer science, a tree is a widely-used data structure that emulates a hierarchical tree structure with a set of linked Vertex_. It is an acyclic connected graph where each node has a set of zero or more children nodes, and at most one parent node....
  • Tree (graph theory)
    Tree (graph theory)

    In mathematics, more specifically graph theory, a tree is a graph in which any two Vertex are connected by exactly one path . Alternatively, any connectedness graph with no Cycle is a tree....
  • Tree (set theory)
    Tree (set theory)

    In set theory, a tree is a partially ordered set such that for each t ? T, the set is well-ordered by the relation <. For each t ? T, the order type of is called the height of t ....
  • Tree (descriptive set theory)
    Tree (descriptive set theory)

    In descriptive set theory, a tree on a set is a set of finite sequences of elements of that is closed under subsequences.More formally, it is a subset of , such that if...


Related articles:
  • Data drilling
    Data drilling

    Data drilling refers to any of various operations and transformations on tabular, relational, and multidimensional data. The term has widespread use in various contexts, but is primarily associated with specialized software designed specifically for data analysis....
  • Hierarchy
    Hierarchy

    A 'hierarchy' is an arrangement of items The word derives from the Greek language , from ?e?????? , "president of sacred rites, high-priest" and that from , "sacred" + , "to lead, to rule"....


External links

  • - from the Society for Technical Communication
    Society for Technical Communication

    The Society for Technical Communication or STC is a professional society for the advancement of the theory and practice of technical communication....