Table of Contents
4 forms of datastructure
There are 4 popular forms of datastructure
- Linear datastructure
- Hashing datastructure
- Tree datastructure
- Graph datastructure
1. Linear datastructure’s
Static linear datastructure
- Arrays
Dynamic linear datastructure
- Linked List
- Singly(simple) linked list
- Doubly linked list
- Circular(ly) linked list
- Double ended list
- Sorted list
- Multilinked list
- Stack
- Queue
- Circular queue
- Dequeue
- Priority queue
2. Hashing datastrucure’s (Linear / non-linear datastructure)
Hashing datastructure’s can be used with both linear datastructure and non-linear datastructure’s.
For example:
Hashmap in java used array and each element uses LinkedList / Binary Search Tree. Here LinkedList is the linear datastructure and BST is the non-linear datastructure. So most of the hashing datastructure’s can be used with linear/non-linear datastructures.
3. Tree datastructure’s (Non-linear datastructure)
- Balanced tree
- Balanced binary tree
- Binary tree
- Complete Binary tree
- Full Binary tree
- Perfect Binary tree
- Extend Binary tree
- Binary search tree
- AVL tree
- Splay tree
- Tango tree
- T-tree
- B-Tree
- B+ Tree
- Degenerate tree
- General tree
- Heap
- N-ary tree
- Red-black tree
- Skewed tree
- Treap (Tree + Heap)
- Trie
4. Graph Datastructure
- Finite graph
- Infinite graph
- Trivial graph
- Simple graph
- Multi graph
- Null graph
- Complete graph
- Pseudo graph
- Regular graph
- Directed graph
- Undirected graph
- Weighted graph
- Unweighted graph
- Connected graph
- Weekly connected graph
- Strongly connected graph
- Disconnected graph
- Cyclic graph
- Acyclic graph
- Directed acyclic graph
- Digraph graph
- Labelled graph
- Bipartite graph
- Subgraph
- Vertex disjoint subgraph
- Edge disjoint subgraph
- Dense graph
- Sparse graph