← Back to Projects

leptons1618@anishgiri.dev:~/projects/markov-chain-lab cat project.toml

Simulation 2024 Stable

Markov Chain Lab

Interactive learning platform for Markov chains, automata, and grammar conversion.

category
Simulation
year
2024
status
Stable
stack
5 tools
highlights
4
write-up
9 min read

01Highlights

  1. Built an interactive chain builder supporting Markov chains, DFA, and NFA workflows.
  2. Added simulation and analysis modules for convergence, stationary distribution, and chain properties.
  3. Implemented grammar-to-automata and automata-to-grammar conversion utilities.
  4. Integrated Supabase-backed persistence for saved workspaces and user settings.

02Built with

  • 01Next.js
  • 02React
  • 03TypeScript
  • 04Tailwind CSS
  • 05Supabase

03Case study

March 1, 2024 9 min read 2,154 words

Markov Chain Lab

Interactive learning platform for Markov chains, automata, simulation, and grammar workflows.

The problem

Students and practitioners need one place to learn theory, build automata, run simulations, and validate behavior; most tools are fragmented across static notes and disconnected utilities.

The solution

Built a modern Next.js platform with an interactive builder, simulation and analysis tabs, grammar conversion tooling, and persisted user workspaces.

Outcomes

  • Visual chain builder supports Markov Chains, DFA, and NFA with interactive editing.
  • Simulation and analysis cover stationary behavior, convergence, and chain properties.
  • Grammar editor supports two-way grammar↔automata conversion with validation.

+1 more in the write-up

Inside the write-up

  1. Architecture Overview: App Router, Domain Core, and Feature Modules
  2. Visual Chain Builder: Canvas, State Layer, and Interaction Model
  3. Simulation Engine: Step Control, Auto-Run, and String Acceptance
  4. Grammar↔Automata Conversion: Parsing, Validation, and CFG Detection
  5. Markov Analysis: Stationary Distribution, Convergence, and Chain Properties
  6. Persistence, Authentication, and Admin Content Pipeline
  7. Learning Experience: Curriculum, Practice, and Interactive Demos
  8. Performance, Testing, and Operational Tooling
Read the full case study →