Toc Gtu
Toc Gtu
Darshan ch 1 - 10 pgs
2. Relations question practice:
3, 8, 9, 11, 17, 20, 26, 29, 31, 32, 33, 34
3. TOPIC 2 : 3, 10, 21, 24, 26
Ch : 2
Regular Expression :
2.
3.
4.
5.
Minimize:
6.
1.
5.
7.
6.
NFA-^ to NFA / DFA:
7.
1.
8.
2.
9.
3.
10.
4.
Draw NFA-^ :
1. (00 + 1)* (10)*
2. 001*0*11
3. (0 + 1)* (10+01)* 11
4. (0+1)*(011+01010)(0+1)*
5. (0+1)(01)*(011)*
6. (0*10+1*0)(01)*
7. (010)*1 + (1*0)*
8. (0 + 1)*1(0 + 1)
9. ((0+1)*10 + (00)*)* using kleene’s theorem
10. ({0,1}*{10} U {00}*{11}*) * using kleene’s
11.
1. Pumping lemma & its applications
2. Pumping lemma to show that L is not regular :
a. L = {ww | w ϵ {0,1}*}
b. L = {ww r | w ε {0,1}*}
c. L = {0 n: n is a prime number}
d. L = {o n 12n | n > 0}
e. L = {0 i 1i | i >= 0}
f. L = {a n bn abn+1 | n > 0}
3. Prove that if L1 and L2 are regular languages
12. then L1∩ L2 is also a regular language
4. NFA & recursive definition of NFA-^
5. What is pumping lemma & equivalence relation
6. Kleene’s theorem part 1 & part 2
7. Give recursive definitions of regular expressions.
State the hierarchy of operators of regex.
8. Recursive definitions of extended transition
13. functions δ* for DFA, NFA, NFA-^
9. Compare FA, NFA, NFA-^
10. Mealy vs Moore machines.
14.
15.
1. an bn, variations 12. (0+1)1*(1+(01)*)
S → AB S → ABC
A → aA | ^ A→0|1
B → bB | ^ B → 1B | ^
C→1|E
2. L = {ai bj | i < 2j} E → 01E | ^
S → Sb | aSb | ^
13. (01*1 + 1)* (01)*
3. an+2 bn | n >= 0 S → AB
S → aSb | aa A → 0C1 | 1
C → 1C | ^
4. n(a) = n(b) B → 01B | ^
S → aSb | bSa | ^ doubt
14. (a + b) (a + b + 0 + 1)*
5. n(a) ≠ n(b) S → AB
S→A A→a|b
S→B B → ( a | b | 0 | 1 )B
A → aA | a
A → aAb 15. Palindromes
B → bB | b S → aSa | bSb | a | b | ^
B → aBb
6. j = i or j = k 16. Non-palindromes
For : i = j For j = k S → ASA | B
S → AB S → BC B → aTb | bTa
A → aAb | ab B → aB | a T → ATA | A | ^
B → cB | c C → cCb | bc A→a|b
1. P & NP-Completeness
2. NP-hard
3. NP-complete
4. Sets of P, NP, Pspace, NPSpace
5. Cook’s theorem
6. Polynomial time reductions
7. Define :
a. P problem
b. NP problem
c. NP-Hard problem
d. NP-Complete problem