Loyola College B.Sc. Mathematics Nov 2006 Formal Languages And Automata Question Paper PDF Download

   LOYOLA COLLEGE (AUTONOMOUS), CHENNAI – 600 034                          B.Sc. DEGREE EXAMINATION – MATHEMATICS

AA 12

FIFTH SEMESTER – NOV 2006

         MT 5404 – FORMAL LANGUAGES AND AUTOMATA

 

 

Date & Time : 06-11-2006/9.00-12.00         Dept. No.                                                       Max. : 100 Marks

 

 

 

PART A

Answer all questions. Each question carries two marks.                             10×2=20

  • Define context – sensitive language and give an example.
  • Write a grammar for the language L(G) = L={anbn / n1}.
  • Show that every context – free language is a context – sensitive language.
  • If L = { L={anb / n1}then find LR
  • Construct a grammar to generate the set of all strings over {a,b} beginning with a.
  • Define an unambiguous grammar.
  • Show that the grammar SSS, Sa, Sb is ambiguous.
  • Construct a DFA which can test whether a given positive integer is divisible by 5.
  • Define a non-deterministic finite automation.
  1. Construct a finite automation that accepts exactly those input strings of 0’s and 1’s that end in 00.

 

PART B

Answer any five questions. Each question carries 8 marks.                          5×8=40

  1. Prove that CSL is closed under union.
  2. Find a grammar generating L={anbncm/ n1, m0}
  3. Write a note on Chomskian hierarchy.
  4. Prove that L= {} is not a CFL.
  5. Prove that PSL is closed under star.
  6. Give an ambiguous and an unambiguous grammar to generate L={anbn / n1}.
  7. Give a deterministic finite automation accepting the set of all strings over {0,1} with three consecutive 1’s.
  8. Let G = ( N, T, P, S), N = {S, A},   T = {a,b},   P = { SaA,  A bS, Ab}. Find L(G). Also construct an NDFA accepting L(G).

 

 

 

 

PART C

Answer any two questions. Each question carries 20 marks.          2×20=40

 

  1. a) Write a note on the construction of CNF
  2. b) Write a grammar in CNF to generate L= {anbman/ n0, m1}              (5+15)

20     State and prove u-v theorem

21     Let M =  (K, I, , F) where K = {}, I = {a,b}, F = {}

.

Find the corresponding DFA.

22     i) Construct a DFA to accept all strings over {a,b} containing the substring   aabb.

  1. ii) Construct a DFA accepting all strings over {0,1} having even number of 0’s.

(10+10)

 

Go To Main Page

 

Latest Govt Job & Exam Updates:

View Full List ...

© Copyright Entrance India - Engineering and Medical Entrance Exams in India | Website Maintained by Firewall Firm - IT Monteur