javascript-algorithms/src/data-structures/tree
2020-08-21 07:23:44 +02:00
..
__test__ Avoid using toBeTruthy() and toBeFalsy() because of type coercion. 2018-07-26 16:14:26 +03:00
avl-tree pt-BR translations fixes. 2019-04-16 18:05:39 +03:00
binary-search-tree fix: three errors (#487) 2020-08-21 07:23:44 +02:00
fenwick-tree pt-BR translations fixes. 2019-04-16 18:05:39 +03:00
red-black-tree pt-BR translations fixes. 2019-04-16 18:05:39 +03:00
segment-tree Fix README typo (#524) 2020-08-08 11:45:15 +02:00
BinaryTreeNode.js Add setValue and nodeCopy methods to binary tree node. 2018-06-22 08:22:12 +03:00
README.md pt-BR translations fixes. 2019-04-16 18:05:39 +03:00
README.pt-BR.md pt-BR translations fixes. 2019-04-16 18:05:39 +03:00
README.zh-CN.md Partial translation of Simplified Chinese (#185) 2018-08-30 08:30:24 +03:00

Tree

Read this in other languages: 简体中文, Português

In computer science, a tree is a widely used abstract data type (ADT) — or data structure implementing this ADT—that simulates a hierarchical tree structure, with a root value and subtrees of children with a parent node, represented as a set of linked nodes.

A tree data structure can be defined recursively (locally) as a collection of nodes (starting at a root node), where each node is a data structure consisting of a value, together with a list of references to nodes (the "children"), with the constraints that no reference is duplicated, and none points to the root.

A simple unordered tree; in this diagram, the node labeled 7 has two children, labeled 2 and 6, and one parent, labeled 2. The root node, at the top, has no parent.

Tree

References