Jump to content

Ordered tree data structure

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Alphachimpbot (talk | contribs) at 04:33, 29 October 2006 (BOT - updating merge template). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

In computer science, a tree is a very common type of data structure. An ordered tree is a very common variety of tree, in which the children of each node of the tree are well-ordered. Thus, each node with children has a "first child", a "second child", and so on.

The ability to deal with each node's descendants in order is very important in many tree algorithms.

A particularly simple type of ordered tree is the binary tree, in which each node has two children, and we can ask for the "first child" and the "second child".