Quidest?

Tree Data Structure

· Lorenzo Drumond

Tree Data Structure

A tree is a widely used data structure 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 is a collection of nodes starting at a root or head node, similar to how a linked list was a collection of nodes starting with a head (root). The big difference between a LL and a tree is that a tree’s nodes can have multiple children instead of just one.

A generic tree structure has the following rules:

List

node -> node -> node

Tree

            > node
      > node
            > node
> node
            > node
      > node
            > node

References

Next -> binary-tree-data-structure

#list #linked #tree #memory #boot_dev #computer_science #structure #programming #data