DFA Minimizer

Step-by-step Finite Automata optimization via Table Filling or Partitioning

⚙️ Configuration

📊 Process Table / Partitions

Algorithm steps will appear here.

🔄 Graph Visualization

Initial DFA
⬡

📋 Steps

Configure and click Initialize to start...

🔀 Transition Table

Initialize to see the table.

📚 Tutorial & How to Use

1

Select Input Mode

Random Generated DFA: Creates a DFA guaranteed to have reducible states.

User Input Mode: Define your own DFA with custom states and transitions.

2

Choose Minimization Method

Table Filling (Myhill-Nerode): Marks distinguishable state pairs step-by-step.

Partitioning Method: Iteratively splits state partitions until stable. Groups are color-coded in the graph.

3

Configure Your DFA (User Mode)

Enter transitions one per line: A: 0->B, 1->C

The first state listed becomes the start state. List accept states comma-separated below.

4

Step Through

Click Initialize then use Next / Prev to walk through. Watch the Transition Table highlight the active state(s) at each step.

📌 Example Input

A: 0->B, 1->C
B: 0->A, 1->D
C: 0->C, 1->C
D: 0->D, 1->D

Accept States: C,D