TOC Notes 1
TOC Notes 1
Unit 1
Symbl 14 is a chanae en
I+ is
Alphabet (E)- I4 is a finite, nen -empy set of symbal.
denoted z . Ex Z : 2o,b
Alphabe ts, 14 is hinite set sequence
Stning Collechon o a
sting
or
leng th k.
fo,l} A2' - 2)
is and k is l
Sc 2 no. of alphabe ts 2
k 2
oo, o,lo, 1
o 3 (23: 9) k 3
oooo
, o o , ool, olo, loo o , Tol, o1, u
KleanCloswe
fo,i3
*=£'ug' ug ugs.....
Automatoa
Posikive ClosuneThe set o sting ove an alphabet
without 6 (Emp Set) is usually denoted by tallouss us Systemaically about whatmac hine do
to think
ext w hou 9oing into haidwone detailsIn e an odsey
anea a
machine mathemotico
fo, CS that deals with the sudy oabsBaaet
thotcon be Solved
well as computahano) problem
model) as
Ex Llengtno sting2i Er L,: f o, b} P Poduction Means the ules at which language is geneated)
aa,ab, ba, bb} If uoo useuJe S Stant Sumbol
use atleast one a
numbe o Possible
Z {a,b} Anite automation is call ed nite because
o letes in he alphabet ne both
stes and nun ben
S a Sb aubmaton becouse ot cha nge ot stote is totaly
frduckon inte an
-,a is a
sequence ot
sambo
qois the
92,. n is a state hene
In 0RA is on y one path n speesie nput fnon e iniHal sote .
wrent stat the nert shte DfA does no+ apee
accept he null mode hot is tre oFA can ngt change e
statt witmaut am input ch anoutah. S ) - q1
SCqnn) - n
To1onsifian Gana ph CTenealiz2ed Tonsikon Gno ph_(GT
A nonsi to ioph is Collection o 3
n a
things. A GTG is acollec hion 3 *irgs
. A Anite set o stotes, atfeost one uith is designotd . inite set states
at the s n t state. And some f uith desiana ted os 2 An alphabet siqma oinput letosdinected-ard tra
nal stote sae each lale I with
3 D e c fed age connecing some paisn o
TRis This is ho we denote rat Stn* C l a erp1ession.
Ainsl sto te
An
2. Afphabet of possible input let s
3. A inite seto tonsitian that knous hous to go fmom
some sta te to o
the, boses on 1e oding specikcd sub V
sinms ot inpE leten
64a) 5 (q,,b)
Ex TG - e, baa and abba
6 (4, 1) 9, s (9,b
e
abb
a()
(15
Doss ble skokes ane
3 Nult) move
is not ollowed e (nutl)move is llaved
4. Ocsigqr& Urdos tanding is 4 Oesign Undershnding is
G:ilt oS
Stak
Non- Oetemanistic meons a chooge ot mave oa on automotion
1athen than prisoibing o unique move in each situation
(C.u
Siales
Tansihon Guraph of Moose Machine/Tonsikan Table
Ne,Stae
Mo021 Machine Cunent Shte Oulput
In Gnik autmato outpuB is 9sso cotd wtn each
Stote, In mooe ma chine evey stale ot his nik b
2
machine
Sia Capital Detfa
M (Q, z, 4 ,5, A, 9)
Q. I input strivgq is ootlo oulput stak -?
A non-cmpky Rni t Set of stale in Moone Machi
A
non-empty hinik setof input Symbs. Design a Mooie machine o t ansmiHan tabe
A noh-emp Anite setol Output
& I is tzransitin unchion which takes Next Stake
tw Apument as in Gnite outometa Cunnent State Output
one is iput stale d anothen input sqmbol.
I isa Output unchn. 3
1. Iniial Stat
(ola
(1./a 1
O
Mealy Hoa chine
"
i Gns the Output of a Stning lolloo by qiven msore saked
machineThe Gz1aph behaid. I4 is ini te autmeta in which output i asso
bo ol o o
S
Present Next State
(1o/ State
nput:b
State Oulput stafe Oulpu
d e upt of s t i ail.
b
oll
sk
afc 2. 1 a m inp+stig n
/ len ouput si
A
uyut stming
3. A a
by meal ochie.
acbcbb
Hou fo Convent mooTe machine to meay nochine Tonsiton Toble
Moone machuhe
Lto
Nou, dnou Gnph o mealy wih above moone able.
mm above
Now, doraw moone gaph nmealy table.
)ot
IL olo
a the 1monsitian
L table n hii mo ahe
machine.
l machine
Next State 3. o cach Sumbol a,a is a equlan oepnessiam denaottng
Cuent stte set a3.
Output
R O+ RP . Constuuet a
negutan Expnession Cove
sponding to sfak
R Qt(0+ RP) P
R Q+ QP+RP
R
R:
a P + (Q+ RP) P
oPt QP 23
( Dianm
tP)
R- p] ab
Find the 7egulon epe ssian on tnonsition
Groph diagyam. S R- + RY , R: QP
a
)
6 ab +ba)
. Constsuuet a Regaulantxpress ion courespnding
(ab+ba) Stat
Cab
E(ab t a)
(ab+ba) *
Sal
Sol 3
A E +As+C
B A +60
BI+Co
+,o0
+ 9 , LC+°) oo
+ e
R P¥
+ t (Itod Koo
C 61 o
C t ( o + 1(t+ o1)fao)
A E +Ao+ C
+ AotLo"16|
A = G A(o +lo¥1o*1)
*
e (o+ to 1of 1)
A Co+ 1okro%()
h e (o
PupinLex fheoXum . Using umpinq Lemna pmwe that nguage
A a n b n o is not negulon.
Il L is an Inhnik language thn hene enst Some
pos1hve Supoose n: 7
A anb"
intaer 'n ' (pumping leng h ) s u c h hat any stnin
wEL has Sal
2. Ylo
a aaaaaabbbbbbb
3. W:|
3. y!sx
bbbbb
=) aaaaaaqbbagbb
Q. Usinq Pumpinq Lemma Teorum _pmare that the langstage a aaaa laa bb)bbbbb
¬ L
A-aban |no} is not Reguloh 7 C>o , y 2
then 'n
then by cUitan opT0tians,
ag s elan. 67
The se homo ma-phiam Substitui on o sinings Smbsls
oa 7egulm language is 1e gula
Convesim Keguln Expression thnite Autamota Onit-3
2
Contert free Gz1amme Longusge
3. but stt o ules to de He vodid
AgmmmU is nothig
4 a+b
Sentence in any lang uag
Thene ane 4 impontant Componnts m a
aammaticol disptian
a* of alanguoe
6 ab . mene is a inite set d Symbsls a t omm he stnings
fthe lanquage beinq dehned we call this alp habet tninal
theangua b
a b
a,b amb_epPe aen ted
Thee is a ini te set oaioble also colld Someimcs
Cab)* non - teminals cach vomoble iepdresen ts a language Aat is a
Whene,
A Anie set non-tomira Repesen ted by Capi
leHo.
A Ginite set ot omira epresen ted by smal lefo
S Stning Smbo
P Set neGu lan g pp oduchian.
6 bA
AaA/b8/b
6 bA
i Onauw taonsi tion
diagn am
Left Mast Desivation D e i v e the Stnig "abb" Fsn left most derivatian anrd
In let
most deai va tim the input is scanned and ight as derivatian Using CF 6
aiven b
epla ced win te phoductim ule f an lest to ight,So
we have to 1ead input sfneam Hrom let to ight. S A6/ E
A aB
Ex Pn oduchan Rule
E = a lb
Sol CLet Most Denivaiam)
a 8B A a
Tnput sining a
(S6) 8 6 Sb)
a-b+a ab B
abB
E-E ab Sb E)
a-btE abb
a-b +a
Right Most Denivaion)
Right Most Oenivation A (Sb)
C6Sb)
Ab
In ight most denivation the input is sonned and
,
Ex
labb 6-¬)
E 6+ a
L +a
Deive the sB>Ting "oolat fo LMO and RMD
CFG 4ven using the
Denive stmigs aabbabba
" "
fon LhD ard Rmo
Using CF G 9ven belous
5 A18
A oA1E S a B lbA
A al asl bA A
oB[ 1B/ B blbs| aBB
So S A 1B CLet Mo st Deivation) E Design DFA cwhich contoin exact [ NEA To DEA]
OAIB
o0A1B3
A oA)
CA E)
C3-0)
oolo B a,ab, bab, bbo
oolol8 6
oolol E
(
oolot
S A 18 Right Most Oeniva hon)
Alo8 a,b
AlO 16
( 163 Houw fo convt NEA ts DFA
Alol G
( E)
Ato
CAA)
aAlO (A0A)
oGAO
A6) Sol State
State