2081 2

CSC262 · 2081 · 10 marks

List any two regular operators. Minimize the following finite state machine using Table Filling algorithm.

List any two regular operators. Minimize the following finite state machine using Table Filling algorithm.[10]

Theory of ComputationChapter 3: Regular ExpressionsMinimization of Finite State MachinesNumerical: FSM minimization table filling

Regular Operators and DFA Minimization Using Table Filling Algorithm


Part 1: Two Regular Operators

Regular operators are the operations used to construct regular expressions from smaller ones. Any two of the following are acceptable:

  1. Union (| or +): If $R$ and $S$ are regular expressions, then $R + S$ denotes the set of strings belonging to either $R$ or $S$.

    • Example: $(a \mid b)$ denotes ${a, b}$
  2. Concatenation (.): If $R$ and $S$ are regular expressions, then $RS$ denotes strings formed by a string of $R$ followed by a string of $S$.

    • Example: $ab$ denotes ${ab}$
  3. Kleene Star (*): If $R$ is a regular expression, then $R^{*}$ denotes zero or more concatenations of $R$.

    • Example: $a^{*}$ denotes ${\varepsilon, a, aa, aaa, \ldots}$

Part 2: DFA Minimization Using Table Filling

Given Data (extracted transition table)

State01
$\to A$BC
$B$AD
$C$EF
$D$EF
$E$EF
$*F$FF
  • Start state: $A$
  • Final state(s): ${F}$

Note: The problem statement references a machine whose diagram/table is not fully reproduced in the prompt. The solution uses the transition table extracted above. If the intended machine differs, the extracted table above is what this solution assumes.


Step 1: Initialize the triangular table

Mark every pair where exactly one state is final. Final = ${F}$.

Marked pairs (one is $F$): $(A,F), (B,F), (C,F), (D,F), (E,F)$.

B | _ |
C | _ | _ |
D | _ | _ | _ |
E | _ | _ | _ | _ |
F | X | X | X | X | X |
  | A | B | C | D | E |

Step 2: Iterative marking

For each unmarked pair, check transitions on $0$ and $1$; mark if any successor pair is marked.

Pass 1:

  • $(A,B)$: $0\to(B,A)$ unmarked, $1\to(C,D)$ unmarked → unmarked
  • $(A,C)$: $1\to(C,F)$ marked → MARK
  • $(A,D)$: $1\to(C,F)$ marked → MARK
  • $(A,E)$: $1\to(C,F)$ marked → MARK
  • $(B,C)$: $0\to(A,E)$ marked → MARK
  • $(B,D)$: $0\to(A,E)$ marked → MARK
  • $(B,E)$: $0\to(A,E)$ marked → MARK
  • $(C,D)$: $0\to(E,E)$ same, $1\to(F,F)$ same → unmarked
  • $(C,E)$: $0\to(E,E)$ same, $1\to(F,F)$ same → unmarked
  • $(D,E)$: $0\to(E,E)$ same, $1\to(F,F)$ same → unmarked

Pass 2 (re-check remaining unmarked pairs):

  • $(A,B)$: $0\to(A,B)$ still unmarked, $1\to(C,D)$ still unmarked → remains unmarked
  • $(C,D)$: both transitions to same states → remains unmarked
  • $(C,E)$: both transitions to same states → remains unmarked
  • $(D,E)$: both transitions to same states → remains unmarked

No further changes → algorithm terminates.

Final table:

B | _ |
C | X | X |
D | X | X | _ |
E | X | X | _ | _ |
F | X | X | X | X | X |
  | A | B | C | D | E |

Step 3: Group equivalent (unmarked) states

Unmarked pairs: $(A,B)$, $(C,D)$, $(C,E)$, $(D,E)$.

  • $A \equiv B$
  • $C \equiv D \equiv E$
  • $F$ (alone)

Equivalence classes: $${A, B}, \quad {C, D, E}, \quad {F}$$


Step 4: Minimized DFA

Let:

  • $P = {A, B}$ (start state)
  • $Q = {C, D, E}$
  • $R = {F}$ (final state)

Compute transitions (using any representative):

  • $P$: on $0$, $\delta(A,0)=B\in P$; on $1$, $\delta(A,1)=C\in Q$
  • $Q$: on $0$, $\delta(C,0)=E\in Q$; on $1$, $\delta(C,1)=F\in R$
  • $R$: on $0$, $\delta(F,0)=F\in R$; on $1$, $\delta(F,1)=F\in R$

Minimized transition table:

State01
$\to P$PQ
$Q$QR
$*R$RR

The minimized DFA has 3 states: ${A,B}$, ${C,D,E}$, ${F}$.

Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.