Distinguishable or Not
Repeated practice: the tool draws a language and two words, and you decide whether they are in the same class or write a distinguishing word that the tool checks.
Last updated:
On this page we practise deciding whether two words are indistinguishable with respect to a language, and finding a distinguishing word when they are distinguishable.
Two words, one language
The tool draws a language from the languages of the lesson and of the tools page, and two short words.
If you think the words are in the same class, click “Same class”.
Otherwise, write a distinguishing word, that is, a continuation that puts exactly one of them in the language, and check it.
After each answer you can move on to another question.
The tool needs JavaScript. Use the questions on paper below.
Questions on paper
For each pair, decide whether the words are distinguishable with respect to the language, and if so write a distinguishing word.
Question 1. : the pair and ; the pair and .
Answer
: a DFA that follows progress in the pattern (as in Designing a Deterministic Finite Automaton) is in the state “read ” after both, so they are indistinguishable.
and are distinguishable: , because and .
Question 2. : the pair and ; the pair and .
Answer
: both have the same last two letters, . For every continuation , the second letter from the end of the resulting word is a letter of or one of the last two letters of the original word, so it is the same for both words.
and are distinguishable: , because and .
Question 3. : the pair and ; the pair and .
Answer
: neither has two equal letters next to each other, and both end with (both are in the class ).
and are distinguishable: , because and .
Back to Myhill–Nerode: What a State Remembers, or see the glossary.