Skip to content
Previous Year Question Paper

AL-601 - Theory of Computation

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

• Attempt any five questions.

• All questions carry equal marks.

Q.1
a)Unit 1

What is Moore Machine? How Moore machine can be converted into Mealy Machine? Explain with the help of an example.

b)Unit 1

Describe how Finite automata can be called a language acceptor?

Q.2
a)Unit 1

Explain briefly about the composite machine with an example.

b)Unit 2

Find out the Regular Expression from given DFA.

DFA for Regular Expression
DFA used to derive the regular expression for May 2023 Q.2(b).
Q.3
a)Unit 2

What do you mean by Closure properties of regular languages? Define some important closure properties.

b)Unit 2

Obtain the regular expression for the following set: (i) Set of all strings over Σ={a,b}\Sigma = \{a,b\} with exactly two aa. (ii) L={ax∣x is divisible by 3 or 5}L = \{a^x \mid x \text{ is divisible by } 3 \text{ or } 5\}.

Q.4
a)Unit 3

Differentiate between Context-Free Grammar and Context-Sensitive Grammar.

b)Unit 3

Show that L={anbncn∣n≥1}L = \{a^n b^n c^n \mid n \ge 1\} is not CFL.

Q.5
a)Unit 3

Write CFG for regular expression (011+1)∗(01)∗(011 + 1)^*(01)^*.

b)Unit 4

Design PDA to accept the language L(G)={ambnam∣m,n≥1}L(G) = \{a^m b^n a^m \mid m,n \ge 1\}.

Q.6
a)Unit 4

Design a PDA which recognizes the set of all even length palindromes over {a,b}\{a, b\}.

b)Unit 4

What is PDA? Explain instantaneous description of PDA.

Q.7
a)Unit 5

Design a Turing Machine for the language L(G)={anbn∣n≥1}L(G) = \{a^n b^n \mid n \ge 1\}.

b)Unit 5

Explain P class problems in detail.

Q.8
a)Unit 5

Write short note on any two of the following: (i) NP Hard (ii) Petri Net Model (iii) Halting problem of Turing machine (iv) 2-way DFA.