Question: I need to construct a deterministic finite automata, DFA M, such that language of M, L(M), is the set of all strings over the alphabet

I need to construct a deterministic finite automata, DFA M, such that language of M, L(M), is the set of all strings over the alphabet {a,b} in which every substring of length four has at least one b.

Note: every substring with length less than four is in this language.

For example,

aba is in L(M) because there are no substrings of at least 4 so every substring of at least 4 contains at least one b.

abaaab is in L(M) because abaa, baaa, aaab all contain at least one b

abaaaa is not in L(M) because aaaa does not contain at least one b

Hint: Use the complement

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!