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 are 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 are 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 is common in both CNF & GNF?
Consider the languages: L₁ = {ww^R | w ∈ {0,1}*} L₂ = {ww^R | w ∈ {0,1}*}, where # is a special symbol L₃ = {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,1}* with the following equivalence classes: {1* = {0}} {0} = {01} {00} = {0} ∪ {01} ∪ {0}* Show that R is right invariant.
Define NFA. Construct equivalent DFA from the given NFA. | Present State | Next State | |---------------|------------| | | 0 | 1 | | → q₀ | q₀, q₁ | q₁ | | q₁ | q₁ | q₁ | | q₂ | q₁ | q₁ |
Design a two input two output sequence detector which generates an output '1' every time the sequence 1101 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].
Construct a Push Down Automata equivalent to the following Context Free Grammar G = (Vn, Vt, P, S) with Vn = {S, E}, Vt = {0,1} and P is define transition follows: S → 0S1 · A A → 1A0 / S / ε Now check the string 001011 is acceptable by this Push Down Automata or not.
(a) What is parse tree? (b) Consider the CFG S → aAb A → bBb / ε B → Aa Find the Parse tree for the string aabbababa.
(a) A long sequence of pulses enters a synchronous sequential circuit, which is required to produce an output pulse z = 1 whenever the sequence 1001 occurs. Overlapping sequences are accepted. (i) Draw a state diagram (ii) Select an assignment and show the excitation and output tables. (b) Minimize the machine using equivalent partitioning | Present state | Next state, X = 0 | Next state, X = 1 | Output X = 1 | |---------------|-------------------|-------------------|--------------| | A | E, 0 | F, 0 | D, 1 | | B | F, 0 | E, 0 | D, 0 | | C | E, 0 | B, 1 | B, 0 | | D | F, 0 | F, 0 | B, 0 | | E | C, 0 | B, 0 | F, 1 | | F | B, 0 | B, 0 | C, 0 |
(a) Define and compare Moore and Mealy machines. (b) Convert the following Mealy machines into Moore machine. 
(a) Draw the merger graph. (b) Draw the merger table. (c) Draw the compatibility graph. (d) Find the minimal machine which covers that machine. | Present state | II | Next state | Out Put | |---------------|----|------------|---------| | A | 1 | E, 0 | B, 0 | | B | 1 | F, 0 | A, 0 | | C | 1 | E, - | C, 0 | | D | 1 | F, 1 | D, 0 | | E | 1 | C, 0 | C, 0 | | F | 1 | D, - | B, 0 |
(a) Find the equivalence partition for the machine. (b) Show a standard form of the corresponding reduced machine and draw the state diagram. (c) Find a minimum length sequence that distinguishes state A from state B. | Present State | Next State, X = 0 | Next State, X = 1 | Output X = 1 | |---------------|-------------------|-------------------|--------------| | A | B, 1 | F, 1 | D, 1 | | B | F, 1 | F, 1 | D, 1 | | C | D, 0 | C, 1 | E, 1 | | D | C, 0 | D, 0 | C, 1 | | E | F, 1 | C, 1 | C, 1 | | F | C, 1 | C, 1 | D, 1 | | G | C, 1 | C, 1 | D, 1 | | H | C, 0 | C, 0 | A, 1 |
(a) Define Turing machine. (b) Explain different types of Turing machine. (c) What is halting problem in Turing machine? (d) Design a Turing machine that accepts the language of all string which contain "aba" as a substring.
(a) Consider the N.F.A given by the following diagram  Find the equivalent D.F.A without ε-transition.