What type of grammar is Context-sensitive grammar?
Official theoretical question paper for Formal Language Automata Theory (PCC-CS403) conducted by Maulana Abul Kalam Azad University of Technology. All questions from Groups A, B, and C are reproduced below with marks weightings.
What type of grammar is Context-sensitive grammar?
Give two applications of TM.
What is a universal Turing machine?
Give two applications of Context free languages.
Give two examples/applications designed as finite state systems.
What is context-free language?
Define context sensitive grammar.
How can you proceed for Turing machine construction?
What are the various representation of TM?
Define finite automaton.
What do you mean by k-equivalent states?
When a grammar is said to be ambiguous?
Find context-free grammars for the language (with n ≥ 0, m ≥ 0, k ≥ 0): L = {a^n b^m c^k, k = n + 2m}.
Discuss Universal Turing Machine (TM)
Show that the following grammar is ambiguous: S → aSbS | bSaS | λ.
Consider the grammar G=({S},{a,b},S,P) with P given by S→aSb S→ε What will be the language of the grammar?
What is the Turing Machine Halting Problem?
Discuss with examples how to simplify context-free grammar: a) By removing the useless production b) By moving λ-production c) By removing unit production
(a) What is Turing Machine? (b) How can Turing Machines be used as language acceptors? (c) For Σ = {0, 1}, design a Turing machine that accepts the language denoted by the regular expression 00*.
(a) When a Problem is said to be Undecidable? (b) Let Σ = {a, b}. Write down the grammar that generates the following language: L = {a^n b^m: n ≥ 0, m < n}. (c) Show that the grammars S → aSb|bSa|SS|a are not equivalent.
(a) Consider the language L = {a^n: n = 3 or n is even}. Construct a DFA for this language. (b) For Σ = {a, b}, construct a DFA that accepts all strings with an even number of a's. (c) For Σ = {a, b}, construct DFA that accepts all strings with exactly one a.
Discuss Chomsky hierarchy of languages with examples.