Tree (data structure) Articles from SENIORFITNESS.COM Free Article Directory


Subject Directory
Find your Specific Interest
in a Hurry
     Home      Submit Article      Trainer Registration      Contact Us      Our Mission      Disclaimer      Forums      Public Health Issues      Article Archive      Fitness Links      FEATURED EDITOR'S PICKSNew!      Synergy Performance HealthNew!
 

 
 

Search our Site:
Search Google:
This search box will exclusively search relevant sites that we respect.

( 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 nodes. It is an acyclic connected graph where each node has a set of zero or more children nodes, and at most one parent node.

A node may contain a value or a condition or represent a separate data structure or a tree of its own. Each node in a tree has zero or more child nodes, which are below it in the tree (by convention, trees grow down, not up as they do in nature). A node that has a child is called the child's parent node (or ancestor node, or superior). A node has at most one parent.

The height of a node is the length of the longest downward path to a leaf from that node. The height of the root is the height of the tree. The depth of a node is the length of the path to its root (i.e., its root path). This is commonly needed in the manipulation of the various self balancing trees, AVL Trees in particular. Conventionally, the value -1 corresponds to a subtree with no nodes, whereas zero corresponds to a subtree with one node.

The topmost node in a tree is called the root node. Being the topmost node, the root node will not have parents. It is the node at which operations on the tree commonly begin (although some algorithms begin with the leaf nodes and work up ending at the root). All other nodes can be reached from it by following edges or links. (In the formal definition, each such path is also unique). In diagrams, it is typically drawn at the top. In some trees, such as heaps, the root node has special properties. Every node in a tree can be seen as the root node of the subtree rooted at that node.

Tree (data structure) Subcategories

Tree (data structure) Articles

AddThis Social Bookmark Button

 
 Forum Login 
Username:

Password:


Forgot your password?
Register for Forums

Enter your Email!
Sign up for our Senior Fitness Weekly Newletter.
Email:

Suggested Reading from Senior Fitness

Longevity & Fitness - Staying Young in Mind & Body.

Exercise focus for Seniors:

Gary Null, Ph.D. knows as much about aging powerfully as anyone on earth. His new book sums it all up.