Aec Toc
Aec Toc
UNIT I
AUTOMATA
5. Design FA which accepts odd number of 1’s and any number of 0’s CO1 K3
Q.No. PART – C
0 1
q q
q
ANNAPOORANA ENGINEERING COLLEGE
(An Autonomous Institution)
(Approved by AICTE, New Delhi and Affiliated to Anna University, Chennai)
Accredited by NAAC with 'A' Grade & Accredited by NBA (Civil, CSE & EEE)
2(f) & 12(B) Status as per UGC Act 1956
ISO 9001:2015 Certified Institution
NH-47, Sankari Main Road, Periyaseeragapadi, Salem-636308, Tamil Nadu.
www.aecsalem.edu.in
0 0,1
Infer the DFA which is accepting the following language over the CO1
alphabet{0,1}.The set of all the strings beginning with a1 that
4. when interrupted as a binary integer , is multiple of 5, For example K4
strings 101,1010 and 1111 are in the language 0,100 and 111 are
not
UNIT 2
REGULAR EXPRESSIONS AND LANGUAGES
Q.No. PART – B
3. Illustrate a regular expression for the set of all the strings have odd CO2
K3
number of 1’sR.E=1(0+11)*
Q.No. PART – C
CO2
2. Demonstrate how the set L={a n b^m | m,n>=1} is not a regular. CO2 K2
1 0 0,1
1 2
3.
ii)Evaluate the equalities for the following RE and prove for the
same (
a. b+ab*+aa*b+aa*ab*
b. a*(b+ab*).
c. a(a+b)*+aa(a+b)*+aaa(a+b)*
ANNAPOORANA ENGINEERING COLLEGE
(An Autonomous Institution)
(Approved by AICTE, New Delhi and Affiliated to Anna University, Chennai)
Accredited by NAAC with 'A' Grade & Accredited by NBA (Civil, CSE & EEE)
2(f) & 12(B) Status as per UGC Act 1956
ISO 9001:2015 Certified Institution
NH-47, Sankari Main Road, Periyaseeragapadi, Salem-636308, Tamil Nadu.
www.aecsalem.edu.in
4. CO2 K4
Point out about the regular expression and regular Language.
5. CO2 K6
Develop the procedure for minimizing DFA with example
UNIT 3
CONTEXT FREE GRAMMAR AND LANGUAGES
Q.No. PART – B
3. Examine the context free Grammar representing the set of Palindrome CO3
K2
over (0+1)*
Q.No. PART – C
CO3
i)Illustrate a PDA for the language{WCWR/W€{0,1}}.
1. K3
ii)Illustrate a CFG for the constructed PDA.
3. i)Convert the following CFG to PDA and analyze the answer CO3 K4
(a+b) and a++. (8)
ANNAPOORANA ENGINEERING COLLEGE
(An Autonomous Institution)
(Approved by AICTE, New Delhi and Affiliated to Anna University, Chennai)
Accredited by NAAC with 'A' Grade & Accredited by NBA (Civil, CSE & EEE)
2(f) & 12(B) Status as per UGC Act 1956
ISO 9001:2015 Certified Institution
NH-47, Sankari Main Road, Periyaseeragapadi, Salem-636308, Tamil Nadu.
www.aecsalem.edu.in
I->a|b|Ia|Ib|I0|I1
E->I|E+E|E*E|(E)
S ->0S1/A;
A->1A0/S/εInferwhether0101belongsto N(M).
{S->ASB/£,A->aAS/a,B->SbS/A/bb},S).
X->b, A->a
UNIT 4
ANNAPOORANA ENGINEERING COLLEGE
(An Autonomous Institution)
(Approved by AICTE, New Delhi and Affiliated to Anna University, Chennai)
Accredited by NAAC with 'A' Grade & Accredited by NBA (Civil, CSE & EEE)
2(f) & 12(B) Status as per UGC Act 1956
ISO 9001:2015 Certified Institution
NH-47, Sankari Main Road, Periyaseeragapadi, Salem-636308, Tamil Nadu.
www.aecsalem.edu.in
7. LBA is _ _ _ _ CO4
a. unrestricted TM b. restricted TM from one side
c. restricted TM fromboth sides d. can't say
8. Set of all Turing machines is CO4
a. uncountable b. countable but infinite c. finite d. void 1
9. If there exits a language L for which there exits a TM, T that accepts every CO4
word in L and either rejects or loops for every word that is not in L is said
to be
a. recursive b. recursively enumerable
c. NP-HARD d. NPCOMPLETE
10 Which of the following is true : Read Write head can move CO4
a. to the left of left end marker in LBA
b. to the right of left end marker in LBA
c. to the right of right end marker in LBA d. it can't move 1
ANNAPOORANA ENGINEERING COLLEGE
(An Autonomous Institution)
(Approved by AICTE, New Delhi and Affiliated to Anna University, Chennai)
Accredited by NAAC with 'A' Grade & Accredited by NBA (Civil, CSE & EEE)
2(f) & 12(B) Status as per UGC Act 1956
ISO 9001:2015 Certified Institution
NH-47, Sankari Main Road, Periyaseeragapadi, Salem-636308, Tamil Nadu.
www.aecsalem.edu.in
Q.No. PART – B
2. Point out the languages generated by a PDA using final state of the PDA CO4 K4
and empty stack of that PDA
3. Discuss the applications of Turing machine. CO4 K2
Q.No. PART – C
P=({p,q},{0,1},{X,Y},δ,q,Z}, δ is defined
by δ(p,1,z)={(p,XZ)},
2. K1
δ(p,ε,Z)={p,ε)},
δ(p,1,X)={(p,XX)},
δ(q,1,X)={(q,ε)},
δ(p,0,X)={(q,X0}
δ(q,0,Z)={(p,Z)}
3. (i)Design a TM to accept the set of all strings {0,1} with 010 CO4 K6
as substring.
ANNAPOORANA ENGINEERING COLLEGE
(An Autonomous Institution)
(Approved by AICTE, New Delhi and Affiliated to Anna University, Chennai)
Accredited by NAAC with 'A' Grade & Accredited by NBA (Civil, CSE & EEE)
2(f) & 12(B) Status as per UGC Act 1956
ISO 9001:2015 Certified Institution
NH-47, Sankari Main Road, Periyaseeragapadi, Salem-636308, Tamil Nadu.
www.aecsalem.edu.in
(i) Design and explain a TM to compute f(m,n) = m*n , for all CO4
m,n€ N.
5. K4
(ii) Explain how a multi track in a TM can be used for testing
given positive integer is a prime or not.
UNIT 5
UNDECIDABILITY
1. Distinguish between PCP and MPCP? What are the concepts used in CO5 K2
UTMs?
2. Define NP hard and NP completeness problem. CO5 K1
Q.No. PART – C
1.
example. K1
(ii)Collect and write the short notes on NP-complete
problems.