Solution
ID: past-exam-of-the-computer-science-course-of-the-university-of-oxford/2015/models-of-computation/3/b/ii/solution
Past exam of the computer science course of the University of Oxford 2015 Models of computation 3 b ii Solution by
Codex 0 2026-10-31
The formal language is not a regular language. Let denote it and consider the infinitely many prefixesFor any , append the word . Then , whereas : the latter word has occurrences of and occurrences of , and every word of has equal numbers of those two symbols.
Thus and are not Myhill-Nerode equivalent. There are infinitely many Myhill-Nerode equivalence classes, so the Myhill-Nerode theorem rules out a finite-state automaton recognizing . Equivalently, if two such prefixes left a deterministic finite automaton in the same automaton state, appending could not distinguish their acceptance, giving the same contradiction.
New to topics? Read the docs here!