Question #38639

The language {w| w in {0,1}* and w does not have three consecutive 0′s} is
A. regular
B. context-free but regular
C. context-sensitive but not context-free
D.type-0 but not context-sensitive

Expert's answer

Answer on Question#38639 – Math – Other

Using the pumping lemma for regular languages we can write a regular expression for {ww in {0,1} and w does not have three consecutive 0s}\{w|w \text{ in } \{0,1\}^* \text{ and } w \text{ does not have three consecutive } 0's\}. So our language is regular.

Answer: A.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS