Module 3 To 6 MU Qs
Module 3 To 6 MU Qs
• Grammar G is:
S → aB/ bA
A → a/ aS/ bAA
B → b/ bS/ aBB
Obtain parse tree for string "aababbb." Check if the grammar is ambiguous. (5M)
• Write Steps to convert CFG to CNF. Convert the following CFG to CNF:
S → ASB/ Epsilon
A → aAS/ a
B → SbS/ A/bb (10M)
June-24
1. (a) Ways of acceptance by PDA [5M]
2. (b) Give formal definition of PDA. Design PDA that accepts odd palindromes over {a, b, c}
where 'c' exists only at the center of every string [10M]
Dec-23
1. (b) Design PDA that accepts L = {am bn cn dm / m, n ≥ 0} [10M]
May-23
1. (c) Differentiate between NPDA & PDA [5M]
2. (a) Construct a PDA for accepting L = {an bm cn / m, n ≥ 1} [10M]
Nov-22
1. (a) Construct PDA accepting L = {an bn / n ≥ 0} [10M]
2. (d) Define & working of PDA [5M]
MODULE 5 & MODULE 6
June-24 [25M]
1. (b) TM for input binary number to its 1’s complement of a number. [10M]
2. (b) Short note on:
1. Post Correspondence Problem
2. TM - Halting Problem
3. Variations of TM [15M]
May-23 [20M]
1. (b) Design a TM accepting all palindromes over {0,1}. [10M]
2. (b) PCP Problem. [5M]
3. (c) Variations of TM. [5M]