Study this topic

Equivalence of Regular Expressions and Finite Automata

Regular expressions and finite automata define the same class of languages. One direction builds an ε-NFA from an expression (Thompson's construction). The other eliminates states from a DFA (or NFA) until a single regular expression remains.

Short notes8 min read

Deterministic Finite Automata

A deterministic finite automaton (DFA) is a finite-state machine that reads an input string from left to right, one symbol at a time, and either accepts or rejects. At every step the next state is uniquely determined by the current state and the current symbol.

Short notes10 min read

NFA, Epsilon-NFA and Subset Construction

A nondeterministic finite automaton (NFA) may have zero, one or many next states for a given state and symbol. It accepts a string if some sequence of choices leads to an accepting state. Allowing ε-transitions (moves without reading input) gives an ε-NFA.

Short notes8 min read

DFA Minimization

Two states of a DFA are equivalent when no string leads from one to an accept state and from the other to a reject state. Merging equivalent states yields the unique (up to renaming) minimal DFA for the language: fewest states among all DFAs for that language.

Short notes8 min read