Skip to content
Previous Year Question Paper

AL-601 - Theory of Computation

May 2024•AIML•SEMESTER-6
May 2024
Max Marks: 70
Duration: 3 Hours
Instructions:

• Attempt any five questions.

• All questions carry equal marks.

Q.1
a)Unit 2

Say whether the NFA accepts the following or not: (i) abaa (ii) abab.

NFA Acceptance Check
NFA used to check acceptance of strings abaa and abab for May 2024 Q.1(a).
b)Unit 2

Construct a NFA such that the second last symbol is zero over the alphabet (0, 1) then convert in DFA.

Q.2
a)Unit 1

Explain 'Finite State Machines with Outputs'. Discriminate between Mealy and Moore machines.

b)Unit 2

Design a DFA which accept the string starting symbol differ from ending symbol over the alphabet {0, 1}. Show dead state if any.

Q.3
a)Unit 2

Minimize the following automata.

StateInput 0Input 1
q0q1q2
q1 (final)q3q4
q2 (final)q4q3
q3q5q5
q4q5q5
q5 (final)q5q5
Q.4
a)Unit 3

Construct context free grammar for L={wcwR∣w∈(a+b)∗}L = \{wcw^R \mid w \in (a + b)^*\}. Reverse of ww is denoted as wRw^R.

b)Unit 4

Define a deterministic PDA. How a DPDA differs from a non-deterministic PDA?

Q.5
a)Unit 3

Find the Greibach normal form grammar equivalent to the following: CFG: S→ABS \to AB, A→BS∣1A \to BS \mid 1, B→SA∣0B \to SA \mid 0.

b)Unit 3

What do you mean by Parsing? How left most and right most derivation helps to find out the ambiguity in a grammar?

Q.6
a)Unit 4

Construct a PDA accepting by empty stack each of the following language: (i) anbmcna^n b^m c^n where n,m≥1n,m \ge 1 (ii) anb3na^n b^{3n}, n≥0n \ge 0.

Q.7
a)Unit 5

Design a Turing Machine which computes the multiplication of two numbers.

b)Unit 2

State pumping lemma for regular languages. Prove that the language {an∣n is a prime number}\{a^n \mid n \text{ is a prime number}\} is not regular.

Q.8
a)Unit 5

Write short note on (any three): (i) Halting problem (ii) Decidability (iii) Mealy Machine (iv) CNF.