RTUComputer ScienceYr 2024 · Sem 4

Theory of Computation

22 questions

Q22 marks

What is a Non-deterministic Finite Automata (NFA)?

Show Answer
Q42 marks

What is the difference between Moore and Mealy machines?

Show Answer
Q14 marks

Construct a DFA that accepts strings over {0, 1} ending with '101'.

Show Answer
Q34 marks

Explain the Pumping Lemma for regular languages.

Show Answer
Q44 marks

Simplify the given CFG by removing null and unit productions.

Show Answer
Q54 marks

Construct a PDA for the language L = {w w^R | w ∈ {a, b}*}.

Show Answer
Q110 marks

Explain the Chomsky Hierarchy of languages in detail.

Show Answer
Q210 marks

(a) State and prove the Pumping Lemma for Context-Free Languages. (b) Use Pumping Lemma to show that L = {a^n b^n c^n | n ≥ 1} is not context-free.

Show Answer
Q310 marks

Design a Turing Machine to accept the language L = {a^n b^n | n ≥ 1}.

Show Answer
Q410 marks

Explain the conversion of Regular Expression to Finite Automata using Thompson's construction.

Show Answer
Q510 marks

Discuss the decidability and undecidability of languages. Explain Rice's Theorem.

Show Answer