0% found this document useful (0 votes)
49 views

Gujarat Technological University

This document contains instructions for a Theory of Computation exam with 8 questions covering topics like regular languages and expressions, finite automata, pushdown automata, Turing machines, context-free grammars, and the relationships between different formal language models. Students are instructed to attempt 4 questions out of the 8 questions given and show their working. The questions test understanding of concepts like regular expressions, union and intersection of languages recognized by finite automata, the pumping lemma for regular languages, context-free grammars, nondeterministic finite automata, deterministic pushdown automata, Turing machines, and properties of formal language classes.

Uploaded by

Renie
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
49 views

Gujarat Technological University

This document contains instructions for a Theory of Computation exam with 8 questions covering topics like regular languages and expressions, finite automata, pushdown automata, Turing machines, context-free grammars, and the relationships between different formal language models. Students are instructed to attempt 4 questions out of the 8 questions given and show their working. The questions test understanding of concepts like regular expressions, union and intersection of languages recognized by finite automata, the pumping lemma for regular languages, context-free grammars, nondeterministic finite automata, deterministic pushdown automata, Turing machines, and properties of formal language classes.

Uploaded by

Renie
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Seat No.: ________ Enrolment No.

___________

GUJARAT TECHNOLOGICAL UNIVERSITY


BE- SEMESTER–VI (OLD) EXAMINATION – WINTER 2020
Subject Code:160704 Date:29/01/2021
Subject Name:Theory Of Computation
Time:02:00 PM TO 04:00 PM Total Marks:56
Instructions:
1. Attempt any FOUR questions out of EIGHT questions.
2. Make suitable assumptions wherever necessary.
3. Figures to the right indicate full marks.

Q.1 (a) Answer the following 07


1.Define regular language and regular expressions.
2.Find regular expression for the following: Language of all string that do not end with 01.
3. Describe the language corresponding to following: (1+01)*(0+01)*
(b) Answer the following:
1 Define One-to-one and Onto Functions. Also explain Compositions and Inverse of 04
Functions.
2 Define Mathematical Induction Principle and Prove that for every n ≥ 1, 03

n
Σ i2 = n (n+1)(2n+1) / 6
i=1
Q.2 (a) Answer the following 07
1.Draw FA for regular expression: (111+100)*0
2. Let M1 and M2 be the FA in fig below for the language L1 and L2, find L1 U L2 and L1
L2.

(b) For following NFA find minimum FA accepting same language 07

Q.3 (a) State the pumping lemma for regular language. Prove that {0 n1 n | n >= 0} is not a regular 07
language
(b) Convert the Given NFA into its equivalent DFA-

1
Q.4 (a) Give the context free grammar for the following languages. 07
1. L = { anbn |n>=0 }
2. Language for Palindroms.
3. Language for Non-Palindroms.
4. Language for Algebraic Expressions
5. L = { x belongs to {0,1}* | no(x) = n1(x) }
6. L = { x belongs to {0,1}* | no(x) ≠ n1(x) }
7. The set of odd-length strings in {a,b}* with middle symbol a.
(b) Define NFA and NFA-Λ. Convert the following NFA to DFA 07

Q.5 (a) Differentiate Turing machine, PDA and FA with example. 07


(b) Write Short note on Universal Turing Machine. 07

Q.6 (a) Draw the PDA for the following language 07


L = {aibjck | i = j+k}
(b) Define CFG. Prove that the following CFG is Ambiguous. 07
SS + S | S * S | (S) | a
Write the unambiguous CFG for the above grammar.
Q.7 (a) Define a Turing Machine. Design a Turing machine for deleting nth symbol from a 07
string w from the alphabet Σ = {0,1}.
(b) Prove that any Regular Language can be accepted by FA. 07

Q.8 (a) Draw Turing machine which accept palindrome language. 07


(b) Prove The Theorem: “ If L1 and L2 are context – free languages, then the 07
languages 𝐿1 ∪ 𝐿2, 𝐿1𝐿2 , 𝐿1* are also CFL.”

*************

You might also like