Enrollment No: _______________________

Exam Seat No:_______________________

C.U.SHAH UNIVERSITY Summer Examination-2016 Subject Name: Theory of Computation Subject Code: 4TE06TOC1 Branch: B.Tech (CE) Semester: 6 Date: 17/05/2016 Time: 2:30 To 5:30 Marks: 70 Instructions: (1) Use of Programmable calculator & any other electronic instrument is prohibited. (2) Instructions written on main answer book are strictly to be obeyed. (3) Draw neat diagrams and figures (if necessary) at right places. (4) Assume suitable data if needed. Q.1 (a)

(b)

(c) (d) (e) (f)

(g)

(h) (i) (j) (k)

Attempt the following questions: Which of the following is true? i) (01)*0 = 0(10)* ii) (0+1)*0(0+1)*1(0+1) = (0+1)*01(0+1)* iii) (0+1)*01(0+1)*+1*0* = (0+1)* iv) All of the mentioned A language is regular if and only if i) accepted by DFA ii) accepted by PDA iii) accepted by LBA iv) accepted by Turing machine Give regular expression for the language L = {w ∈ {0, 1}* | w has no pair of consecutive zeros}. Define ambiguous grammar. What is left recursion? CFLs are not closed under i) Union ii) Concatenation iii) Intersection iv) Homomorphism If ∑ = {a, b}, then the number of possible different strings with length exactly n are i) 2n-1 ii) 2n iii) 2n – 1 iv) None of the above Define regular expression. Write the Chomsky Hierarchy of languages. Describe the language corresponding to given RE: (1+01)*(0+01)* Give the recursive definition of L*. Page 1 || 3

(14)

(l)

Consider the regular language L = (111 + 11111)*. The minimum number of states in any DFA accepting the language is i) 3 ii) 5 iii)8 iv) 9 (m) Which of the following in true for the language{aP | P is a prime}? i) It is not accepted by a Turning Machine ii) It is regular but not context-free iii) It is context-free but not regular iv) It is neither regular nor context-free, but accepted by a Turing machine (n) The C language is : i) A context free language ii) A context sensitive language iii) A regular language iv) Parsable fully only by a Turing machine

Attempt any four questions from Q-2 to Q-8 Q-2

Q-3

Q-4

Q-5

Attempt all questions (a) What is meant by “one to one” and “onto” function? Check whether function f: R  R+, f(x) = x2 is one to one and onto. (b) Prove that Dangling-Else grammar is ambiguous. Also give an unambiguous grammar for the same. (c) Prove that √2 is Irrational by method of contradiction. Attempt all questions (a) Draw an FA recognizing the following language: (i) The language of all the strings in which number of 1’s is even. (ii) The language of all strings containing both 11 and 010 as substrings. (b) Given the Context-free grammar G, find a CFG G’ in Chomsky normal form generating L(G) – {^} S  AACD A  aAb | ^ C  aC | a D  aDa | bDb | ^ (c) Prove that a language L = { 0i1i | i ≥0} is not regular. Attempt all questions (a) For regular expression (0*10 + 1*0) (01)*, draw an NFA-^ recognizing the corresponding language. Convert NFA-^ to NFA and to FA. (b) Find context-free grammar generating following language: (i) {aibjck | k ≥ 0, j=i or j=k} (ii) {w | w starts and ends with the same symbol} Attempt all questions Page 2 || 3

(04) (07) (03) (04)

(07)

(03) (14)

(14)

(a) Design and draw a deterministic PDA (DPDA) to accept strings with more a’s than b’s. Trace it for the string “aabab”. (b) Draw Finite Automata (FA) for following languages: L1 = {x ε {0,1}* | 11 is not a substring of x} and L2 = {x ε {0,1}* | x ends

Q-6 (a)

(b) Q-7 (a) (b) Q-8 (a)

with 01}. Find FA accepting the language (i) L1 – L2 (ii) L1 U L2 Attempt all questions Design a DPDA accepting Balanced Strings of Brackets. The grammar for the language is as follows: S  SS | [S] | {S} | ^ Design a Turing Machine which works as a numerical Comparator. Attempt all questions Draw a transition diagram for a TM accepting palindromes over {a,b} Explain Unbounded Minimization and µ-Recursive Functions. Attempt all questions Explain Arden’s Theorem. Using Arden’s Theorem find the regular expression corresponding to the finite automata given in the figure. (* S3 is a final State)

