Two DFA proofs from tutorial questions

  • Thread starter extatic
  • Start date
  • Tags Tags
    Proof
5 replies · 2K views · last reply
extatic
Messages
6
Reaction score
0
Hi Guys,

Attempted a couple of my tut questions, could you please have a proof read over it.

Thank you
 
Attachments
  • Handwritten DFA diagrams: (a) for strings with 3 consecutive zeros, states q0 to q3 with q3 accepting and a 0,1 self-loop; (b) for strings with 011 as a substring, four states with the accepting state at the end.
    question 3.jpg
    21.5 KB · Views: 429
Your first solution seems fine to me :)

In your second solution the string "01011" will fail when it shouldn't.
 
extatic said:
you're right!

thank you mate

You're welcome!

Oh, and welcome to PF. :)
 
Thank you :)

Hows this? better?
 
Attachments
  • Handwritten state diagrams. Part a: DFA for strings with 3 consecutive zeros, states q0 to q3, q3 accepting with self-loop on 0,1. Part b: unlabelled state diagram for strings with 011 as a substring, final state with self-loop on 0,1.
    question 3.jpg
    21.4 KB · Views: 426