Interactive CS VisualizerTypeScript • Java • Python

Algorithms & Data Structures

Step-by-step interactive animations, algorithmic state transitions, and zero-dependency multi-language reference implementations.

Quick Search

Categories

All Topics

12

Data Structures

4

Sorting Algorithms

6

Searching Algorithms

2

Big-O (Worst Case) Filter

Engine Features

• Interactive Step-by-Step Stepper

• TypeScript, Java, Python Reference

• Real-time LIFO/FIFO Pointer Chains

Showing:

12 items found

Data Structures

4

Stack

Data Structure

LIFO (Last-In, First-Out) collection supporting O(1) push, pop, and peek operations.

Worst Insert

O(1)

Worst Search

O(n)

Space

O(n)

Queue

Data Structure

FIFO (First-In, First-Out) collection supporting O(1) enqueue and dequeue operations.

Worst Insert

O(1)

Worst Search

O(n)

Space

O(n)

Singly Linked List

Data Structure

Unidirectional chain of nodes where each element points to the next in sequence.

Worst Insert

O(1)

Worst Search

O(n)

Space

O(n)

Doubly Linked List

Data Structure

Bidirectional chain of nodes containing pointers to both next and previous elements.

Worst Insert

O(1)

Worst Search

O(n)

Space

O(n)

Sorting Algorithms

6

Bubble Sort

Sorting

Repeatedly swaps adjacent elements that are in the wrong order.

Worst

O(n²)

Avg

O(n²)

Space

O(1)

Selection Sort

Sorting

Finds the minimum element and places it at the beginning each pass.

Worst

O(n²)

Avg

O(n²)

Space

O(1)

Insertion Sort

Sorting

Builds the sorted array one element at a time by inserting each into its correct position.

Worst

O(n²)

Avg

O(n²)

Space

O(1)

Merge Sort

Sorting

Divides the array in half, sorts each half, then merges them back together.

Worst

O(n log n)

Avg

O(n log n)

Space

O(n)

Quick Sort

Sorting

Picks a pivot and partitions the array into elements less than and greater than it.

Worst

O(n²)

Avg

O(n log n)

Space

O(log n)

Heap Sort

Sorting

Uses a max-heap data structure to repeatedly extract the largest element.

Worst

O(n log n)

Avg

O(n log n)

Space

O(1)

Searching Algorithms

2

Linear Search

Searching

Sequentially checks each element of the list until a match is found or the list ends.

Worst

O(n)

Avg

O(n)

Space

O(1)

Binary Search

Searching

Repeatedly divides the sorted search interval in half to locate the target.

Worst

O(log n)

Avg

O(log n)

Space

O(1)