Skip to content
Previous Year Question Paper

AL-601 - Theory of Computation

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

• Attempt any five questions.

• All questions carry equal marks.

Q.1
a)Unit 1

Design a Moore machine to determine the residue of mod 2 of the input treated as a binary string.

b)Unit 2

Find an equivalent ε\varepsilon-NFA for the following regular expression (0+1)∗011(0 + 1)^*011.

Q.2
a)Unit 2

Convert the λ\lambda-NFA to NFA.

λ-NFA to NFA Conversion
λ-NFA figure for December 2024 Q.2(a).
b)Unit 3

Convert the grammar {S→ABaC∣ABa,  A→Aa∣a,  B→BaB∣b,  C→CC}\{S \to ABaC \mid ABa,\; A \to Aa \mid a,\; B \to BaB \mid b,\; C \to CC\} to Chomsky normal form.

Q.3
a)Unit 3

Define formally Type 0, Type 1, Type 2 and Type 3 grammar. Show the corresponding automata for each class.

b)Unit 4

Construct PDA for the language wcwRwcw^R where ww is string of zeroes and ones.

Q.4
a)Unit 2

Derive regular expression from this Finite Automata.

Finite Automata for Regular Expression
Finite automata figure for December 2024 Q.4(a).
b)Unit 2

Define regular language and regular expressions. Find regular expression for the following: Language of all strings that do not end with 01.

Q.5
a)Unit 4

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

Q.6
a)Unit 3

Convert to Greibach normal form: S→ABS \to AB, A→SA∣AA∣aA \to SA \mid AA \mid a, B→SB∣bB \to SB \mid b.

b)Unit 3

Derive any two representative strings with minimum length 4 from the following context free grammar. G=({S,A,B},{a,b},P,S)G = (\{S, A, B\}, \{a,b\}, P, S); S→bA∣aBS \to bA \mid aB; A→bAA∣aS∣aA \to bAA \mid aS \mid a; B→aBB∣bS∣bB \to aBB \mid bS \mid b.

Q.7
a)Unit 5

Design a Turing Machine that accepts the language 1n0n1^n 0^n where n>0n > 0.

b)Unit 5

What is a Turing machine? Give the specification of a Turing machine and explain.

Q.8
a)Unit 5

Write a short note (any three): (i) Recursively Enumerable (ii) GNF (iii) Derivation Tree (iv) Mealy Machine.