Interactive Simulations

Interactive Canvas and SVG simulations explaining algorithms, networking, OS internals, electronics, and physics.

122 Verified Resources Runs locally in browser Free · No registration

Binary Search Interactive Simulation

Explore O(log n) divide-and-conquer search over sorted arrays with step-by-step midpoint narrowing.

Algorithms2026-11-24

Linear Search Interactive Simulation

Visualize O(n) sequential scanning across unsorted elements.

Algorithms2026-11-24

Bubble Sort Interactive Simulation

Watch adjacent element swaps bubble maximum values to the end in O(n²) time.

Algorithms2026-11-24

Insertion Sort Interactive Simulation

Step through building a sorted prefix one element at a time.

Algorithms2026-11-24

Selection Sort Interactive Simulation

Visualize minimum selection and in-place prefix swapping.

Algorithms2026-11-24

Merge Sort Interactive Simulation

Understand O(n log n) recursive splitting and stable linear-time merging.

Algorithms2026-11-24

Quick Sort Partitioning Simulation

Explore pivot selection, Lomuto/Hoare partitioning, and average O(n log n) sorting.

Algorithms2026-11-24

Heap Sort & Binary Heap Simulation

Visualize max-heap construction and repeated root extraction.

Algorithms2026-11-24

Stack (LIFO) Push & Pop Simulation

Explore Last-In, First-Out stack frames and O(1) push/pop operations.

Data Structures2026-11-24

Queue (FIFO) Enqueue & Dequeue Simulation

Visualize First-In, First-Out circular buffer queueing behavior.

Data Structures2026-11-24

Singly Linked List Traversal Simulation

Inspect node pointers, O(1) head insertion, and O(n) linear traversal.

Data Structures2026-11-24

Binary Search Tree (BST) Simulation

Understand ordered tree invariants, in-order traversal, and balance sensitivity.

Data Structures2026-11-24

Breadth-First Search (BFS) Graph Simulation

Visualize level-order shortest-path exploration using a FIFO queue.

Algorithms2026-11-24

Depth-First Search (DFS) Graph Simulation

Explore recursive backtracking traversal across graph edges.

Algorithms2026-11-24

Dijkstra's Shortest Path Simulation

Step through greedy priority-queue edge relaxation for non-negative weighted graphs.

Algorithms2026-11-24

Hash Table Buckets & Collision Simulation

Explore hash functions, load factor, chaining, and open addressing.

Data Structures2026-11-24

Bloom Filter Probabilistic Set Simulation

See how multiple hash functions trade memory for bounded false positives with zero false negatives.

Data Structures2026-11-24

LRU Cache Eviction Simulation

Understand O(1) hash-map + doubly-linked-list Least Recently Used eviction.

Data Structures2026-11-24

CPU Scheduling (FCFS / SJF / Round Robin)

Compare turnaround time and starvation across classic OS scheduler queues.

Operating Systems2026-11-24

Virtual Memory Paging & Page Faults

Visualize virtual-to-physical frame translation and page-table lookups.

Operating Systems2026-11-24

Translation Lookaside Buffer (TLB) Simulation

See how hardware TLB hit rates accelerate virtual address translation.

Operating Systems2026-11-24

Deadlock & Resource Allocation Graph

Understand mutual exclusion, hold-and-wait, and circular wait cycles.

Operating Systems2026-11-24

Producer-Consumer Bounded Buffer

Visualize thread synchronization across a shared fixed-capacity ring buffer.

Operating Systems2026-11-24

5-Stage RISC CPU Pipeline Simulation

Explore IF, ID, EX, MEM, WB instruction overlap and pipeline hazards.

Computer Architecture2026-11-24

CPU Cache Mapping (Direct vs Set-Associative)

Understand cache lines, tag bits, conflict misses, and spatial locality.

Computer Architecture2026-11-24

Unix Filesystem Inodes & Direct/Indirect Blocks

Visualize how POSIX directories map filenames to inode metadata and disk blocks.

Operating Systems2026-11-24

OS Process State Transitions Simulation

Step through New, Ready, Running, Waiting, and Terminated process states.

Operating Systems2026-11-24

Mutex Locks & Counting Semaphores

Visualize critical-section protection and wait-queue signaling.

Operating Systems2026-11-24

TCP 3-Way Handshake Simulation

Step through SYN, SYN-ACK, and ACK sequence numbers establishing reliable TCP sessions.

Networking2026-11-24

TCP Congestion Control (Slow Start & AIMD)

Visualize congestion window growth, packet loss detection, and multiplicative decrease.

Networking2026-11-24

DNS Recursive & Iterative Resolution

Trace queries from stub resolver through Root, TLD, and Authoritative nameservers.

Networking2026-11-24

