# Minimal Mealy Machines

Learn how to minimize the number of states in a Mealy machine.

## We'll cover the following

## Minimizing number of states in Mealy machines

We can minimize the number of states in a Mealy machine just as we did for DFAs. The machine below, which prints a $1$ for each $b$ and a $1$ for every other $a$, starting with the first, has one more state than it needs.

Get hands-on with 1200+ tech skills courses.