Step 1: Describe the structure of strings in L
The language L consists of all binary strings that do not contain 111 as a substring. Hence, the only relevant information needed while reading a string is the length of the current suffix of consecutive 1’s, up to length 3.
Step 2: Identify necessary distinct situations
While scanning the input from left to right, the string can be in exactly one of the following situations:
Each situation must be represented by a different state, since future acceptance depends on it.
Step 3: Construct the automaton
Define the states:
Input behavior:
Accepting states are q0, q1, and q2.
Step 4: Argue minimality
Each state represents a unique future behavior:
No two of these states can be merged without changing the language accepted. Therefore, the automaton must contain at least four states.
Final Answer:
Minimum number of states = 4