HTTP Request-Response Lifecycle

Follow DNS, TCP/TLS setup, request headers, origin processing, and response streaming.

Networking2026-11-24

TLS 1.3 1-RTT Handshake Simulation

Explore ephemeral key exchange (ECDHE), certificate verification, and encrypted application data.

Networking2026-11-24

IP Packet Routing & TTL Decrement

Watch Layer-3 routers forward packets hop-by-hop while decrementing IPv4 TTL.

Networking2026-11-24

IPv4 Subnetting & CIDR Prefix Visualizer

Explore how prefix lengths split network IDs and host address pools.

Networking2026-11-24

ARP Layer-2 MAC Address Resolution

Trace broadcast ARP requests and unicast ARP replies on a local Ethernet LAN.

Networking2026-11-24

DHCP DORA IP Lease Assignment

Step through Discover, Offer, Request, and Acknowledge dynamic IP allocation.

Networking2026-11-24

Reverse Proxy Load Balancing Simulation

Compare Round-Robin and Least-Connections request distribution across backend workers.

Networking2026-11-24

CDN Edge Caching & Origin Shielding

Visualize cache hits at edge PoPs versus origin cache-miss round trips.

Networking2026-11-24

WebSocket Full-Duplex Frame Flow

Explore persistent bidirectional messaging after HTTP 101 Upgrade.

Networking2026-11-24

Digital Logic Gates (AND, OR, NOT, XOR) Simulation

Inspect truth tables and signal propagation across fundamental Boolean gates.

Digital Logic2026-11-24

Half Adder & Full Binary Adder Simulation

See how XOR and AND gates compute binary sum and carry-out bits.

Digital Logic2026-11-24

SR & D Flip-Flop Sequential Memory

Explore clock-edge latching and single-bit digital state retention.

Digital Logic2026-11-24

Boolean Algebra & De Morgan’s Laws

Visualize logical equivalence and gate minimization principles.

Digital Logic2026-11-24

Ohm's Law Interactive Circuit Simulation

Observe how voltage and resistance govern current flow and power dissipation.

Electronics2026-11-24

Series vs Parallel Circuit Behavior

Compare voltage division in series loops versus current division in parallel branches.

Electronics2026-11-24

RC Capacitor Charging & Discharging Curve

Visualize exponential 1 - e^(-t/τ) voltage rise across a charging capacitor.

Electronics2026-11-24

AC Sine Wave Frequency & Phase Shift

Explore RMS amplitude, angular frequency ω, and phase offset in AC circuits.

Electronics2026-11-24

Full-Wave Rectifier & Ripple Smoothing

Understand AC-to-DC conversion and capacitor ripple voltage reduction.

Electronics2026-11-24

Pulse-Width Modulation (PWM) Duty Cycle

Visualize average voltage control via high-frequency digital duty cycles.

Electronics2026-11-24

Projectile Motion Trajectory Simulation

Explore parabolic kinematics under uniform gravity with adjustable launch parameters.

Physics2026-11-24

Simple Pendulum Oscillation Simulation

Observe periodic swing motion and period dependence T = 2π√(L/g).

Physics2026-11-24

Spring-Mass Simple Harmonic Oscillator

Visualize Hooke’s Law restoring force F = -kx and sinusoidal displacement.

Physics2026-11-24

Wave Superposition & Interference

Observe constructive and destructive interference of traveling waves.

Physics2026-11-24

Acoustic & Optical Doppler Shift Simulation

Understand observed frequency compression and stretching from moving sources.

Physics2026-11-24

Snell's Law Light Refraction Simulation

Explore light bending across media boundaries n₁ sin(θ₁) = n₂ sin(θ₂).

Physics2026-11-24

Convex & Concave Thin Lens Ray Tracing

Explore focal length, real vs virtual images, and magnification 1/f = 1/do + 1/di.

Physics2026-11-24

Standing Waves & Harmonics on a String

Visualize fundamental and overtone nodes and antinodes on a fixed string.

Physics2026-11-24

Planetary Orbits & Kepler's Laws

Observe elliptical orbital motion and equal areas swept in equal times.

Astronomy2026-11-24

Lunar Phases & Orbital Geometry

Understand how Sun-Earth-Moon alignment creates waxing and waning phases.

Astronomy2026-11-24

Pulley Mechanical Advantage Simulation

See how multiple supporting rope segments trade pulling distance for reduced force.

Mechanics2026-11-24

Meshing Gear Trains & Direction Reversal

Explore tooth count ratios, angular velocity, and torque transfer.

Mechanics2026-11-24

Four-Stroke Internal Combustion Cycle

Visualize Intake, Compression, Power, and Exhaust piston phases.

Mechanics2026-11-24

