FirstRanker.com
GUJARAT TECHNOLOGICAL UNIVERSITY
SEMESTER-VI(OLD) - EXAMINATION - SUMMER 2019
--- Content provided by FirstRanker.com ---
Subject Code: 160704 Date: 18/05/2019
Subject Name: Theory Of Computation
Time: 10:30 AM TO 01:00 PM Total Marks: 70
Instructions:
- Attempt all questions.
- Make suitable assumptions wherever necessary.
- Figures to the right indicate full marks.
--- Content provided by FirstRanker.com ---
Q.1 (a) Write Principle of Mathematical Induction. Using Principle of Mathematical 07 Induction, prove that for every n>1,
? i = n(n+1)(2n+1) / 6
i=1
--- Content provided by FirstRanker.com ---
(b) Define reflexivity, symmetry, and transitivity properties of relations. Consider the 07 relation R = {(1,2), (1,1), (2,1), (2,2), (3,2), (3,3)} defined over {1, 2, 3}. Is it reflexive? Symmetric? Transitive? Justify each of your answers.
Q.2 (a) Convert NFA to NFA and DFA. Initial State: A, Final State : D 07
0(q,0) | 6(q,1 | |
---|---|---|
A | B | A |
B | D | C |
C | D | D |
D | D | D |
(b) Suppose that L1 and L2 are the subsets 07
Draw the FAs recognizing the following Languages:
- L1 n L2
- L1 - L2
--- Content provided by FirstRanker.com ---
OR
Q.3 (a) Define Pumping Lemma for Regular Languages. Use Pumping Lemma to show 07 that the following languages are not regular.
- L={0n1n|n>0}
- L={wwR|we{0,1}*}
--- Content provided by FirstRanker.com ---
(b) Define Ambiguous grammar. Write Unambiguous grammar for following 07 grammar :
E->E+E|E*E|(E)|id
Derive string “id+id*id” using unambiguous grammar.
Q.4 (a) Given the CFG G, find a CFG G’ in Chomsky Normal form generating L(G) — { 07 ?}
--- Content provided by FirstRanker.com ---
S->A|B|C
A->aAa|B
B -> bB|bb
C -> aCaa|D
D - baD | abD | aa
--- Content provided by FirstRanker.com ---
OR
(b) Design Context Free Grammar for following Language : 07
L={0j1i0k|j>i+k}
Q.5 (a) Write Regular Expressions corresponding to each of the following subsets of 07 {0,1}*
- The language of all strings in {0,1}* that containing at least two 0’s.
- The language of all strings containing both 101 and 010 as substrings.
- The language of all strings that do not end with 01.
--- Content provided by FirstRanker.com ---
(b) Design PDA for the language L = { x ? {a;b}* | na(x) > nb(x) }. 07
OR
(a) Explain Cook’s Theorem. 07
--- Content provided by FirstRanker.com ---
(b) Design PDA for the language L ={xcxR | x ? {a, b}* } 07
(a) Write Short note on Any Two: 07
- The Primitive Recursion Function
- P and NP Completeness
- Equivalence Relation
--- Content provided by FirstRanker.com ---
(b) Design Turing Machine(TM) to accept Palindrome over {a,b}, even as well as 07 odd.
OR
(a) Write Short note on Following: 07
- Halting Problem
- Church Turing Thesis
--- Content provided by FirstRanker.com ---
(b) Design Turing Machine to copy string. 07
(a) Explain Time Complexity and Space Complexity. 07
--- Content provided by FirstRanker.com ---
This download link is referred from the post: GTU BE 2019 Summer Question Papers || Gujarat Technological University