VisualSorting

Docs
Dark
Swipe to switch tabs
Comparisons: 0  |  Swaps: 0  |  Accesses: 0  |  Time: 0.00s
.json, .txt, .csv

Step-by-Step Mode

Execute sorting one step at a time with pseudocode highlighting

Step: 0 / 0
Generate an array and start stepping.
Comp: 0 Swaps: 0 Accesses: 0
Comparing
Swapping
Sorted
Pseudocode

Algorithm Race

Race algorithms against each other on identical data

2 racers ready

Benchmark

Run performance tests at full speed for objective comparisons

Select Algorithms

Average: Full Report:

Custom Algorithm Sandbox

Write your own sorting algorithm using Code or Blocks

Editor
Loading runtime...
API: arr await compare(i,j) await swap(i,j) await sleep(ms) stats.comp stats.swap
Comp: 0 Swaps: 0 Accesses: 0
Console

    Analytics & Encyclopedia

    Complexity charts, session statistics, and algorithm reference

    Complexity Comparison

    Time complexity of all algorithms (log scale)

    Best
    Average
    Worst

    Session Statistics

    Your activity this session

    Total Sorts 0
    Comparisons 0
    Swaps 0
    Array Accesses 0
    Most Used

    Algorithm Encyclopedia

    Quick reference for any algorithm

    Best Time
    Average Time
    Worst Time
    Space
    Stable
    In-Place
    Select an algorithm to see details.

    Data Export

    Export your session data

    Includes all sorts, benchmarks, and race data from this session.

    Algorithm Usage

    Distribution of algorithms you have run

    Performance Trends

    Comparisons and swaps over your last 50 sorts

    Sort History

    Your recent sorting activity

    Personal Bests

    Your fastest sort records

    Recommended Algorithm

    Best algorithm for your current array

    Dataset Analyzer

    Upload a massive dataset to analyze its entropy and find the optimal sorting algorithm.

    Upload CSV or JSON Files

    Up to 10 files, 1,000,000 items each

    Advanced Mode Tune analysis parameters
    Auto
    2,000
    2M
    15%
    Use WebGL for sortedness/runs on large datasets (>10K elements)

    Analyzing Dataset Entropy...

    Running mathematical profiling in background worker.

    Mathematical Profile

    GPGPU Accelerated
    0%
    Sortedness
    0
    Unique Elements
    0
    Reverse Runs
    0.00
    Standard Deviation
    Data Visualization
    Advanced Analysis Information Theory, Run Structure, Statistical Moments
    Information Theory
    0.00
    Shannon Entropy
    0%
    Normalized Entropy
    0
    Inversions
    0%
    Inversion Ratio
    Run Structure
    0
    Natural Runs
    0
    Longest Sorted Run
    --
    Distribution Type
    0%
    MC Lilliefors
    Statistical Moments
    --
    Mean
    --
    Median
    --
    Min
    --
    Max
    --
    Range
    --
    Skewness
    --
    Kurtosis
    --
    IQR

    Recommendation

    Based on the analysis, we recommend...

    Export Results
    Space Sort   G New Array   Step Next   Step Prev   1-6 Tabs   [ ] Cycle Tabs   H Hints   ? Full Shortcuts