Latest

6/recent/ticker-posts

Construct a DFA that accepts any strings over {a,b} that doesn't contain the string aabb in it.

 Construct a DFA that accepts any strings over {a,b} that doesn't contain the string aabb in it.


To solve this problem, first we will construct a DFA that accepts all strings over {a,b} that accepts the string aabb in it.



We can get the dfa that accepts all other strings except aabb by complementing above DFA. To do that, make all final states as non-final states and all non-final states as final states. The final DFA is shown below.







Post a Comment

0 Comments