Learn Before
Concept
Tree
A tree is an abstract data structure that represents a hierarchical tree. A tree contains a root which is connected to subtrees through linked nodes. The tree data structure is inherently recursive, since a node's subtree is also a tree in and of itself. A node that has a subtree is the "parent" node of the subtree. The nodes within the subtree of the parent node are called "child" nodes. Child nodes that have the same parent are known as "sibling" nodes.
There are many types of tree data structures. A few of them include:
- Binary Tree (Binary Search Tree)
- AVL Tree
- Red-Black Tree
- Splay Tree
- Treap
- B-Tree
- N-ary Tree
0
1
Updated 2021-05-11
Tags
Python Programming Language
Data Science