← Back to Portfolio

Interactive Sorting Algorithm Visualizer

Project Overview

This interactive sorting algorithm visualizer is an educational tool designed to help students and developers understand how different sorting algorithms work. The application provides real-time visualization of six fundamental sorting algorithms, allowing users to see exactly how data is compared, swapped, and organized during the sorting process.

Built with performance in mind, the visualizer uses HTML5 Canvas for smooth animations and provides detailed metrics about each algorithm's performance. Users can adjust the array size and animation speed to better understand the algorithms at their own pace, making it an ideal learning resource for computer science students and anyone interested in algorithm optimization.

Comparisons: 0
Swaps: 0
Time: 0.0s

Bubble Sort

Time Complexity: O(n²)
Space Complexity: O(1)
Best Case: O(n)
Worst Case: O(n²)

Bubble Sort repeatedly steps through the list, compares adjacent elements and swaps them if they're in the wrong order.

Key Features

Technologies Used

JavaScript ES6+ HTML5 Canvas CSS3 Async/Await Promise API Object-Oriented Programming Algorithm Design Data Structures Responsive Design Animation API