For the following language, an enumerator will print: L={a$^{n}$b$^{n}$|n>=0}

Quốc Ân

New member
For the following language, an enumerator will print:
L={a$^{n}$b$^{n}$|n>=0}
A. a$^{n}$b$^{n}$
B. {ab, a$^{2}$b$^{2}$, a$^{3}$b$^{3}$, …}
C. {e, ab, a$^{2}$b$^{2}$, a$^{3}$b$^{3}$, …}
D. None of the mentioned
 
Answer: B
Explanation: An enumerator is a turing machine with an output printer. It can use an printer as an output device to print output strings. As n also holds the value , epsilon will also be a part of the output set.
 

Tìm kiếm

Back
Top