(b) Explain Universal Turing Machine and Halting Problem.

Page 3 || 3

(14)

(14)

(14)

Theory of Computation.pdf

(* S3 is a. final State). (b) Explain Universal Turing Machine and Halting Problem. Page 3 of 3. Main menu. Displaying Theory of Computation.pdf. Page 1 of 3.

189KB Sizes 1 Downloads 104 Views

Recommend Documents

Developing Theory about the Development of Theory
All of this is to say that there is a great deal of art and craft in true science. In ..... construct or angle: game theory, networking concepts, beliefs about corporate social .... am not enamored of highly detailed research plans that leave no room

Prospect Theory: A Descriptive Theory of Human Behaviors As we ...
Prospect Theory: A Descriptive Theory of Human Behaviors. As we have seen in the .... Of course, this intuitive interpretation helps us understand the patterns ...

Theory of Computation.pdf
context free grammar to generate the set of all palindromes. Generate any. two palindromes. c) Define DPDA. (8+6+2). PART – B. 5. a) Show that the grammar G ...

Theory of Vibrations & Aero Elasticity
5. a) Derive the governing equation for the continuous longitudinal vibrations of a prismatic ... rotates at 5 cm radius and total mass of vibrating system is 25 kg.

The Theory of Higher Randomness
Jul 12, 2006 - Sacks's result that every nontrivial cone of hyperdegrees is null. Measure-theoretic uniformity in recursion theory and set theory. Martin-Löf's ...

Copy of RR210403-PROBABILITY-THEORY
Code No: RR210403. Set No.1. II B.Tech. I Semester ... Find the Auto correlation function and power spectral density of the Random process. x(t) = K Cos (ωot + ...

Theory of vibrations.pdf
IV. a) Distinguish between generalised and discrete co-ordinates. 5. b) Show that the logarithmic decrement is also given by the equation. ⎟. ⎟. ⎠. ⎞. ⎜. ⎜. ⎝.

Theory of Communication Networks - CiteSeerX
Jun 16, 2008 - protocol to exchange packets of data with the application in another host ...... v0.4. http://www9.limewire.com/developer/gnutella protocol 0.4.pdf.

Copy of RR210403-PROBABILITY-THEORY
Set No.1. II B.Tech. I Semester Supplementary Examinations, May -2005. PROBABILITY THEORY .... Support your answer with the help of suitable examples. 8.

Theory of discrete
Mahin, MichaelJames The Awakening and The Yellow Wallpaper An IntertextualComparison ... Nitro pdf pro 8. ... Pokemon season 13 sinnoh league victors.

Theory of Communication Networks - CiteSeerX
Jun 16, 2008 - and forwards that packet on one of its outgoing communication links. From the ... Services offered by link layer include link access, reliable.

McClelland's Theory of Needs -
Accept risks. See the big picture. .... and statements with accurate data. Reassure them ... Are You a Driver, Expressive, Analytical or Amiable? Have you ever ...

The Nature of Coding Theory
Jun 22, 2011 - Coding Theory began with the early work of Shannon [22] and Hamming [11]. ..... The most interesting class of codes meeting this bound are the [24k,12k,4k + 4] Type II ... final step being a massive computer computation).

trait theory of leadership pdf
Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. trait theory of leadership pdf. trait theory of leadership pdf. Open.

Theory of elasticity and plasticity.pdf
First Semester M.E. (Civil) Degree Examination, February 2014 ... b) The state of stress at a point in a body is given by the matrix shown below. MPa. 1 2. 2 0 2.

A Theory of Deception
Dec 16, 2008 - D. A simple illustration. In this part, we ..... effect of Pr(p φ p) on the equilibrium analysis is, of course, due to the erroneous inference .... [14] Kreps, David and Wilson, Robert (1982): iSequential Equilibriai, Econometrica, 50

17422 - Theory of Structures.pdf
Assume suitable data if necessary. 5. Preferably, write the answers in sequential order. Q1. Attempt any THREE (9 Marks). a. Define core of section and sketch it ...

THEORY OF STRUCTURES - II.pdf
THEORY OF STRUCTURES _ II ... Draw the shear stress distribution diagram of a symmetrical I section'. 3. .... Displaying THEORY OF STRUCTURES - II.pdf.

Theory of Computation-II
Mar 31, 2014 - Question 2: Show that PCP is decidable relative to ATM. [10]. Question 3: Consider the problem of determining whether a PDA accepts some ...