Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reducing a DFA using the Pair Table method

Tags:

automata

dfa

I'm learning about reducing DFA's using the Pair Table Method (Systematic Reduction Method).Here is the DFA we are looking to reduce.DFA

The first step is to lay out the DFA in a table:

                                    0           1
             q0                  {q0, q3}      {q1}
             q1                    {q2}        {q2}
             q2                  EmptySet      {q2}
          {q0, q1}             {q0, q1, q3}    {q1, q2}
          {q1, q2}                 {q2}        {q2} 
        {q0, q1, q2}           {q0, q1, q2}    {q1, q2} 

We don't need to include the empty set state, I think.

Now here is where I'm confused, I need to go through the list of states and mark them based on something. I'm not sure how to proceed.

like image 842
Talen Kylon Avatar asked Oct 29 '25 15:10

Talen Kylon


1 Answers

First of all, the table you have is not a match with the DFA.

The pair table method uses the classes of equivalency. First we partition the states in two: final and non-final states. Initially every final state is distinguishable from any non-final state. So you should create a table like below and mark (q0,q1) and (q1,q2) as q1 is final but q0 and q2 are non-final states.

+----+ | q0 | +----+----+ | q1 | x | +----+----+----+ | q2 | | x | +----+----+----+----+ | q0 | q1 | q2 | +----+----+----+

Then iteratively, you continue marking using the following rule and stop when in an iteration nothing is changed:

Mark (q_i,q_j) if for some alphabet symbol a, enter image description here is marked. Int above table, enter image description here and enter image description here. As (q1,q2) is marked, we should mark (q0,q2) as well. Note that we only have half of the table. Hence, (q0,q2)=(q2,q0).

+----+ | q0 | +----+----+ | q1 | x | +----+----+----+ | q2 | x | x | +----+----+----+----+ | q0 | q1 | q2 | +----+----+----+

like image 87
Iraj Hedayati Avatar answered Oct 31 '25 03:10

Iraj Hedayati



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!