NOTE: Complete exactly 5 of the following 6 questions. Clearly note which question you do NOT want graded.
| 0 | 1 | |
| q0 | q0 | q1 |
| q1 | q1 | q2 |
| q2 | q2 | q0 |
Draw a state transition diagram for M then construct a regular expression for M using the CONVERT procedure described in Sipser's text. Show each intermediate GNFA generated by your application of the procedure.
A string of symbols in S gives two sequences of binary digits and represents two distinct binary numbers: the one whose bits are to the left of each slash and the one whose bits are to the right of each slash. Thus the string [1/0][1/1][0/1] is interpreted as the two numbers 110 and 011, representing 6 and 3 in the left and right positions respectively.
Design a determinitstic finite automaton to accept those strings over S in which the left number is exactly twice the right number.