1,196 views
0 votes
0 votes
what is the length of the shortest string not in the language(over 0,1) for regular expression 1*(0+10)*1* ??

1 Answer

0 votes
0 votes
The length of the shortest string not in the language is 4.

The language into consideration is 1*(0+01)*1*.

this language will accept all strings of length 0,1,2 and 3. Coming to length 4 we will see that the strings in which we have a zero followed by >=2 ones cant have a zero after it for eg:0110. This string is not contained in this grammar.

No related questions found