Skip to main content

Implementations

Data Structures

Linear Data Structures

Structures that store data elements sequentially.

Non-linear Data Structures

Structures that store data in a hierarchical or networked manner.

  • Tree
  • Graph

Hash-based Data Structures

Structures that use hash functions for efficient data storage and retrieval.

Algorithms

Search Algorithms

Algorithms for finding specific elements in a data structure.

Sorting Algorithms

Algorithms for arranging elements in a specific order.

Time Complexity Tables

Search Algorithms

AlgorithmBest CaseAverage CaseWorst Case
Linear SearchO(1)O(n)O(n)
Binary SearchO(1)O(log n)O(log n)
Fibonacci Search---
Interpolation Search---
Exponential Search---

Sorting Algorithms

AlgorithmBest CaseAverage CaseWorst Case
Quick SortO(n log n)O(n log n)O(n^2)
Merge SortO(n log n)O(n log n)O(n log n)
Heap SortO(n log n)O(n log n)O(n log n)
Insertion SortO(n)O(n^2)O(n^2)
Selection SortO(n^2)O(n^2)O(n^2)
Bubble SortO(n)O(n^2)O(n^2)

Additional Resources