a Language is considered regular if there exists a DFA such that . that is, the problem encoded by language can be solved by a definite state automata.

Example

a regular language could be . here, we could probably construct an automata that only uses two states.

Example

a non-regular language could be . the number of states to consider is not finite, and therefore a DFA cannot be constructed for it.

proving a language is not regular

Theorem

if there exists an infinite set of pairwise, distinguishable strings w.r.t. a language , then cannot be regular.

this follows from the idea that a set of pairwise distinguishable strings corresponds to a DFA having at least states. if is infinite, then a finite-state automata cannot exist! (infinite states)

converse also holds: if is not regular, then an infinite number of pairwise distinguishable strings exist w.r.t. to language .