(Note: this lab was done as a class-wide guided exercise. The problems here may not be exactly the same as the ones presented live in class.)
Consider the following finite automata diagram over alphabet \(\Sigma = \set{0, 1}\).
┌────1─────┐
↓ │
──> (q0) ──1──> (q1)
│ ↑ │ ↑
0 0 0 0
↓ │ ↓ │
(q3) ──1──> [q4]
↑ │
└────1─────┘
q0
is the initial state and q4
, denoted with square brackets, is the sole accepting state.
Consider the following formal definition of a finite automata: \(D = (Q, q_0, \Sigma, \delta, F)\) where:
\(\delta\) is a function defined by cases as follows:
\[\begin{align*} \delta(q_0, 0) =&\; q_0 \\ \delta(q_0, 1) =&\; q_1 \\ \delta(q_1, 0) =&\; q_0 \\ \delta(q_1, 1) =&\; q_2 \\ \delta(q_1, 0) =&\; q_0 \\ \delta(q_1, 1) =&\; q_0 \\ \end{align*}\]
Draw an automata diagram that captures this formal definition. Explore how the automata operates and in a sentence, describe the set of strings that the automata accepts.