Given a language , define as follows:The order of a language is defined as the smallest such that . Consider the language over alphabet accepted by the following automaton.

The order of is ________.
View worked solution
Answer: 2
The given automaton has three states: (start and final state), (non-final state), and (final state), with transitions forming a cycle of length 3: .
Thus, the language consists of all strings where :
Now, let us compute the powers of :
- :
- :
- : Since , we have . The lengths of non-empty strings in are formed by the sum of any two lengths from . Since and , any integer can be expressed as for non-negative integers . Thus, all lengths are present:
- : Since the minimum non-zero length in is 2, any non-zero string in must have length at least 2. Since , we have . Thus:
Since , the smallest such that is .
Free practice · Your answers on this page are not saved.
