Docsity

toc unit 3,4 btech cse, Lecture notes of Theory of Computation

Toggle sidebar
bg1
DATE
TURING
MACHINE
Jing
machine
was
imuented
in
1936
by
Alan
Turing.
1
an
accepting deufco
whish accepto
Re
cuwrsiue
Entmable
LanguLape
generated
by
Jwung
eO
ram
ma
There
a
varibus
eatunes
othe
TM.=
aoitray
long
depuence
o
input.
thas
an
extenal
mempiy
which
nem
fmbtns
has
unlimited
memny
capahilit.
The
tapa
haad
hag
the
capability
te
moe
et
and
ight.
he
machine
Can
bnOduce
a
Ctain
utputE
hased
Dn
ik
input.
sometimes
iA
may
ha
nequined
that
he
same
input
has
to
be
ssd
to
geneate.
the
output.
so
in
his
hmachine,
he
olidtinctiem
b)winput
qnd
9tp
hos
baern
hemoued.
Thus
a
tam
men
st
o
alphabet
can
be
used
pe
he
T.m.
b
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18

Partial preview of the text

Download toc unit 3,4 btech cse and more Lecture notes Theory of Computation in PDF only on Docsity!

DATE

TURING MACHINE

Jing machine was imuented in 1936

by Alan Turing. 1 an accepting deufco whish accepto Re cuwrsiue Entmable LanguLape generated by

Jwung

eO ram ma

There a varibus eatunes othe TM.=

aoitray long depuence o input.

thas an extenal mempiy which nem fmbtns

has unlimited memny capahilit.

The tapa haad hag the capability te moe et and ight.

he machine Can bnOduce a Ctain utputE hased Dn ik input. sometimes iA may ha nequined that^ he^ same^ input^ has^ to^ be ssd to geneate. the output. so in his hmachine, he olidtinctiem b)winput qnd 9tp hos baern hemoued. Thus a tam men st o alphabet can be used pe he T.m.

b

Femal delinitfem ea^ Turing^ Machine-

A Turung Machine M-(8,i1&,1o,B, F)

a heple dtuttwe whthi

-inih st^ o^ states. thehe chanacto et o anguage

dat o Jape^ aiymbo;^ =£u (^) ?p?

whene B^ blank dymbel. -dat ansition unctiom o nitil dtate. blam k smbe f at o final stutts FC.

a Jurimg Machine^ halts^ in

then the sting is atebted.

una stt,

*Basic (^) Model (^) e Tuning (^) Matine

ppPp3lb pe pp Roinitial state

Read u head Fi- Basi modle) oTuing Marhine

Turing Machin^ as^ languae^ Aceptors

Atwimg mahine^ halts^

when it^ no (^) i A tuwing has ag auailoble^ moues.^44 halts^ in^ a inal tate,^ it^ acceph^ ts (^) inpud; ohuu

it Jujus is input

Let m (8, E, r, 6, to B, P) 4s a TM,

s the^ st (^) o ose dtin in^ E*^ haf

bhe Language acceptd by M. denoted byby^ LmLm) ha Caust M to inter in final dtate.

A (^) 6tuing w im^ theTm said^ to^ be atLepted , -

9ow d1 pd2 hes dAme PEF

Qno 2 *

The TM dosnet accept sting w the mahin halk m a non actepting dtedt on dotu nst halt

Ewy TM diwdes the det e input tring oww the i^ in^ three (^) dasses;

.Accept This the det ol sbing which CALde the (^) TM (^) to (^) halt in tate. (^) alse (^) called (^) halting dtot)

which dOme fnal

DATE PAGE NO.

Reject- 4 may pesible that the input string may Lead to deme comRiguatiG with neminal xtate em uhich the Tm .Can ne-t moe Je. to

mat

deme (^) Bm (^) bim (^) ation honinal tate and CLuvrent ynbof o which the traritien pune undeincd.

Loop- An input átrun might caude the TM to enter anInkinife lovp, a neuer ending. guln o^ mouLA.^ n^ thi^ Ca^ hor^ is^ ne utceme. The machine centinussto mak mows, but the^ Obdenue^ heu^ dur^ thatt it abeut to atcept 0 Croh

Dedfgn a TM e ab" |nz= 1}

CY, Y, R)

