Consider the grammar S → aSAB / ε, A → bA / ε. The grammar generates the strings of the form a^i b^j for some i, j ≥ 0. What is the conditions of the values of i and j?
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.
Consider the grammar S → aSAB / ε, A → bA / ε. The grammar generates the strings of the form a^i b^j for some i, j ≥ 0. What is the conditions of the values of i and j?
Let N be an NFA with n states and let M be the minimized DFA with m states recognizing the same language. Which of the following is NECESSARILY true?
Compatible pairs are obtained from
The string 1101 does not belong to the set represented by
Regular sets are closed under
The intersection of CFL & RE is always
Which of the following common in both CNF & GNF?
Consider the languages: L1 = {ww^R | w ∈ {0,1}^*}, L2 = {w#w^R | w ∈ {0,1}^*}, where # is a special symbol, L3 = {ww | w ∈ {0,1}^*}. Which one of the following is true?
Difference between Turing Machine & Two way FA is in
Which of the following statements is false?
What do you mean by Right Invariant? Let R be an equivalence relation in {0}* with the following equivalence classes: [1]_R = {0}*, [0]_R = {0}*, [00]_R = {0}^2 ∪ {0}^3 ∪ {0}^4. Show that R is right invariant.
Construct grammar of the following. a) Construct grammar for the language a^i b^n c^n, where 1+m = n b) all even integers up to 998.
Define NFA. Construct equivalent DFA from the given NFA. | Present State | Next State | | |---|---|---| | | 0 | 1 | | → q0 | q0, q1 | q2 | | q1 | q2 | q1 | | (q2) | q1 | q2 |
Design a two input two output sequence detector which generates an output '1' every time the sequence 1001 is detected. And for all other cases output '0' is generated. Overlapping sequences are also counted. [Denote State Graph, State Table and perform State assignment]
Consider the machine show in the following table: | Present State | Next State | | |---|---|---| | | 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 | Is this machine information lossless of finite order? If yes, find the order μ
Find equivalent partitions and minimize the following Finite State Machine. | PS | NS, Z | | |---|---|---| | | x=0 | x=1 | | A | B,0 | H,1 | | B | C,0 | G,1 | | C | B,0 | E,1 | | D | F,1 | C,1 | | E | B,1 | C,1 | | F | B,1 | B,1 | | G | C,1 | B,1 | | H | C,1 | A,1 | Minimize the following incompletely specified machine. | PS | NS, Z | | | |---|---|---|---| | | 1 | I_2 | I_3 | | A | A,1 | D, | C, | | B | A, | D, | E, | | C | E,0 | A,1 | | | D | E, | A,1 | | | E | E,0 | | C, | 5+5+2+3
Convert the following Mealy machine to equivalent Moore machine. | Present State | I/P=0 | | I/P=1 | | |---|---|---|---|---| | | Next State | O/P | Next State | O/P | | q0 | q1 | 1 | q2 | 1 | | q1 | q3 | 0 | q0 | 1 | | q2 | q4 | 0 | q3 | 1 | | q3 | q1 | 0 | q4 | 0 | | q4 | q2 | 1 | q4 | 0 |
Using Pumping lemma prove that L = {a^i | i ≥ 1} is not regular. Construct Finite Automata equivalent to the Regular Expression L = ab(aa+bb)(a+b)*b. Find a reduced grammar equivalent to the grammar S → aAa, A → bBB, B → ab, C → aB. Convert the following grammar into GNF. S → AA / a, A → SS / b. Prove that Context Free Languages are not closed under intersection.
Define PDA by giving a block diagram. What is the difference between DPDA and NPDA? Design a Non Deterministic Pushdown Automata for accepting the string L = {(Set of all palindromes over a,b)} by Empty stack. Construct an equivalent PDA for the following Context Free Grammar. S → aA, A → aABC / bB / a, C → c. Show an ID for the string aabbcc for the PDA generated.
Design a Turing Machine which performs addition of two integers. Write short note on Multi Tape and Multi Head Turing Machine. Prove that the problem "A string w halts on a Turing Machine M" is undecidable.