TOC
TOC
2) If language L is accepted by NFA then there exits an equivalent DFA that accepts
the same language.Explain with example.
3) Convert the following Mealy machines into equivalent Moore machine.
4) Define Following
i) Finite State Machine
ii) Non Deterministic Finite Automata.
5) Construct a DFA over {0, 1 } that accept even number of 0's and
odd number of 1's.
6) Design a Mealy machine to determine residue mod 3 for each binary string
treated as binary integer.
7) Construct a DFA to accept the language over {0, 1} to accept a string 1100 or
1010 only.
8) Convert the NFA with ϵ -transition to NFA without ϵ -transition.
9) Convert the NFA given in following figure to its equivalent DFA
11) Design DFA's for the languages over {0, 1) such that :
(i) Every string WEL, W ends with 1 if it starts with 0 and ends 0 if it
starts with L
(ii) All strings ending in 0l or 10.
12) Consider the Moore machine described by the transition table. Construct the
corresponding Mealy machine.
13) Design a Moore machine to determine residue mod 3 for each binary string
treated as binary integer.
14) Design Moore machine for binary input sequence, if it ends in '101', output is A
if it ends in '110' output is ‘B’ otherwise 'C'.
15) Construct a deterministic finite automation equivalent to
M =({q0, q1, q2,q3}, {0,1}, δ,q0,{q3}) where δ is defined as -
4) Show that the following language is not regular using pumping lemma
r = {wwR | w ϵ {a,b}}
UNIT-IV
1) Define Push down Automata with its tuples?
2) Design a PDA for
L={WcWR │ W in (0+1)*}
3) Design a PDA for
L={W| na(w)=nb(w)}
4) Design a PDA for
L={ anbn│ n≥0}
5) Design a PDA for
L={ anb2n│ n≥1}
6) Design a PDA for
L={ a3bncn│ n≥0}
L={ anbmcn | m,n≥1 }
L={ ambmcn | m,n≥1}
L={a2ncbn | n, m ≥ 1}
7) Design a NPDA for
L={WWR │ W in (0+1)*}
8) Construct PDA equivalent to following grammar
S→aaA A→aS/bS/a
S→aSbb/aab
9) Using pumping lemma, Show that
L={ai bj ci dj | i,j ≥ 1} is not CFL
L={aP | P is Prime} is not CFL
L={ anbj : n=j2} is not CFL
L={aibjck | i<j<k } is not CFL
10) Explain Enumeration of properties of CFL
11) Explain Context Sensitive Language with example
12) Generate a Context Sensitive Grammar for
L= {an bn cn|n>=1} and Verify w=aaabbbccc
13) Define Linear Bounded Automata?
14) Find the grammar generating the set accepted by LBA
whose transition table is as follows: q1: Initial State
q4: Final State
Present Tape input symbol
State ₵ $ 0 1
q1 ₵Rq1 - 1Lq2 0Rq2
q2 ₵Rq4 - 1Rq3 1Rq1
q3 - $Lq1 1Rq3 1Rq3
q4 - Halt 0Lq4 0Rq4
15) Show that L={W| na(w)!=nb(w)} is deterministic context free language
(DCFL).
Give DPDA for it.
16) Show that there exit some LBA M, for every context sensitive language L
such that L=L(M).
17) Explain closure properties of DCFL?
UNIT-V
1. Consider the Turing machine M described by the transition table given below.
Describe the processing of
(i) 011.
(ii)0011.
(iii)001
Using IDs. Which of the above strings are accepted by M2
Present Tape Symbol
state 0 1 x y b
q1 xRq2 - - - bRq5
q2 oRq2 yLq3 - yRq2 -
q3 oLq4 - xRq5 yLq3 -
q4 oLq4 - xRq1 - -
q5 - - - yRq5 bRq6
q6 - - - - -
2. Design a Turing machine over {0, 1} to accept the language L={0m1m | m>0}
4. Design a Turing machine to compute m-n where m and n are positive integers
and m> n.
7. Explain a TM with two way infinite tape and write a relation with one way
infinite tape.
8. Design a Turing machine for equal number of 0's & equal number of 1's over
{0, 1}.
11. Design a Turing machine for L (0n 1n | n>=1) and verity the string (i)0011.
(ii)011.
13. Design a Turing machine that computes the proper subtraction of two unary
numbers
Proper subtraction (A, B) =A-B if A>B
= 0 if A<B
UNIT-VI
1. Show that the function f(x, y) = x+y is primitive recursive.
2. Explain PCP and MPCP Describe whether following (A, B) parts have a
solution are not. If yes give a solution. If no, why? A=(ab, b, b} B={abb, ba,
bb}
3. Explain Universal Turing machine with example? What are the modification
made to the basic model of Turing machine.
7. Decide whether the following pair (A, B) have PCP solution or not? If yes
give a solution if no why?
i) A ={1, 10111, 10} B={111, 10, 0}
ii) A ={10, 011, 101} B={101, 11, 011}
12. Prove that for any total recursive σ there exists an x0 such that
fx0(x)=fσ (x0) for all x
13. Let Σ={0,1} let X and Y be lists of three strings each , defined as follows:
List X List Y
i wi xi
1 1 111
2 10111 10
3 10 0