Question: Construct an NFA for the language of all strings over the alphabet {a,b,c} that accepts any string that contains at least one substring of the

Construct an NFA for the language of all strings over the alphabet {a,b,c} that accepts any string that contains at least one substring of the form aaa, bbb or ccc. For example, the string abcabaccccabcaa belongs to this language because it contains the substring ccc, twice actually. The string bcabaacabada contains neither aaa, bbb nor ccc as a substring. So it does not belong to this language. Marking Scheme
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