Ca,a,R ,4,1)

Ca,R Cb,Y,

9,R)

B,L

ATE PAGE N0.

Twuimg Machine a4 Ansdutrs

TM (^) a mLe (^) than (^) judt (^) Janguage (^) accepteu To (^) use TM^ as^ brand (^) ducv (^) , buat (^) he (^) entir nenblank (^) ptiem tha (^) tope as (^) input, (^) and tuat he (^) entir nenblamk (^) tiono (^) o the (^) tab

aas utput when^ +he^ machine halh.

A (^) TMdpines a^ funyzf (^) ) her dbing

where 4 is-a pinal dtate.

Turing Cemputalde- Aunctie f ' daid te

be Tundn9- cemputabde, {uat Cemputalde, ihen M: (8£, o 9o, P,F) uch that

exids Ame Tuwung machine

eL all we£

E 9esign^ aTM.^ He^

1ls.mpJemenf

1O, R e,^ O,^ L

B,B, L 8,8A)

Oy1,R ty

rani~ien dUapngm^ fn^ ld^ cemplemend

Tanaitiom table -

dtates B

Ro ORo|BL OL 11 BR

L

LA

Modlicatisn to shndand Turing Mahsne

Many mooliicatiens^ qnd^ enhgn^ Cements ho. Many boen (^) ho psed^ te^ mpOue^ TM. Thede nhan Cement^ a mtoms^ e^ thethe^ no.no.^ al

tapes no.^ o^ backs^

on the tape allewall,

mOud attachmemt^ o^ meme^ etc,

OTM with stay optien instead mouirg Lot eisht on eeing amnput", the had witheuF mouingomyuwhee

C d alse tay at one pedition

f: &Xx x X xflu4t-dhigt, Rizht shilt, stay?

till the ho. of lamguages accepted b

TM e mains dame

TM ith demi- ininite tape - We know

that TM has an nginite inbut tpe with cctends im beth the divectioma (et 4ight) imkinitly. de^ nowiwe^ esbiet^ it^ to entend ondy in ene direction & not in both the ie ctiens, de., we make the tape to he (^) semi (^) inlinite, then (^) also (^) the no (^) o languaa acLepted by the TM nemains Same.

TATE PAG

line T.M-n^ standand^ Tm^ both (^) the (^) inpu Ornol (^) suput (^) onehnedentm the (^) tape, he (^) head has the autheity qnd Can (^) change (^) modi he (^) inpud, we dont (^) modily he (^) input we ca (^) hnoide imput im^ aparat (^) ile, which^ is^ ad^ eny then the head Cannot make change to it

te moe aths64 the Jnpu

the TM an to modiy the inpu, the

inpud heed to bs Copied on the tabe anmd ha

changes Can bmade by he haad bu kilt thinput il umain unthanped as changs ar (^) made in (^) the (^) tab and net in (^) th (^) file By deim

'no oLnguagas acceptedy the TM hemains

duch moodipicatiem to TM dtili +he

the dame

Jump.Jng T-The^ tandand^ Tms^ head^ can moue enly On step to theuight e lett, but in Cad o jumping Tm the haadhead canCam

nue not nly iust enL dtep to the t

ight uti^ Can^ mou^ me^ the it,,3, 4,S+ 6, * d0 ms Can ump cull to^ th^ ight^ o^ lJt^ o^ the input tape

f:xX &xx { Ltaigt, Rijiduniyt jy{n}

the ne D steps th at tt uish te moue

to the usghd o jt. But tlill the longuages

aCcepted bH^ Tm^ Jlmai^ nd^ thethe^ damt

R/w head Tuung^ tapa fenont tack

ig-Muitrack Turing Maehine.

MultLtape (^) TM- In (^) multitape (^) TM, (^) cach hesiden track a (^) dilenent (^) ope and can (^) moue in (^) desized dizectiem imdepend ent otherd 9 the^ mo ue ment j net (^) uquind hen e make. &tatienaH moueK

head

head

htad

head Finite Lemprol

Fig-MulLtitape Turing^ Machint

B defng^ thiy^ modigicotiou^ dtily the na.^ o amg (^) uases accep}ea^ b^ Tm^ umains^

dm

Multidimenasienal. Tm-^ n^

this (^) Tm (^) he

