An interactive algorithm visualization and benchmarking web tool comparing the execution time and step complexities of Bubble Sort vs Merge Sort.
- 📊 Step-by-Step Algorithm Visualization: Real-time visual representation of comparisons, swaps, and recursive splits.
-
⚡ Complexity Benchmark Comparison:
-
Bubble Sort:
$O(n^2)$ time complexity demonstration on randomized arrays. -
Merge Sort:
$O(n \log n)$ divide-and-conquer efficiency showcase.
-
Bubble Sort:
-
🎛️ Interactive Controls:
- Custom array input size (
$N=5$ to$N=100+$ ). - Adjustable animation speed and step-by-step playback.
- Real-time comparison metrics (comparisons count, swap operations, elapsed execution time).
- Custom array input size (
| Algorithm | Best Case | Average Case | Worst Case | Space Complexity |
|---|---|---|---|---|
| Bubble Sort | ||||
| Merge Sort |
Open index.html directly in any web browser, or serve locally:
git clone https://github.com/Srinath64312/sortlab-complexity-analyzer.git
cd sortlab-complexity-analyzer
# Launch local server
python -m http.server 8000Visit http://localhost:8000 to interact with the analyzer.
Open-source under the MIT License.