Skip to content

ahmertsengol/SortingAlgorithms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sorting Algorithm Visualizer

Professional Python tool for visualizing and comparing sorting algorithms with real-time animation.

Python Matplotlib License

📖 Overview

Sorting Animation

Interactive visualization tool that compares two sorting algorithms side-by-side with:

  • Real-time animation of 11 different sorting algorithms
  • Customizable dataset size (10-1000 elements)
  • Performance comparison with winner detection
  • Automatic validation of sorting correctness

Usage

  1. Choose number of bars (10-1000)
  2. Select two algorithms to compare
  3. Watch real-time visualization
  4. View performance results

🚀 Quick Start

# Install dependencies
pip install matplotlib

# Run visualizer
python SortingVisualizer.py

Supported Algorithms & Complexity

Algorithm Best Case Average Case Worst Case Space
Bubble Sort O(n) O(n²) O(n²) O(1)
Selection Sort O(n²) O(n²) O(n²) O(1)
Insertion Sort O(n) O(n²) O(n²) O(1)
Quick Sort O(n log n) O(n log n) O(n²) O(log n)
Heap Sort O(n log n) O(n log n) O(n log n) O(1)
Shell Sort O(n log n) O(n^1.25) O(n²) O(1)
Comb Sort O(n log n) O(n²) O(n²) O(1)
Radix Sort O(nk) O(nk) O(nk) O(n+k)
Bucket Sort O(n+k) O(n+k) O(n²) O(n)
Bogo Sort O(n) O((n+1)!) O(∞) O(1)
Merge Sort O(n log n) O(n log n) O(n log n) O(n)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Languages