Kinetic Theory & Ideal Gas Pressure

Explore how particle speed and volume changes affect container pressure.

Physics2026-11-24

Elastic & Inelastic Collision Momentum

Understand conservation of linear momentum m₁v₁ + m₂v₂.

Physics2026-11-24

Unit Circle & Sine/Cosine Wave Projection

Connect rotating unit-circle angles directly to sinusoidal wave graphs.

Mathematics2026-11-24

Fourier Series Square-Wave Synthesis

See how summing odd-harmonic sine waves approximates a square wave.

Mathematics2026-11-24

Central Limit Theorem Sampling Simulation

Understand why sample means converge toward a normal bell curve.

Statistics2026-11-24

Monte Carlo Estimation of Pi (π)

Explore stochastic area sampling inside a unit square and inscribed quarter-circle.

Mathematics2026-11-24

Gradient Descent Optimization Visualizer

Understand learning rate, slope steps, and convergence toward local minima.

Machine Learning2026-11-24

Quadratic & Cubic Bézier Curve Construction

Visualize De Casteljau linear interpolation shaping vector curves.

Computer Graphics2026-11-24

Conway's Game of Life Cellular Automaton

Explore emergent complexity from four simple neighbor-count rules.

Computer Science2026-11-24

Self-Similar Fractal Iteration Visualizer

Understand recursive geometric subdivision and fractal dimension.

Mathematics2026-11-24

Normal Distribution & 68-95-99.7 Rule

Visualize mean shifting and standard-deviation spread on Gaussian curves.

Statistics2026-11-24

Bayesian Belief Updating Visualizer

See how sequential evidence shifts prior probabilities to posterior estimates.

Probability2026-11-24

B-Tree Database Index Lookup Simulation

Visualize O(log n) root-to-leaf key comparison inside a balanced B-Tree database index.

Databases2026-11-25

Write-Ahead Logging (WAL) Commit & Checkpoint Simulation

Step through sequential WAL append, fsync durability, commit ACK, and B-Tree checkpointing.

Databases2026-11-25

LSM-Tree MemTable Flush & SSTable Compaction Simulation

Explore how RocksDB/Cassandra buffer writes in RAM and merge-sort immutable disk levels.

Databases2026-11-25

MVCC Snapshot Isolation Simulation (PostgreSQL)

See how readers inspect committed tuple versions without blocking concurrent writers.

Databases2026-11-25

Consistent Hashing Ring Partitioning Simulation

Visualize clockwise hash-ring routing and minimal key movement when scaling nodes.

Distributed Systems2026-11-25

Raft Consensus Leader Election & Quorum Simulation

Step through election timeouts, RequestVote majority quorums, and leader heartbeats.

Distributed Systems2026-11-25

Token Bucket API Rate Limiter Simulation

Explore burst capacity, steady refill rate, and HTTP 429 throttling decisions.

Distributed Systems2026-11-25

Leaky Bucket Traffic Shaper Simulation

Visualize burst absorption and constant-rate queue draining.

Distributed Systems2026-11-25

Microservice Circuit Breaker State Machine Simulation

Step through Closed, Open (fail-fast), and Half-Open recovery probe states.

Distributed Systems2026-11-25

Two-Phase Commit (2PC) Distributed Transaction Simulation

Explore Coordinator PREPARE/COMMIT vs fault-triggered global ROLLBACK.

Distributed Systems2026-11-25

Epidemic Gossip Protocol Cluster Dissemination Simulation

Watch logarithmic O(log N) state spread across distributed peers by fanout.

Distributed Systems2026-11-25

Standing Wave Harmonics & Nodes Simulation

Explore fundamental and higher harmonic modes on a fixed-end vibrating string.

Physics & Waves2026-11-25

Acoustic Doppler Effect Wavefront Compression Simulation

Visualize wavefront bunching ahead of a moving sound source up to Mach 0.9.

Physics & Waves2026-11-25

Projectile Trajectory & Range Simulation

Adjust launch speed and angle to inspect parabolic flight time and horizontal range.

Mechanics2026-11-25

Damped Harmonic Oscillator (Under/Overdamped) Simulation

Vary damping ratio ζ and natural frequency ω₀ to compare underdamped vs overdamped decay.

Mechanics2026-11-25

Carnot Heat Engine Cycle & Efficiency Limit Simulation

Adjust hot and cold reservoir Kelvin temperatures to inspect the thermodynamic efficiency ceiling.

Thermodynamics2026-11-25

Solar PV Cell I-V Curve & Maximum Power Point Simulation

Vary solar irradiance (W/m²) and open-circuit voltage to locate the MPP knee.

Electronics2026-11-25

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.

Electronics2026-11-25

A* Heuristic Grid Pathfinding Simulation

