Supplemental web visualizations for CSE/IEE 598: Bio-Inspired AI & Optimization at Arizona State University, taught by Theodore P. Pavlic (Associate Professor, SCAI & SOLS).
Live site: https://tpavlic.github.io/asu-bioinspired-ai-and-optimization/
The course surveys algorithms for optimization and multi-agent control inspired by biological and physical systems – genetic algorithms, simulated annealing, swarm intelligence, neural computation, and more. These visualizations are designed to build intuition for the concepts behind those algorithms and to be usable both standalone and embedded in Canvas LMS pages as iframes.
| Directory | Description |
|---|---|
shifting_balance_theory/ |
Interactive walkthrough of Sewall Wright's Shifting Balance Theory: genetic drift, within-deme selection, and interdemic migration |
ideal_free_distribution/ |
Interactive visualization of the Ideal Free Distribution, motivating fitness sharing in multi-modal GAs |
evolution_as_movement_in_drift_field/ |
Graphical explainer of selection, drift, and mutation as parallel forces pushing a population toward fixation |
genetic_algorithms/ga_explorer.html |
Interactive GA explorer: 1-D multimodal landscape with niching, island model / distributed GA, 2-D optimization zoo, and two-objective MOEA with Pareto ranking |
| Directory | Description |
|---|---|
evolution_strategies/es_explorer.html |
Interactive (μ,λ)- or (μ+λ)-ES explorer: per-individual step-size self-adaptation on a 1-D multimodal landscape, with optional correlated mutations |
evolution_strategies/cmaes_explorer.html |
Interactive CMA-ES explorer: watch the algorithm adapt its mean, step size (CSA), and full covariance matrix (rank-1/rank-μ updates) on a 2-D landscape in real time |
| Directory | Description |
|---|---|
evolutionary_programming/evolprog_representations.html |
Side-by-side explorer for three EP representation families – Abstract Syntax Trees, Linear Genetic Programs, and Finite-State Machines – with interactive variation operators and a cross-representation comparison |
artificial_immune_systems/ais_explorer.html |
Interactive explorer for Negative Selection (NSA) and CLONALG: train detectors on self-data to flag anomalies, and watch clonal selection and affinity maturation build a pattern-recognition repertoire |
| Directory | Description |
|---|---|
monte_carlo/ |
Interactive explorer for Monte Carlo estimation: dartboard and Buffon’s-needle estimates of π, an ant-inspired robot measuring a floor area from the crossings of its own trails, and Monte Carlo integration, all with accumulating 95% confidence intervals |
simulated_annealing/ |
Interactive explainer for Simulated Annealing: temperature schedules, neighbor selection, and probabilistic acceptance on an energy landscape |
parallel_tempering/ |
Interactive explainer for Parallel Tempering / REMC: fixed-temperature SA replicas at different temperatures with periodic configuration swaps |
softmax/ |
Interactive explorer for the softmax (Gibbs) distribution: how temperature interpolates between uniform exploration and greedy exploitation, connecting MaxEnt methods to SA and reinforcement learning |
maxent/ |
Interactive explainer for the Maximum Entropy principle: how MaxEnt selects the least-assumptive distribution consistent with known constraints, deriving the Gibbs/softmax distribution |
boltzmann_maxent/ |
Interactive simulation of N agents trading random amounts of a conserved quantity – any initial distribution relaxes to the Boltzmann (exponential) equilibrium |
boltzmann_maxent/beta_spacings.html |
Interactive Beta(α,β) distribution explorer: adjust α and β, draw N samples, and watch how order statistics and spacings connect uniform random variables to the Beta distribution |
| Directory | Description |
|---|---|
collective_motion/boids_explorer.html |
Interactive Boids explorer: tune separation, alignment, and cohesion weights to watch emergent flocking arise from Reynolds' three local rules – a classic inspiration for PSO |
collective_motion/vicsek_explorer.html |
Interactive Vicsek model explorer: adjust noise and interaction radius to watch self-propelled particles transition between disordered and coherent collective motion |
particle_swarm_optimization/pso_explorer.html |
Interactive explorer for PSO: step through the velocity-update rule with inertia, cognitive, and social components, then run a live swarm on a 2-D landscape |
bacterial_foraging_optimization/bfo_explorer.html |
Interactive explorer for the complete BFO algorithm (Passino 2002): cell-to-cell signaling and tumble-swim chemotaxis in 1-D and 2-D, plus the full nested loop with reproduction and elimination-dispersal |
ant_colony_optimization/aco_explorer.html |
Interactive ACO / Ant System explorer: pheromone-guided ants solve a layered combinatorial problem and a TSP – adjust evaporation rate and exploitation bias to see stigmergic reinforcement in action |
collective_behavior/ant_foraging_explorer.html |
Interactive ant foraging dynamics explorer: experiment with trail noise and Y-maze decision-making to see how pheromone stigmergy and recruitment linearity drive collective path selection |
| Directory | Description |
|---|---|
single_layer_perceptron/slp_explainer.html |
Animated explainer linking the biological neuron to the linear classifier: adjust synaptic weights and inputs to watch the decision boundary shift in real time |
radial_basis_function_nn/ |
Interactive explorer for RBF neural networks: centers, widths, weights, and the kernel-trick connection to SVMs |
multi_layer_perceptron/mlp_explorer.html |
Interactive MLP explorer: XOR, hidden-layer representations, backpropagation as gradient flow, and depth vs. width as a complexity story |
cross_entropy/cross_entropy_explainer.html |
Interactive explainer stepping from logit scores through softmax and entropy to cross-entropy loss and binary BCE – the information-theoretic foundation behind neural network classification |
optimal_foraging_theory/mvt_explorer.html |
Interactive MVT explorer: drag the tangent line to find optimal patch residence times under Charnov's Marginal Value Theorem – R* as opportunity cost mirrors the temporal discount rate in the reinforcement learning Bellman equation |
unsupervised_learning/autoencoder_explorer.html |
Interactive autoencoder explorer: train a deep autoencoder on MNIST-like digit data and watch the 2-D bottleneck encoding cluster by class – unsupervised representation learning with neural networks |
spiking_neural_networks/snn_explorer.html |
Interactive explorer for spiking neural networks: simulate leaky integrate-and-fire neurons, visualize spike trains and membrane potentials, and explore STDP – the biologically plausible Hebbian learning rule linking neural firing timing to synaptic weight updates |
memristors/memristor_stdp_array.html |
Interactive explorer for ferroelectric memristor crossbar arrays implementing STDP: adjust pulse timings, device parameters, and network architecture to watch Hebbian learning emerge from nanoscale physics |
hebbian_learning/hebbian_competitive_clustering.html |
Interactive explorer for Hebbian learning rules and lateral inhibition-driven competitive clustering: watch winner-take-all dynamics and simple synaptic updates organize input patterns into distinct categories without supervision |
recurrent_neural_networks/rnn_explorer.html |
Interactive explorer tracing TDNNs → output-feedback RNNs → autoregressive latent-state RNNs, with BPTT training and a visual guide to gated architectures (LSTM, GRU) |
reservoir_computing/esn_explorer.html |
Interactive reservoir computing explorer using Echo State Networks: adjust spectral radius, sparsity, and input scaling to watch a fixed random reservoir project inputs into separable high-dimensional dynamics |
root_mean_square/rms_explorer.html |
Interactive RMS voltage explorer: switch between sine, square, triangle, and sawtooth waveforms to see how RMS voltage depends only on waveform shape and equals the DC voltage that dissipates the same power – building signal-energy intuition that underpins reservoir state analysis |
transformers/transformer_explorer.html |
Interactive explorer for the Transformer architecture: step through scaled dot-product self-attention, multi-head attention, positional encodings, and Vision Transformers (ViT) with live attention-map and patch-embedding visualizations |
transformers/toward_multimodal_AI.html |
Interactive explainer tracing the path from CNNs and patch embeddings to Vision Transformers (ViT), CLIP-style contrastive pretraining, and modern multimodal architectures |
| Directory | Description |
|---|---|
cellular_automata/eca_explorer.html |
Interactive explorer for all 256 of Wolfram's elementary cellular automaton rules – seed the first row and watch simple local rules generate complex emergent patterns |
cellular_automata/voter_model.html |
Interactive voter model simulation – cells adopt neighbors' opinions via local copying rules, illustrating consensus dynamics, coexistence, and fragmentation |
Each visualization lives in its own subdirectory and generally follows this pattern:
my_demo/
my_demo.html # self-contained page
my_demo-preview.png # preview image for OG/Twitter cardsFor a new my_demo.html, the checklist is:
-
<head>metadata:- Include
<title>,<meta name="description">, and the full Open Graph + Twitter card block (see any existing demo for the template) - Use the preview image as
og:imageandtwitter:image; set width/height accurately - For Twitter/X, the image should be close to 2:1 aspect ratio and under 5 MB
- Include
-
Back-link footer – add at the bottom of
<body>:<footer id="course-nav-footer" style="margin-top:0;font-size:0.8rem;color:#888;"> <div style="max-width:MAX_WIDTH;margin:0 auto;padding:0.75rem 0 0 1rem;"> <a href="../" style="color:#2e7d32;text-decoration:none;" onmouseover="this.style.textDecoration='underline'" onmouseout="this.style.textDecoration='none'">← All course visualizations</a> </div> </footer> <script> if (window.self !== window.top) { var f = document.getElementById('course-nav-footer'); if (f) { f.style.display = 'none'; } } </script>
The script hides the footer when the page is embedded in a Canvas iframe.
-
Index entry – add a
<li>to the appropriate<section>inindex.html, following the existing pattern (thumbnail + title + one-sentence description).
Other projects by the same author that visitors here may find complementary:
- Simulating Stochastic Systems – Course Visualizations – supplemental visualizations for a separate ASU undergraduate course on simulating systems driven by randomness.
- Topic Visualizers – Interactive Explainers – interactive web demonstrations across science, mathematics, statistics, and engineering.
- Notes, Documents, & Guides – Markdown-formatted notes and instructional guides on a variety of fundamental and applied science and engineering topics.
- Lectures and short video tutorials on YouTube, including the Office Hours playlist.
Released under the MIT License. Copyright © 2026 Theodore P. Pavlic.