Experiments
Interactive experiments and algorithm visualizations — each one runs real computation in the browser, so every point, boundary, and metric you see is the genuine article.
Stochastic Methods
Estimate π from random sampling and watch the estimate converge.
Unit square · 0 points shown
Samples
0
Estimate of π
0.00000
Absolute error
0.00000
Relative error
0.000%
About this experiment
x² + y² ≤ 1) approaches π/4, so π ≈ 4 · inside / total. Every number shown is derived from the running counts — nothing is precomputed. Error shrinks on the order of 1/√N, which is why the estimate settles slowly on the log-scaled convergence chart.Machine Learning
Train a small classifier and watch its decision boundary evolve.
Dataset
Activation
Epoch
0 / 400
Loss (BCE)
0.0000
Accuracy
0.0%
Architecture
2·8·8·1
About this experiment
Algorithms
Step through classic sorting algorithms and their complexity.
Algorithm
Time O(n log n) avg · Space O(log n) · Unstable
Comparisons
0
Swaps
0
Array writes
0
Elapsed
0.00s
animation time
About this experiment
compare, swap, or overwrite — for every operation it performs, and the visualization advances those steps frame by frame. The bars are the live array; highlighted bars are the indices being touched right now. The comparison and swap counts are the algorithm's actual work, and the complexity figures come from the selected algorithm's metadata.On the workbench
Graph Search
Compare A*, Dijkstra, and BFS on customizable grids.
Sequential Decisions
Watch a Q-learning agent learn to navigate a grid world.