Observe shortest-path grid exploration routing around configurable obstacles.

Algorithms2026-11-25

Huffman Prefix-Free Compression Tree Simulation

Adjust symbol frequency skew to see variable-length codes beat fixed-width encoding.

Algorithms2026-11-25

Conway's Game of Life Cellular Automaton (B3/S23)

Step through classic Blinker and Glider cellular automaton evolution rules.

Mathematics2026-11-25

Fourier Series Square-Wave Harmonic Synthesis Simulation

Add odd sine harmonics to build a square wave and inspect Gibbs edge overshoot.

Mathematics2026-11-25

Red-Black Tree Insertion, Recoloring & Rotation Simulation

Insert keys step-by-step with real left/right rotations and color flips preserving uniform black-height.

Data Structures2026-11-25

AVL Tree Balance Factor & LL/RR/LR/RL Rotation Simulation

Step through real AVL insertions and rotations keeping |balance factor| <= 1 at every node.

Data Structures2026-11-25

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.

Graph Algorithms2026-11-25

Prim Minimum Spanning Tree Frontier Selection Simulation

Grow a visited vertex set by repeatedly selecting the minimum-weight cut edge crossing the frontier.

Graph Algorithms2026-11-25

Bellman-Ford Edge Relaxation & Negative-Cycle Detection

Run |V|-1 relaxation passes and inspect the |V|-th pass detecting negative-weight cycles.

Graph Algorithms2026-11-25

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]).

Graph Algorithms2026-11-25

Kahn Topological Sort In-Degree Queue Simulation

Remove zero-in-degree DAG vertices and decrement neighbor in-degrees step-by-step.

Graph Algorithms2026-11-25

Disjoint Set Union (Union-by-Rank & Path Compression)

Execute union operations and track parent pointers and connected component count.

Data Structures2026-11-25

Knuth-Morris-Pratt (KMP) LPS Prefix Function Builder

Compute the exact Longest Proper Prefix-Suffix (LPS) failure array for pattern matching.

String Algorithms2026-11-25

Kadane Maximum Subarray Dynamic Programming Simulation

Compute running curMax = max(x, curMax + x) and global optimum across positive/negative elements.

Dynamic Programming2026-11-25

Levenshtein Edit Distance DP Table Simulation

Compute exact insert, delete, and substitution edit distance from KITTEN to SITTING.

Dynamic Programming2026-11-25

0/1 Knapsack Dynamic Programming Capacity Table

Adjust knapsack weight capacity W to observe exact optimal value DP transitions.

Dynamic Programming2026-11-25

Counting Sort Frequency Histogram & Stable Placement

Accumulate integer bucket counts and reconstruct the sorted output array without comparisons.

Sorting2026-11-25

Monotonic Deque Sliding Window Maximum Simulation

Vary window size k to compute exact O(n) rolling maxima across an array.

Algorithms2026-11-25

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.

Cryptography2026-11-25

Textbook RSA Modular Exponentiation & Decryption

Encrypt plaintext m via m^e mod n and verify exact recovery via c^d mod n.

Cryptography2026-11-25

Series RLC Circuit Impedance & Resonance Curve

Adjust resistance R and capacitance C to inspect resonant frequency f0 = 1/(2*pi*sqrt(LC)).

Electronics2026-11-25

DC-DC Buck Converter PWM Duty Cycle & Output Voltage

Adjust input voltage Vin and PWM duty cycle D to observe regulated Vout = D * Vin.

Power Electronics2026-11-25

Kepler Elliptical Orbit & Eccentric Anomaly Solver

Solve Kepler equation M = E - e*sin(E) iteratively across eccentricities.

Astrophysics2026-11-25

Radioactive Exponential Decay & Half-Life Curve

Adjust half-life T1/2 to inspect N(t) = N0 * 2^(-t/T1/2) remaining fraction over time.

Nuclear Physics2026-11-25

Discrete PID Controller Step Response Simulation

Tune proportional Kp and derivative Kd gains to inspect plant overshoot and settling.

Control Systems2026-11-25

1D Gradient Descent Convergence vs Learning Rate

Adjust learning rate eta on f(x) = (x - 2)^2 + 1 to observe convergence versus oscillation.

Optimization2026-11-25

Newton-Raphson Square Root Quadratic Convergence

Observe quadratic error reduction solving x^2 - S = 0 iteratively.

Numerical Methods2026-11-25

Sequential Bayesian Posterior Probability Updater

Adjust prior probability and test sensitivity to watch posterior P(H|E) update across observations.

Probability2026-11-25

2D K-Means Clustering & SSE Centroid Minimization

Step through point assignment and centroid recomputation reducing within-cluster SSE.

Machine Learning2026-11-25