Advertisement
steverobinson

2010,2009 Qpapers

Sep 24th, 2011
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.73 KB | None | 0 0
  1. 2010
  2.  
  3.  
  4. 11a
  5. 1. DFA for string with 3 consec 0s.
  6. 2. DFA vs NFA with eg
  7.  
  8. b. NFA to DFA
  9. http://i26.lulzimg.com/62a021.png
  10.  
  11.  
  12.  
  13. 12a
  14. 1. Find language accepted by
  15.  
  16. 0 1
  17. ------------------
  18. q0 q2 q1
  19. q1 q3 q0
  20. q2 q0 q3
  21. q3 q1 q2
  22.  
  23.  
  24.  
  25. 2. R is RE PT there exists NFA with e that accepts L(R)
  26. is the lang L={a^nb^n | n>=1} is Regular
  27.  
  28. b:
  29.  
  30. 1. minimal DFA for RE { (b|a)*baa}
  31. 2. PT regular sets are closed under substitiution
  32.  
  33. 13 a
  34.  
  35. 1. Let G be the grammar
  36. F ->aB / bA
  37. A-> a/aF/bAA
  38. B->b/bF/aBB
  39.  
  40. for string baabbabba
  41. LMD,RMD,Parse tree
  42.  
  43. 2. DPDA with eg.
  44.  
  45. 13b
  46.  
  47. 1. Construct PDA for {WCW^r | (0+1)* }
  48. 2. Let L be a context normal form grammar equivalent to CFG
  49.  
  50. 14 a
  51. 1. Obtain Gribach Grammar
  52. F-> AA|0
  53. A->AA|1
  54.  
  55. 2. Turning machine for L={1^n0^n | n>=1 }
  56.  
  57. 14b
  58.  
  59. 1. Explain closure props of CFG
  60. 2. Const Turing maching {WW^r | {0+1}*
  61.  
  62. 15a
  63. 1. Tractable vs Intractable with eg
  64. 2. Haltin probelm explain
  65.  
  66. 15b
  67. 1. Post correspondence with eh
  68. 2. Any 4 NP complete probs
  69.  
  70.  
  71. 2 marks //Some 2 marks were left out becoz they were simple...
  72. 1 inductive proof
  73. 2 Pumping lemma
  74. 3 CFG for {a^nb^n |n>=1}
  75. 4 is E->E+E|id is ambiguous
  76. 5 turing machine
  77. 6 L={a^nb^nc^n n>1} is CFG?
  78.  
  79. 7 what is Rennumerable lang
  80. 8 decidable vs undecidable
  81.  
  82.  
  83.  
  84. NoV dec 2009
  85.  
  86. 11a
  87. 1. PT for evry NFA there exists DFA that sims NFA
  88. 2. find DFA equaivalent to NFA
  89.  
  90. 11b
  91. 1. PT for every RE gamma there exits alpha NFA with e-trnasitions that accepts L(gamma)
  92. 2. construct E-NFA for RE (0+1)*010(11)*
  93.  
  94. 12a
  95. 1. S->a iff there is derivation for CFG which yields a
  96. 2. consider G={ {S},{a,b}, {P},{S} }
  97. where P consits of
  98. S->aAS/a
  99. A->SbA/SS/bA
  100.  
  101. derivation tree for aabbaa
  102.  
  103. 12b
  104. 1. find CNF
  105. S->aBB
  106. A->aB/bAB
  107. B-> b
  108.  
  109. 2
  110. Grammar to GNF
  111. A1->A2A3
  112. A2->A3A1/b
  113. A3-> A1A2/a
  114.  
  115. 13a
  116. 1. equivalence between PDA with emty and final stake
  117. 2. NPDA acception {WW^r | (0+1)* }
  118.  
  119. 13b
  120. 1. PT every language N(M) recognized by a PDA M is a CFL
  121.  
  122.  
  123. 14a
  124. 1. design a TM recognize strings with even no. of 1s
  125. 14a
  126. 2. Explain how multiple tracks can be used to test given positive int is prime or not
  127.  
  128. 14b
  129. 1. TM do multiplication with subtractive copy
  130. 2. ST if L is accepted by multi tape TM then ti is accepted by single tape TM
  131.  
  132. 15a
  133. 1. design language Ld show that Ld is not RE
  134. 15a
  135. 2. Union of 2 Rec langs is Rec.
  136.  
  137. 15b
  138. 1. Define Lu is RE but not Rec
  139.  
  140.  
  141. 2 marks
  142. 1. define DFA
  143. 2. Check if strings ababba,baab are accepted by DFA
  144. 3.Define CFG
  145. 4. if G is a grammar
  146. S->Sba/a
  147. PT G is ambiguous
  148. 5. define ID of a PDA
  149. 6. check if CFL Lp {a^nb^n | n>=0) is a Deterministric CFL
  150. 7. how TM can be rregarded as a computing devive to compute integer function
  151. 8. use of check off symbol in TM
  152. 9. define recursive R and RE language
  153. 10 rice theorem
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement