Toc Final PDF
Toc Final PDF
IE WE M
then for
P W BX
aw xx 1
yields
18 scar
where a
a Zo
is not defined
840,111 120
0
1111,9
d 9 11 Zo
1120 8cm 111,120
8 No 11
d a 1,120
8 or 11,1120
8 W E Zo
8 No 1 111202
finalstad
Slovo E 111120
1
IDA
addthis.me te 3oemftyttack
Empty stack
Finalstat I
ffEE.za
192T
accepts L ifandonly if WWI
IDA
PDA
wwR accepted by
wR wrzo
WR wrzo a
Wo w̅ Zo
f
E 2
Wi 0,2 T.wo.zo.fi
0A
d 92,2 0
Pre Final f Wi GZ
f
ww
twf then x
Can t 2
H
wefk.tt
ww
x
ca
18471
a
8 Car se
Two x x
A Am 21m
I
attmf
aefta.ee
T LET
Covo az am ax or am ax
fro IIe
t a.edu
yyR
ifeng.fi contntEII itis accepted by
a PDA
CFG PDA
CFT
PDA v
53
astic
G VUT
CFG VII
PDA M É E Ño Zo Fd
v21
Sasa Ask
Empty Stack
Accept by
Preference
Accept by
Final state
70 Q 0 00
seasa
abseat
I atcha
pop
adf.t
FFfahEFhI
set
1
t. o
fEEOEet
Aba 08
abbacabba
aÉeast szo
Fccla Sa
Echa Esta
cha Eta
I 18 0
1
l
a
a
EZO
S BAIO
B BBI AO BIBBI
FATE
WE
EB
O
NO
GB
ya htionRe s asa bsb c
10 peesa
U6,54 acceptance
fi
as
a arᵗ final state
and
9 c.tt Empty state
0
E 011
to
of
fa.FI sr.a zo F0
CFG G V T S P
possibleproduction rule
ttofogprodutinrulefromatransitinl tw
pestffiff x 92 Ex
x
i 8 a a x 92
in 8 91 a x 92 E
x
a x 92,2
tod 8 v1
mieantsheastabs e.FI
acEJ
same E Q
rules are there
so 191 number of production
EI
means no change
8 9 a x 92 x in the stack
e TEES
same E G
rules are there
50 101 number of production
E meanspop
forty 8 V1 a x 2
from the stad
for a
rule is there
only
one production
2
step
L1 Productionfuls
90 90 90 90
VoZo 9
a
from
a 90 91 912090
a No Zo d 90,9 Zo 90,12
a 90 90 90209
mi VoZo 91
2 9 a 90 9119,209
a 90 90 90 90
90 90
a 90 91 91 90 from
a
rifax a 90 90 90 91 8 a x 9 xx
9 9
vii
9
9 a a 90 9191
from
ix 90 91 96
91 6 from
9
NIZON
E from
1
s
9 90 9,2 090
8ᵗ
oduction
rule is removed due to 91 90
production rule is removed due to W Z No
is which
m production for 90 90
so remove
terminals
can't end in a
string of
Sᵗ 90 90 in RHS
the production rules with
So MO V is also removed
is removed
of 90 90
SETI there is no production
production of
S 9020 0
so the initial
also removed
is
Remainingproductionfule.ae carozoa
90 91 a 90 91 9 ZOND
or are
90 91 acroxor
190 91
A
B 90 91 6
9 91 6
D
at W Zoar
the resultant G V T S P
so
CFGI v S A BC D
T a b
P A BD B a B C b Gb Dee
S A a
Tw
control unit
the state inside
Change
Fof ET É
90 G F d
states
Q set of
set of ilp symbols
EI be
T set of tape symbols
Etisalat Reject
Halt
Loop
1
40113
2 0,1 b
4 10 1
1 NET
Ét B_m
t
01m no
EITHYTE
I L
A A
Y YR v
Machine for even palindromes on 0,1
Turing
Accebt
p itinerants
EEtmy.ro's
oxirfV.FI y cXaXiRI
Heard
I L
Echt
A
x
TAccept Agmilsepmhalinthffgja is
ww a
T.on.ca
h a 100100
8 80100 Wu
9 92
1 iR a 9 18 to own
ou
mascot
1004 Eww
a V2
or 9 100
w w.go
9
to
10010
100
w
w
9
400100
9 accepts
Iiii iii iiiit ii t
i
TsyFmp t that can be carried out by
mechanical means can be performed by some
Machine
Turing
the thesis
Arguments for acceptance of
digital
Tythingthatabdonenexisting
Machine
computer can also be done by Turing
has been suggested that
2 Till now no problem Machine
an algorithm
but Turing
is solvable by for the same
not be written
can
program
t
IXYYCC T
GRFÉIwant
R r
aabbl.cc
x
be
YWR xx
baby
a f
Machine for
Turing
be the start state of TM for yⁿc
accept state will
acceptstate
Y c will be the final
accept state of
Fife
we 1
air GER 42
v4 FY I
O i
I
110
110
yy I
XYX
XX Y YYX
Regular Grammar Finite Automak
Regular Language
PDA
L F G
CF
Unrestricted Machine
Recursivelynumerable
Grammar
Turing
doesnotat
Loop
Decidable
pe11taI1 R
tape
Tape head
left
don't
or right
KT
move
g I Non determinism
0 1 as
Only
IYIIIE.IE
alphabet
Roi
MIKE g
R R3
Kt
EIFFYIIE.IM
x̅
a
II II
IIYIII.IE IIII
070 2
19
1
IT
2 0
90
01100110
EWI 811011 11001T
XIIOOT
I 1011
XIIOIYXY1001I
1XYIOIYXYIOOTY XYIOYYXYYOOI.YX
YYOOYYX
YYOYY yyXOYYX
XYY XYY xyy YYX
WWW
0110W
9 051 0 11 xaT1 011 x 19,7011
II xioiaI.fi
907
F
8 at P QxFx IR
a 1
L
7010719in
b GR
b C R
E on
accept One of the paths in the tree leads to
Naccept
All the parts halt and none of them accept
Reject
n
a.tn
iiiitiit
io at
Effingham
i I 12 24,22
3 1
31 32
12 3 11 2
2H3H11 I2 E 14
1
TE.hn 1IangigePanso
Input string
design TM
For Language
solution to problem
is a
If input to the language
belongs
then string
and TM accepts the string
Turing
Machine y
tIcandesignatM
chgchagttm.tt
problem
to the
TM algorithm
we can't design
a
If
IDterminstic
IDterminstic
all KJO
problem is
decided using a Multitake
It a
be
TM in p n then it can
deterministic TM
deterministic
done in a single tape
also in p n
to decide
operations
Non Det TM takes p n
string's
or IX
000
l
Left
k
8
III
and
2h
p
n
II
EE
I.EE
Decide f
if
g
pegi
a I will halt
For some input
Ourproletes
or not tatingProblem
ᵗ
É
I
qfyay pp halts
no
Runaloof
FCF else
Been
F F doesnot halt
IF
Le half
2 9,63
F
abal
a b
BI
Ilp
92cal Initial Config
Fighttransition
eÉ Left transition
Tape symbols
tape splats after
RNIntiff ftp Avaccept
8 i a wj YR
Ef E
921
It
Eviate éxajñ
CEF
transition
right
9 1
3 8 a b 92,4
Iff
Iff r are
B3
EI axY
la D I.C
É EE
a Final state
E
E
i
EE D.CE.E.I.Ed
E 1I THE
FIIII
PCI
É É É
i añ
É É É I
FÉre
É
ÉE É
É É El
EFFIE
É EÉ FILE
ⁿÉ LE
ÉÉ
KEEFFIES
1 CI 5
2 0 1 12
4 40,1100 11,000
to N
correspondence
539101
11,011,111,0011
uncountably Infinite 0,1
00 01110,11 000
E 0,1
2 0,503.413,10 1 3
Fefiniteset
2F
P F
to 2
Assume there is Bijection from
Bijection
Fyfe
Injection
6 403
1
13
its it
N 2
s if Iesi IE
I
te
1.2.4355
T.
39 45 68 3
s
s Si
EÉ
4 7,5 9,8 54
x 5 E ao F.zo.Fid
gof.IM
8 5 5 Ex FLIR B x
01
to I too tooo
No 9 92 93,95
F
of
too too Foooo
EII
s.EE
ittit
0110010010100100011001s
0
TM 7010010
1 0 00 010
111
Language
Problem
dentifyiusigmulti
tkethting
a1i fq
EI.la d BxQo bw
EI.LI
m rr
Qag
i i w
ang
1 For
Iww
a
li n
111111
014
h IW
W 1
FIAT
rapes tlv_From
I
itt
IFF.
EI
Taft Ñ Taf
iww1 n
item
Ww
Input Digitalcomputer
Iitape
I1
ee
sina.EE IIie
We
wrote F an
a
avg.E.li iE
EFFENDI
or
whether the computation
Computability
decision possible not
or
complexity
DeterministicTI
Multi Single tape
Best Setup
numberof transition
worst case
the problem
complexity
of
h
ftp.t.tt
0 n
9accept
t
RE
complesityclasses mdrelatinmthrec.us
Complexity
Terrible Deterministic
TMI
Non
Teth
Deterministic TM
NPL
atleast as hard
Problems that are
NP Hard in NP
as thehardestplobems
time
reduces to B in Poly
II p
BE A
BENPL CE NP Hard
B p
HovetoshowaproblemisNPI IO
the problem is NP Hardy
To show that
NP
it belongs to
To show
Theorems
SAI cookLevin
xnE 0,1
1_
satisfTII animations of literals
literals IIIT
1 Conjunction
disjunction
CNFSConjunctiveNormalfar
infdause.si
ELF boolean
variables
1 to the satisfies
the values that CNF
need to assign n such
We
i 1,2
ri for
variables
the bookan
decisiona.FI an assignment of
CNF
in poly n whether the
can we
decide
not
satisfies or
Non Deterministic TM takes 001 of
EE
We
É ÉÉÉ 8 ai Wo
É
j
oÉ
Ét
ÉÉÉiÉi
Y
i
aj wash
ii
I
y
NK
0
nk
01m
want to prove to be
Unknown Problem T we
NPI
Show a reduction
SAT I
Hand
ThispravetEP
of T it
a solution
Show the given whether
in poly IIIPI
can be verified
is correct or not
the solution
ThisprovesTENP
TENPI
Time Complexity for Identifying ww
Problem:
Verify if a string of length nnn is of the form ww, where n=2mn = 2mn=2m (an even length), and both halves are identical.
Steps Involved:
Thus, the time complexity for identifying ww using a multi-tape Turing machine is O(n).
Verify if a string of length nnn is of the form ww', where the second half is the reverse of the first half.
Steps Involved:
Thus, the time complexity for identifying ww' using a multi-tape Turing machine is O(n)O(n)O(n).
Conclusion
Problem Single-Tape TM Multi-Tape TM
ww O(n2) O(n)
Thus, a multi-tape Turing machine is significantly more efficient for identifying both ww and ww' compared to a single-tape
Turing machine.
This slide seems to summarize the distinction between deterministic and non-deterministic computation, as well as situating
them within broader computational complexity classes.
Select one:
True
False
The correct answer is 'True'.
The language L={w∈{a,b}∗∣the number of a is a multiple of the number of b} is context free.
Select one:
True
False
The correct answer is 'False'.
The language L={ambncp∣m,n,p≥0 and m=n or n=p} is context free.
Select one:
True
False
The correct answer is 'True'.
The language L={aibjck∣i,j,k≥0 and i=j+k} is context free.
Select one:
True
False
a. Deterministic context-free
b. Regular
c. Non-deterministic context-free
Select one:
True
False
Feedback
The correct answer is 'False'.
Consider a language L={anb2n∣n≥0}. Which of the following statements is true?
Select one:
c. L is regular.
d. L is not context-free.
Feedback
Your answer is incorrect.
The correct answer is: L is context-free and can be recognized by a deterministic PDA.
Cook-Levin's Theorem and Its Details
The Cook-Levin theorem states that the Boolean Satisfiability Problem (SAT) is NP-complete. It was the first problem
proven to be NP-complete and serves as a foundation for NP-completeness proofs for other problems.
Key Concepts:
The proof of Cook-Levin’s theorem establishes that SAT is NP-complete by the following steps:
● To show SAT is NP-complete, prove that any problem in NP can be transformed into an instance of SAT in
polynomial time.
● Consider any problem in NP solved by a non-deterministic Turing Machine (NTM).
Encoding the NTM into SAT:
1. Configurations:
○ A configuration of the NTM includes:
1. The state of the machine.
2. The position of the head.
3. The tape contents.
○ Represent these using Boolean variables.
2. Encoding Steps:
○ For each step of the NTM's computation:
1. Encode the machine's state using Boolean variables w1,w2,…,wkw_1, w_2, \ldots, w_kw1,w2,…,wk.
2. Encode the tape contents and head position using additional Boolean variables.
3. Encode transitions between configurations using logical constraints.
3. Conjunctive Normal Form (CNF):
○ Transform the logical constraints into CNF formulas.
○ The resulting SAT formula represents the computation of the NTM.
4. Complexity:
○ The size of the SAT formula is polynomial in the size of the original NTM computation.
Conclusion:
● Since SAT is in NP and every problem in NP can be reduced to SAT in polynomial time: SAT∈NP-complete.
This theorem laid the foundation for computational complexity theory by identifying SAT as a universal problem for
NP-completeness proofs.