Interactive Simulations
Interactive Canvas and SVG simulations explaining algorithms, networking, OS internals, electronics, and physics.
Binary Search Interactive Simulation
Explore O(log n) divide-and-conquer search over sorted arrays with step-by-step midpoint narrowing.
Linear Search Interactive Simulation
Visualize O(n) sequential scanning across unsorted elements.
Bubble Sort Interactive Simulation
Watch adjacent element swaps bubble maximum values to the end in O(n²) time.
Insertion Sort Interactive Simulation
Step through building a sorted prefix one element at a time.
Selection Sort Interactive Simulation
Visualize minimum selection and in-place prefix swapping.
Merge Sort Interactive Simulation
Understand O(n log n) recursive splitting and stable linear-time merging.
Quick Sort Partitioning Simulation
Explore pivot selection, Lomuto/Hoare partitioning, and average O(n log n) sorting.
Heap Sort & Binary Heap Simulation
Visualize max-heap construction and repeated root extraction.
Stack (LIFO) Push & Pop Simulation
Explore Last-In, First-Out stack frames and O(1) push/pop operations.
Queue (FIFO) Enqueue & Dequeue Simulation
Visualize First-In, First-Out circular buffer queueing behavior.
Singly Linked List Traversal Simulation
Inspect node pointers, O(1) head insertion, and O(n) linear traversal.
Binary Search Tree (BST) Simulation
Understand ordered tree invariants, in-order traversal, and balance sensitivity.
Breadth-First Search (BFS) Graph Simulation
Visualize level-order shortest-path exploration using a FIFO queue.
Depth-First Search (DFS) Graph Simulation
Explore recursive backtracking traversal across graph edges.
Dijkstra's Shortest Path Simulation
Step through greedy priority-queue edge relaxation for non-negative weighted graphs.
Hash Table Buckets & Collision Simulation
Explore hash functions, load factor, chaining, and open addressing.
Bloom Filter Probabilistic Set Simulation
See how multiple hash functions trade memory for bounded false positives with zero false negatives.
LRU Cache Eviction Simulation
Understand O(1) hash-map + doubly-linked-list Least Recently Used eviction.
CPU Scheduling (FCFS / SJF / Round Robin)
Compare turnaround time and starvation across classic OS scheduler queues.
Virtual Memory Paging & Page Faults
Visualize virtual-to-physical frame translation and page-table lookups.
Translation Lookaside Buffer (TLB) Simulation
See how hardware TLB hit rates accelerate virtual address translation.
Deadlock & Resource Allocation Graph
Understand mutual exclusion, hold-and-wait, and circular wait cycles.
Producer-Consumer Bounded Buffer
Visualize thread synchronization across a shared fixed-capacity ring buffer.
5-Stage RISC CPU Pipeline Simulation
Explore IF, ID, EX, MEM, WB instruction overlap and pipeline hazards.
CPU Cache Mapping (Direct vs Set-Associative)
Understand cache lines, tag bits, conflict misses, and spatial locality.
Unix Filesystem Inodes & Direct/Indirect Blocks
Visualize how POSIX directories map filenames to inode metadata and disk blocks.
OS Process State Transitions Simulation
Step through New, Ready, Running, Waiting, and Terminated process states.
Mutex Locks & Counting Semaphores
Visualize critical-section protection and wait-queue signaling.
TCP 3-Way Handshake Simulation
Step through SYN, SYN-ACK, and ACK sequence numbers establishing reliable TCP sessions.
TCP Congestion Control (Slow Start & AIMD)
Visualize congestion window growth, packet loss detection, and multiplicative decrease.
DNS Recursive & Iterative Resolution
Trace queries from stub resolver through Root, TLD, and Authoritative nameservers.
HTTP Request-Response Lifecycle
Follow DNS, TCP/TLS setup, request headers, origin processing, and response streaming.
TLS 1.3 1-RTT Handshake Simulation
Explore ephemeral key exchange (ECDHE), certificate verification, and encrypted application data.
IP Packet Routing & TTL Decrement
Watch Layer-3 routers forward packets hop-by-hop while decrementing IPv4 TTL.
IPv4 Subnetting & CIDR Prefix Visualizer
Explore how prefix lengths split network IDs and host address pools.
ARP Layer-2 MAC Address Resolution
Trace broadcast ARP requests and unicast ARP replies on a local Ethernet LAN.
DHCP DORA IP Lease Assignment
Step through Discover, Offer, Request, and Acknowledge dynamic IP allocation.
Reverse Proxy Load Balancing Simulation
Compare Round-Robin and Least-Connections request distribution across backend workers.
CDN Edge Caching & Origin Shielding
Visualize cache hits at edge PoPs versus origin cache-miss round trips.
WebSocket Full-Duplex Frame Flow
Explore persistent bidirectional messaging after HTTP 101 Upgrade.
Digital Logic Gates (AND, OR, NOT, XOR) Simulation
Inspect truth tables and signal propagation across fundamental Boolean gates.
Half Adder & Full Binary Adder Simulation
See how XOR and AND gates compute binary sum and carry-out bits.
SR & D Flip-Flop Sequential Memory
Explore clock-edge latching and single-bit digital state retention.
Boolean Algebra & De Morgan’s Laws
Visualize logical equivalence and gate minimization principles.
Ohm's Law Interactive Circuit Simulation
Observe how voltage and resistance govern current flow and power dissipation.
Series vs Parallel Circuit Behavior
Compare voltage division in series loops versus current division in parallel branches.
RC Capacitor Charging & Discharging Curve
Visualize exponential 1 - e^(-t/τ) voltage rise across a charging capacitor.
AC Sine Wave Frequency & Phase Shift
Explore RMS amplitude, angular frequency ω, and phase offset in AC circuits.
Full-Wave Rectifier & Ripple Smoothing
Understand AC-to-DC conversion and capacitor ripple voltage reduction.
Pulse-Width Modulation (PWM) Duty Cycle
Visualize average voltage control via high-frequency digital duty cycles.
Projectile Motion Trajectory Simulation
Explore parabolic kinematics under uniform gravity with adjustable launch parameters.
Simple Pendulum Oscillation Simulation
Observe periodic swing motion and period dependence T = 2π√(L/g).
Spring-Mass Simple Harmonic Oscillator
Visualize Hooke’s Law restoring force F = -kx and sinusoidal displacement.
Wave Superposition & Interference
Observe constructive and destructive interference of traveling waves.
Acoustic & Optical Doppler Shift Simulation
Understand observed frequency compression and stretching from moving sources.
Snell's Law Light Refraction Simulation
Explore light bending across media boundaries n₁ sin(θ₁) = n₂ sin(θ₂).
Convex & Concave Thin Lens Ray Tracing
Explore focal length, real vs virtual images, and magnification 1/f = 1/do + 1/di.
Standing Waves & Harmonics on a String
Visualize fundamental and overtone nodes and antinodes on a fixed string.
Planetary Orbits & Kepler's Laws
Observe elliptical orbital motion and equal areas swept in equal times.
Lunar Phases & Orbital Geometry
Understand how Sun-Earth-Moon alignment creates waxing and waning phases.
Pulley Mechanical Advantage Simulation
See how multiple supporting rope segments trade pulling distance for reduced force.
Meshing Gear Trains & Direction Reversal
Explore tooth count ratios, angular velocity, and torque transfer.
Four-Stroke Internal Combustion Cycle
Visualize Intake, Compression, Power, and Exhaust piston phases.
Kinetic Theory & Ideal Gas Pressure
Explore how particle speed and volume changes affect container pressure.
Elastic & Inelastic Collision Momentum
Understand conservation of linear momentum m₁v₁ + m₂v₂.
Unit Circle & Sine/Cosine Wave Projection
Connect rotating unit-circle angles directly to sinusoidal wave graphs.
Fourier Series Square-Wave Synthesis
See how summing odd-harmonic sine waves approximates a square wave.
Central Limit Theorem Sampling Simulation
Understand why sample means converge toward a normal bell curve.
Monte Carlo Estimation of Pi (π)
Explore stochastic area sampling inside a unit square and inscribed quarter-circle.
Gradient Descent Optimization Visualizer
Understand learning rate, slope steps, and convergence toward local minima.
Quadratic & Cubic Bézier Curve Construction
Visualize De Casteljau linear interpolation shaping vector curves.
Conway's Game of Life Cellular Automaton
Explore emergent complexity from four simple neighbor-count rules.
Self-Similar Fractal Iteration Visualizer
Understand recursive geometric subdivision and fractal dimension.
Normal Distribution & 68-95-99.7 Rule
Visualize mean shifting and standard-deviation spread on Gaussian curves.
Bayesian Belief Updating Visualizer
See how sequential evidence shifts prior probabilities to posterior estimates.
B-Tree Database Index Lookup Simulation
Visualize O(log n) root-to-leaf key comparison inside a balanced B-Tree database index.
Write-Ahead Logging (WAL) Commit & Checkpoint Simulation
Step through sequential WAL append, fsync durability, commit ACK, and B-Tree checkpointing.
LSM-Tree MemTable Flush & SSTable Compaction Simulation
Explore how RocksDB/Cassandra buffer writes in RAM and merge-sort immutable disk levels.
MVCC Snapshot Isolation Simulation (PostgreSQL)
See how readers inspect committed tuple versions without blocking concurrent writers.
Consistent Hashing Ring Partitioning Simulation
Visualize clockwise hash-ring routing and minimal key movement when scaling nodes.
Raft Consensus Leader Election & Quorum Simulation
Step through election timeouts, RequestVote majority quorums, and leader heartbeats.
Token Bucket API Rate Limiter Simulation
Explore burst capacity, steady refill rate, and HTTP 429 throttling decisions.
Leaky Bucket Traffic Shaper Simulation
Visualize burst absorption and constant-rate queue draining.
Microservice Circuit Breaker State Machine Simulation
Step through Closed, Open (fail-fast), and Half-Open recovery probe states.
Two-Phase Commit (2PC) Distributed Transaction Simulation
Explore Coordinator PREPARE/COMMIT vs fault-triggered global ROLLBACK.
Epidemic Gossip Protocol Cluster Dissemination Simulation
Watch logarithmic O(log N) state spread across distributed peers by fanout.
Standing Wave Harmonics & Nodes Simulation
Explore fundamental and higher harmonic modes on a fixed-end vibrating string.
Acoustic Doppler Effect Wavefront Compression Simulation
Visualize wavefront bunching ahead of a moving sound source up to Mach 0.9.
Projectile Trajectory & Range Simulation
Adjust launch speed and angle to inspect parabolic flight time and horizontal range.
Damped Harmonic Oscillator (Under/Overdamped) Simulation
Vary damping ratio ζ and natural frequency ω₀ to compare underdamped vs overdamped decay.
Carnot Heat Engine Cycle & Efficiency Limit Simulation
Adjust hot and cold reservoir Kelvin temperatures to inspect the thermodynamic efficiency ceiling.
Solar PV Cell I-V Curve & Maximum Power Point Simulation
Vary solar irradiance (W/m²) and open-circuit voltage to locate the MPP knee.
RC Low-Pass Filter Bode Magnitude Response Simulation
Vary resistance R and capacitance C to observe the -3 dB cutoff frequency and -20 dB/dec roll-off.
A* Heuristic Grid Pathfinding Simulation
Observe shortest-path grid exploration routing around configurable obstacles.
Huffman Prefix-Free Compression Tree Simulation
Adjust symbol frequency skew to see variable-length codes beat fixed-width encoding.
Conway's Game of Life Cellular Automaton (B3/S23)
Step through classic Blinker and Glider cellular automaton evolution rules.
Fourier Series Square-Wave Harmonic Synthesis Simulation
Add odd sine harmonics to build a square wave and inspect Gibbs edge overshoot.
Red-Black Tree Insertion, Recoloring & Rotation Simulation
Insert keys step-by-step with real left/right rotations and color flips preserving uniform black-height.
AVL Tree Balance Factor & LL/RR/LR/RL Rotation Simulation
Step through real AVL insertions and rotations keeping |balance factor| <= 1 at every node.
Kruskal Minimum Spanning Tree (Sorted Edges & Cycle Rejection)
Sort weighted edges ascending and run Union-Find to accept MST edges and reject cycle-forming edges.
Prim Minimum Spanning Tree Frontier Selection Simulation
Grow a visited vertex set by repeatedly selecting the minimum-weight cut edge crossing the frontier.
Bellman-Ford Edge Relaxation & Negative-Cycle Detection
Run |V|-1 relaxation passes and inspect the |V|-th pass detecting negative-weight cycles.
Floyd-Warshall All-Pairs Shortest Path DP Matrix
Observe real intermediate-vertex relaxation dist[i][j] = min(dist[i][j], dist[i][k] + dist[k][j]).
Kahn Topological Sort In-Degree Queue Simulation
Remove zero-in-degree DAG vertices and decrement neighbor in-degrees step-by-step.
Disjoint Set Union (Union-by-Rank & Path Compression)
Execute union operations and track parent pointers and connected component count.
Knuth-Morris-Pratt (KMP) LPS Prefix Function Builder
Compute the exact Longest Proper Prefix-Suffix (LPS) failure array for pattern matching.
Kadane Maximum Subarray Dynamic Programming Simulation
Compute running curMax = max(x, curMax + x) and global optimum across positive/negative elements.
Levenshtein Edit Distance DP Table Simulation
Compute exact insert, delete, and substitution edit distance from KITTEN to SITTING.
0/1 Knapsack Dynamic Programming Capacity Table
Adjust knapsack weight capacity W to observe exact optimal value DP transitions.
Counting Sort Frequency Histogram & Stable Placement
Accumulate integer bucket counts and reconstruct the sorted output array without comparisons.
Monotonic Deque Sliding Window Maximum Simulation
Vary window size k to compute exact O(n) rolling maxima across an array.
Diffie-Hellman Modular Key Exchange Simulation
Vary Alice and Bob private exponents to verify B^a mod p === A^b mod p shared secret agreement.
Textbook RSA Modular Exponentiation & Decryption
Encrypt plaintext m via m^e mod n and verify exact recovery via c^d mod n.
Series RLC Circuit Impedance & Resonance Curve
Adjust resistance R and capacitance C to inspect resonant frequency f0 = 1/(2*pi*sqrt(LC)).
DC-DC Buck Converter PWM Duty Cycle & Output Voltage
Adjust input voltage Vin and PWM duty cycle D to observe regulated Vout = D * Vin.
Kepler Elliptical Orbit & Eccentric Anomaly Solver
Solve Kepler equation M = E - e*sin(E) iteratively across eccentricities.
Radioactive Exponential Decay & Half-Life Curve
Adjust half-life T1/2 to inspect N(t) = N0 * 2^(-t/T1/2) remaining fraction over time.
Discrete PID Controller Step Response Simulation
Tune proportional Kp and derivative Kd gains to inspect plant overshoot and settling.
1D Gradient Descent Convergence vs Learning Rate
Adjust learning rate eta on f(x) = (x - 2)^2 + 1 to observe convergence versus oscillation.
Newton-Raphson Square Root Quadratic Convergence
Observe quadratic error reduction solving x^2 - S = 0 iteratively.
Sequential Bayesian Posterior Probability Updater
Adjust prior probability and test sensitivity to watch posterior P(H|E) update across observations.
2D K-Means Clustering & SSE Centroid Minimization
Step through point assignment and centroid recomputation reducing within-cluster SSE.