TOC-Assignment-2
TOC-Assignment-2
1. Define a Deterministic Finite Automaton (DFA). Construct a DFA that accepts all binary
strings ending with 01.
2. State and prove Arden’s Theorem. Use it to find the regular expression for a given finite
automaton with the following transitions:
3. Prove using the Pumping Lemma that the language L={anbn∣n≥0} is not regular.
4. Differentiate between:
Regular grammar
Context-free grammar (CFG)
Context-sensitive grammar (CSG)
Unrestricted grammar
6. Define ambiguity in grammars. Give an example of an ambiguous grammar and show two
different parse trees for the same string.
L={anbn∣n≥0}.
8. Explain the difference between DPDA and NPDA with a suitable example. Is every
context-free language accepted by a DPDA?
9. Design a Turing Machine to accept the language L={anbncn∣n≥1} (Note: This language is not
context-free.)