The above grammar generates a language that is which of the following?
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.
The generated language is L = L ( ( aaa ∪ bb ) ∗ ) ; or in English, words in { a , b } ∗ so that consecutive strings of a's have length divisible by three and consecutive strings of b's have length divisible by two.
This language is clearly infinite, since b 2 n ∈ L for each n . It is also regular, since L is decided by the following Finite State Machine.
Therefore, the answer is regular but not finite .