JanuaryFebruary 2023
JanuaryFebruary 2023
PART – A
H
(25 Marks)
PART – B
pe
(50 Marks)
2.a) Define Finite Automaton. Explain about the model of Finite Automaton.
rs
b) Convert the regular expression (((00)*(11)) + 01)* into an NFA. [5+5]
OR
3.a) Describe in brief about applications of Finite Automata.
20
b) Design a mealy machine to print out 1’s complement of an input bit string. [5+5]
4.a) Write the steps to construct regular expression from given DFA.
b) Construct a NFA equivalent to the regular expression 10(0+11)0*1. [5+5]
23
OR
5.a) Write in brief about the algebraic rules for regular expressions.
b) Discuss in brief about applications of pumping lemma. [5+5]
6.a) Define Push Down Automata. Explain the basic structure of PDA with a neat graphical
representation.
b) Construct a PDA that accepts L = {0n 1n | n ≥ 0}. [5+5]
OR
7.a) Construct a PDA which accepts language of word over alphabet {a,b} canting
{ai bj ck /i,j,k €N, i+k=j}.
b) Define Context Free Grammar. State and explain the closure properties of CFG. [5+5]
8.a) Obtain Griebech Normal Form (GNF) for: SAB, ABS/b, BSA/a.
b) Define Ambiguous Grammar? Check whether the grammar
SaAB,AbC/cd,Ccd,Bc/d
JN
Is Ambiguous or not? [5+5]
OR
9.a) Construct a Left most Derivation for the string 0011000 using the grammar
SA0S/0/SS, AS1A/10 ?
TU
b) Discuss in brief about decision properties of Context free languages. [5+5]
10.a) Construct Turing machine for the languages containing the set of all strings of balanced
paranthesis
H
b) Design Turing machine and its transition diagram to accept the language: [5+5]
L = {a n bn| n >=1}
OR
U
11.a) Define LR(0) Grammar. Explain in detail about Post Correspondence Problem.
b) What is decidability? Explain in brief about any two undecidable problems. [5+5]
se
d
---ooOoo---
pa
pe
rs
20
23