Algorithm Visualizer
Watch algorithms come alive with step-by-step animations. Select an algorithm to visualize sorting, searching, graph traversal, tree operations, and data structures.
Bubble Sort
Repeatedly swap adjacent elements if they are in wrong order
Selection Sort
Find minimum element and place it at the beginning repeatedly
Insertion Sort
Build sorted array by inserting elements one at a time
Merge Sort
Divide array in half, sort each half, then merge them back
Quick Sort
Partition around pivot, recursively sort left and right
Heap Sort
Build max-heap, repeatedly extract maximum to sort
Binary Search
Divide sorted array in half repeatedly to find target
Linear Search
Check each element sequentially until target is found
Breadth-First Search
Explore level by level using a queue — finds shortest path
Depth-First Search
Explore as deep as possible before backtracking — uses stack
Dijkstra's Algorithm
Find shortest path using priority queue — weighted graphs
Stack (Push/Pop)
LIFO data structure — push and pop from the top
Queue (Enqueue/Dequeue)
FIFO data structure — enqueue at rear, dequeue from front
BST Insert & Search
Insert values maintaining BST property — left smaller, right larger
Hash Table Insert
Map keys to buckets via hash function — O(1) average lookup
Why Visualize Algorithms?
Understanding algorithms through visualization builds deep intuition that reading code alone cannot provide. Seeing how Bubble Sort bubbles elements up, how Quick Sort partitions around a pivot, or how BFS explores level-by-level transforms abstract concepts into concrete understanding.
For interview prep: Algorithm questions are the most common type of technical interview question at companies like Google, Meta, Amazon, and Microsoft. Visualizing how algorithms work helps you explain your approach clearly and catch edge cases.
Features: Step-by-step playback with adjustable speed, 2D and 3D visualization modes, custom input data, highlighted code execution, and complexity analysis for every algorithm.