in Theory of Computation
5,804 views
3 votes
3 votes
A run in a string is a substring of length at least two,as long as possible and consisting entirely of same symbol.For instance the string abbbaab has a run 3 of b and run 2 for a.find DFAs for following languages on {a,b}

a)L={w : w contains no run of less than four}

 

b)L={W :every run of a is either 2 or 3}

 

how to draw dfa for this kind of questions?
in Theory of Computation
5.8k views

4 Comments

@Shubham Sharma 2 in answer for problem 2.1.8(c) , why is it accepting strings with run length of  a's as 1, as the question has clearly mentioned that 'every run of a’s has length either two or three'. 

0
0

in the part (a ) of this question ,can’t we remove the 2 states after initial state and directly go to the next states means what is the use of these states?

and can anyone tell me how to insert an image here

0
0
but isn’t the string accepting strings of length less than 4 it is even accepting the empty string
0
0

1 Answer

0 votes
0 votes
  1.  L={aaaa,bbbb,aaaaa,bbbbb,aaaabbbb,aaaabbbbaaaa,bbbbaaaabbbb,aaaaaaaabbbb,aaaaabbbbbaaaaa……...}

Related questions