2,143 views
3 3 votes
How to solve this type of questions ?

Every substring of four symbols has at most two 0's. For example, 001110 and 011001 are in the language, but 10010 is not since one of its substrings, 0010, contains three zeros.

over the alphabet 0 and 1.

1 Answer

Best answer
3 3 votes

Identify all strings with length 4 and have atmost 2 zeros

then derive relation between such strings and draw DFA

• selected by
Position:
Show:

Related questions

0 0 votes
0 0 answers
375
375 views
Amarnath Jagatap asked Feb 26, 2025
375 views
A run in a string is a substring of length at least two, as long as possible and consisting entirely of the same symbol. For instance, the string abbbaab contains a run o...
0 0 votes
3 3 answers
2.6k
2.6k views
Shubham Pande asked Jun 29, 2017
2,567 views
With Σ = {a,b}, give a dfa for L= w1aw2 :|w1|≥ 3,|w2|≤ 5
2 2 votes
1 1 answer
3.1k
3.1k views
Satyajeet Singh asked Aug 16, 2017
3,059 views
Find the regular grammar for the following languages on {a,b}.b) L={w: (na(w)- nb(w))mod3=1}Here na is the no of 'a' in string w, nb is the no of 'b' in string b.Here is ...
0 0 votes
0 0 answers
677
677 views