• recategorized by
20,743 views
49 49 votes
Draw the state transition of a deterministic finite state automaton which accepts all strings from the alphabet $\{a,b\}$, such that no string has $3$ consecutive occurrences of the letter $b$.

4 Answers

Best answer
88 88 votes

Design a DFA that accepts all strings contain $bbb$  

regular expression $(a+b)^*bbb(a+b)^*$

then take complement of DFA such that no string has $3$ consecutive occurrences of the letter $b$.

having regular expression $(a+ba+bba)^*(\epsilon + b+ bb)$

• edited by
12 12 votes


This is the approach for solving the given question:-

 

 

 

1 1 vote

a*((ba+)+(bba+))*

–2 –2 votes

In this ,firstly make the dfa of the language which accept all strings from the alphabet (a,b) such that all string contain three consecutive occurrence of the letter b ,then make non final state as final state and final state as non final,initial state will remain same then it become the dfa that accept all string not containing three consecutive b's.

Position:
Show:

Related questions

59 59 votes
8 answers 8 answers
17.2k
17.2k views
Kathleen asked Sep 29, 2014
17,204 views
Out of a group of $21$ persons, $9$ eat vegetables, $10$ eat fish and $7$ eat eggs. $5$ persons eat all three. How many persons eat at least two out of the three dishes?
55 55 votes
5 answers 5 answers
20.4k
20.4k views
Kathleen asked Sep 29, 2014
20,378 views
$\displaystyle \sum_{1\leq k\leq n} O(n)$, where $O(n)$ stands for order $n$ is:$O(n)$$O(n^2)$$O(n^3)$$O(3n^2)$$O(1.5n^2)$
38 38 votes
3 answers 3 answers
7.5k
7.5k views
Kathleen asked Sep 29, 2014
7,537 views
Let $A$ and $B$ be sets with cardinalities $m$ and $n$ respectively. The number of one-one mappings from $A$ to $B$, when $m < n$, is$m^n$$^nP_m$$^mC_n$$^nC_m$$^mP_n$
28 28 votes
4 answers 4 answers
13.6k
13.6k views
Kathleen asked Sep 29, 2014
13,648 views
The less-than relation, $<,$ on real number isa partial ordering since it is asymmetric and reflexivea partial ordering since it is antisymmetric and reflexivenot a parti...