A context free grammar is not closed under
Official theoretical question paper for Formal Language Automata Theory (PCC-CS403) conducted by Maulana Abul Kalam Azad University of Technology. All questions from Groups A, B, and C are reproduced below with marks weightings.
A context free grammar is not closed under
Context sensitive grammar can be recognized by
A = (a + b)*a and B = b(a + b)* then A intersection B will be
Which of the following is most general phase - structured grammar?
The string 1101 does not belong to the set represented by
Pumping lemma is generally used for
The basic limitation of FSM is that
Recursive languages are
k-level equivalence is possible between two finite automata
An automata is a/an ............... device.
Which of the following is correct?
Design a two-input two-output sequence detector which generates an output '1' every time the sequence 1010 is detected. And for all other cases output '0' is generated. Overlapping sequences are also counted. Draw only state table and state diagram.
| PS | a = 0 | a = 1 | |---|---|---| | → q₀ | q₀ · q₁ | q₀ · q₂ | | q₁ | q₃ | - | | q₂ | - | q₃ | | q₃ | q₃ | q₃ |
Define DFA. Derive the DFA for the regular language 0(0 + 1)*1 for the symbols Σ = {0, 1}.
| PS | x = 0 | x = 1 | |---|---|---| | q₀ | q₁ | q₂ | | q₁ | q₂ | q₃ | | q₂ | q₂ | q₄ | | q₃ | q₃ | q₃ | | q₄ | q₄ | q₄ | | q₅ | q₅ | q₄ | q₃, q₄, q₅ are final states.
| PS | x = 0 | x = 1 | |---|---|---| | A | A, 1 | C, 1 | | B | E, 0 | B, 1 | | C | D, 0 | A, 0 | | D | C, 0 | B, 0 | | E | B, 1 | A, 0 |
a) Construct a regular grammar G generating the regular set represented by P = a*b(a - b)*. b) Convert the following Mealy machine to Moore machine.  c) What is Kleene's star? Give example. What is positive closure? Give example. 5 + 6 + (2 + 2)
a) Construct an equivalent PDA for the following CFG : S → aAB/bBA A → bS/a B → aS/b Show an ID for the string abbaaabbbab for the PDA generated with stack description. b) Give the regular expression for the DFA using Arden theorem.  c) Convert the following grammar into GNF : S → ABb/a A → aaA/B B → bAb.
a) Let G be the grammar S → aB|ba, B → b|bS|aBB. For the string aababbabba find : i) leftmost derivation ii) rightmost derivation iii) parse tree. b) Prove that CFLs are not closed under intersection and complement operation. c) Design an NFA which accepts set of all binary strings containing 1100 or 1010. (2 + 2 + 2) + 4 + 5
a) What do you mean by distinguishable and indistinguishable states? b) Draw the Merger graph, Merger table, compatibility graph and then minimize the following : | Present State | Input = 0 | Input = 1 | Input = 2 | Input = 3 | |---|---|---|---|---| | A | - | C, 1 | E, 1 | B, 1 | | B | E, 0 | - | - | - | | C | F, 0 | F, 1 | - | - | | D | - | - | B, 1 | - | | E | - | F, 0 | A, 0 | D, 1 | | F | C, 0 | - | B, 0 | C, 1 | c) Explain Ogden's Lemma for CFL.
a) Design a TM that accepts {0^n1^n | n > 1}. b) What do you mean by halting problem of a Turing machine? c) Construct CFG for the following : i) Palindrome for binary numbers ii) L = {a^n b^n c^m d^m | m, n > 0}. 5 + 2 + 3 + (3 + 2)