Skip to content
Previous Year Question Paper

CSIT-503 (A) - Theory of Computation

December 2024•CSIT•SEMESTER-5
December 2024
Max Marks: 70
Duration: 3 Hours
Instructions:

• Attempt any five questions.

• All questions carry equal marks.

Q.1
a)Unit 1

What are the components of finite automata model? Construct deterministic finite automata to recognize odd number of 1's and even number of 0's.

b)Unit 2

Convert the Regular expression (a+b)∗abb(a+b)^*abb directly into aDFA.

Q.2
a)Unit 2

Consider the FA and construct regular expressions that are accepted by it. alt=''

b)Unit 4

Construct the PDA for the following grammar. X→0X3X \to 0X3 X→0A3X \to 0A3 A→1A2A \to 1A2 A→12A \to 12

Q.3
a)Unit 3

Show id + id * id can be generated by two distinct leftmost derivative in the grammar. E→E+E/E∗E/(E)/id.E \to E+E / E*E / (E) / id.

b)Unit 3

Can an ambiguous CFG be converted into Chomsky Normal Form. Explain briefly your answer.

Q.4
a)Unit 4

Construct PDA for the language L={anbmcn, where n≥0,m≥0}L = \{a^nb^m c^n, \text{ where } n \ge 0, m \ge 0\}.

b)Unit 4

Construct the PDA for the following grammar. S→aS∣aSbS∣ϵS \to aS | aSbS | \epsilon

Q.5
a)Unit 5

Design a TM to accept the string L=(a,b)∗L = (a,b)^*, where N(a)+N(b)=N(a)+N(b)= even.

b)Unit 5

Give the tuple definition of Turing machine and explain the significance of movement of R/W head.

Q.6
a)Unit 1

Convert the following Mealy machine to an equivalent Moore machine by the tabular format.

Present StateNext StateO/PNext StateO/P
I/P = 0I/P = 1
Q0Q01Q10
Q1Q31Q31
Q2Q11Q21
Q3Q20Q01
b)Unit 3

Explain Chomsky hierarchy of grammar with suitable example.

Q.7
a)Unit 3

Convert CFG to GNF A→BB/IA \to BB/I B→AA/0B \to AA/0

b)Unit 3

Construct the context free grammar equivalent to a regular expression (01+1)∗(00+1)(01+1)^* (00+1).

Q.8
i)Unit 1

2-way Finite Automata

ii)Unit 2

Properties of Regular Grammar

iii)Unit 5

Multi Tape TM

iv)Unit 2

Arden's Theorem