input tape^

Can be^ uiuud as^ exten

dinecti on

extending

initely m^ m e^ than^

One (^) din (limendfon-Ljt} ht /up ldouwm)

The moues o multidImensíonal ar emat oleineda eltews-

nal

d: 0x xx{1,R, U, D, átop? Hene L=et dérection R=Right directin U Upperdipecti D Dounn ainectien

Rl Hea

F-MudHdimtnafenal T.wring Machine.

numbu_ (^) oang (^) uages atctpted (^) by the^ Tm

By (^) deing this (^) modi;itation dtily the

mainghe same.

.Universal TM- Uniutrsal TM isa dpecipie4 TM hat Cam simulate tho bthauour AUTMn a Tm whosk mput Consistod etv barts Finst part is the entoded TmeUoed by amarkey. The seLend interpruted a th nput o Tm enLoded n st part

past L a sbuing tha

The UTM then simudates he precesaing e cemd pat o4 he en oded Tmin 4h dt pat oinput

Inpt stairg

Turing Machine^ otpit^ ctp, Rajert (^) Loep)

enenal Twring Machine

DsupHion e Tmtniurdal Twing SAccep Machina Output pejecd

Jrput dtbin

Fis- Univenda Turing Machine

DA

Jo (^) design UTm we (^) use multitape Tm becausealeng with^ input sing o^ we alssiu di ciptitmoTm

Descipdien om

(UTM Input sting- ''j

II (^) stat (^) e Mackinef

he enndedTuing^ Machine^ M1 felewrd^ by

Let Mu^ be^ the^ UTM^ and^ inpu e (^) M is by

input w. Mu wiu simudate and Run Tm en

Lmput (ect)

wuld haue ash on the imput -Mu will

ash (neject) M1 wold^ accopt^ the^ sting^ w- Mu (^) wiUaccept P m wtld leop^ en^ w^ ML^ wil^ lo^ op^ om^ w

ecialing V Recagnisng

lwung Machine^ Mhet99nizes^ Lamquage^ L

D the bing L put minte the Accept st

the sthiný Not inl @ithe put^ m^ into^ Reject^ dtate

BOp Cause M e Loop

Tuing achkineM "aeiides" lamgua9el i Dth ting Lput Mnte a~cept tate thi ktingNot in L put m_inte he Aeject tate

Recegnge Ahcegniger (^) ela (^) lon9ua (^) ge a (^) machine haf (^) ueco9rip (^) esthiat LanguAge 1t (^) ha in (^) the (^) Acceht (^) date (^) en the (^) dking hat aL (^) in (^) he (^) langugge It (^) may (^) may ho (^) halt On Kting that Ae (^) nt In (^) he Jmguage

Decider A (^) deciden (^) e a languag a hat decides^ Hhat (^) LanguagA. haltt (^) in (^) the (^) Accept state m (^) the (^) sting

machine

hat a m (^) he lan nage talse (^) halts (^) thesbing b (^) net im the language

Juning (^) Decidable language - lamg (^) ua Twn (^) decidabte (^) (n ge (^) 1s decides it decidalde)^ i^ emeseme^ TMTM Alse (^) knoum (^) as (^) (Pka) - Recuwmdie (^) lang (^) uage

Jwung (^) Recegnigabte language - A^ language is Turun (^) helog (^) nizable (^) i AaLeq nzes e^ Jwung^ machine

Aka"Recunsiuely tnumeLable languas

is

esue (^) propertics (^) Re uunsiu (^) langua (^) ee

O (^) Unien-4 (^) li (^) and la a (^) tue netwiue language, thene^ unien (^) L (^) Ul2 (^) wil (^) alss (^) be he ursiue^ becauet (^) i TM (^) hals (^) Lo L1 (^) and la itunll alse (^) halts (^) o ul

Con (^) cate (^) natism - L l2 (^) are (^) Jue RL, 4hc om Catenatiim L1 l2 ill alse be Rec.

L1= (^) fa"b"chnz =o? L2 d"e"f*"| mz = 0} L3 L1^ l a"b4 m=0 and^ n7z (^) o alio hewhie.

kJeene Llesure- i l i ne cuwrsit , it klesna doune l wl alse b ewrdiv. Fe ex L anb" c" m7 =O