Exam-style question
Try this first
Explain the meaning of the set {0^n1^n | n ≥ 1} and list its first four strings. Also state whether this set is finite or infinite and justify your answer.
Answer and explanation
Concise answer
The notation describes all strings consisting of n zeros followed by n ones, where n is a natural number of at least 1.
Why this is correct
The same value of n determines the number of zeros and the number of ones. Increasing n produces another string, so no particular final string exists. This makes the set infinite. The notation does not describe arbitrary arrangements of zeros and ones; all zeros occur before all ones.
Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.
Common mistake
No common mistake is linked to this question yet.
