Let R be the language described by the following regular expression:
(a|b)*(c|d)e?f+
How many of the following strings are NOT members of R ?
abc, aabbd, df, abbcdf, abdef, bbacf,
abbbbbbdef, aabbcef, abbceef, abababcf,
abcdf, f, ef, def, be, abe, acef
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
(a|b)*(c|d)e?f+ describes a language where the strings follow the following pattern: (0 or more a's and b's) followed by (1 c or 1d) followed by (0 e's or 1 e) followed by (1 or more f's).
The 9 strings in bold are not members of R :
abc , aabbd , df, abbcdf , abdef, bbacf, abbbbbbdef, aabbcef, abbceef , abababcf, abcdf , f , ef , def, be , abe , acef