Tree
About Tree
A
/ \
B C
/ \ \
D E F
A is the root.
B and C are children of A (siblings).
D and E are children of B.
F is a child of C.
D, E, and F are leaf nodes (no children).Binary Search Tree (BST)
Operation
Average Case
Worst Case
Balanced Binary Search Trees (AVL, Red-Black Trees)
Operation
AVL Tree
Red-Black Tree
B-Trees (Used in Databases & File Systems)
Operation
Complexity
Heap (Binary Heap, Fibonacci Heap)
Operation
Binary Heap
Fibonacci Heap
Trie (Prefix Tree)
Operation
Complexity
Last updated