TOC - Central Concept of Automata Theory
TOC - Central Concept of Automata Theory
7/20/2011
Vinayan Lr in IT
Concepts
Alphabets
->alphabet is finite, non-empty symbols 1. ={0,1}, binary alphabet 2. ={a,b,z} lower case letters
Strings
->Finite sequence of symbols chosen from alphabet ->01101 is a string from binary alphabet ={0,1}
Power of an Alphabet
is an alphabet ,define k string of length k, whose symbol in 0= , only string of length 0 ={a,b,c} 1={a,b,c}, 2={aa,ab,ac,ba,bb,bc,ca,cb.cc} 3={aaa,aab,aac,aba,abb,abc,aca,acb,acc,baa,bab,bac,bba,bbb,bbc,bca,bcb,bcc,caa,cab,cac,cba,cbb,cbc,cc a,ccb,ccc}
* = 0 1 2 + = 1 2 3 * = + { }
7/20/2011 Vinayan Lr in IT 2
Concatenation
XY =>concatenation of x and y X=a1 a2ai (length i) Y=b1 b2.bj (length j) XY=a1a2ai b1 b2..bj (length i+j) X=1101 Y=0011 XY=11010011 YX=00111101 w=w=w is identity concatenation
Languages
is an alphabet ,and L *
Particular alphabet called Language L is language over 1Language of n0s followed by n 1s { ,01,10,0011,000111} 2strings of equal no 0s and 1s {,01,10,0011,0101,1001} 3..binary values is a prime {10,11,101,111,1011,} 4.. * is a language of alphabet 5.,empty language over any alphabet 6.{} consist of empty string ,language over any alphabet ,Notice that {e}
7/20/2011
Vinayan Lr in IT
7/20/2011
Vinayan Lr in IT
Transition-Diagram
DFA A=(Q,,,q0,F) a -> each state Q there is a node b -> each state q in Q and input symbol a in , (q,a)=p (Transition diagram has an arc from node q to node p labeled a ) c ->an arrow into start states q0 labeled start d-> node corresponds to accepting state (those in F) marked by double circle, state not in F have single circle
Transition-Table
Take tabular representation of function take two arguments and return a value ,rows corresponds to states, column corresponds to inputs
0 ->Q0 *Q1 Q2 Q2 Q1 Q2
1 Q0 Q1 Q1
0 0,1
q0 q2 q1
start
7/20/2011
Vinayan Lr in IT
*q0 q1 q3 q4
0 q1 q4 q2 q4
1 q1 q2 q3 q2 q4
start 1 0 q 4 0,1 0,1
q 0 q 1
->q2 q3
0,1 1
q 2
q 3
M=({q0,q1,q2,q3,q4},{0,1},,q0,{q2})
(q0, ) = q0 (q0, 0) = ( (q 0, ), 0) = (q0, 0) = q1, (q0, 01) = ( (q0, 0),1) = (q1,1) = q 2 (q0, 011) = ( (q0, 01),1) = (q 2,1) = q3 (q0, 0111) = ( (q0, 011),1) = (q3,1) = q 2 (q0, 01110) = ( (q 0, 0111), 0) = (q 2, 0) = q3
7/20/2011 Vinayan Lr in IT
q0
q0
q0
q0
q0
q0
q1
q1 q2
q2
0
7/20/2011
0
Vinayan Lr in IT 7
Continue
q1 *q2 0 q2 1 q0,q1 q2
q0 q1
->q0 q0
(q0, ) = {q0} (q0, 0) = (q 0, 0) = {q0} (q0, 01) = (q0,1) = {q0, q 2} (q0, 010) = (q 0, 0) (q1, 0) = {q0} {q 2} = {q0, q 2} (q0, 0101) = (q0,1) (q 2,1) = {q0, q1} = {q0, q1} (q0, 01010) = (q 0, 0) (q1, 0) = {q0} {q 2} = {q0, q 2}
7/20/2011 Vinayan Lr in IT 8
D ( S , a ) = pinS N ( p, a )
7/20/2011 Vinayan Lr in IT 9
1 {q0,q1} {q2}
A ->B C *D E
0 A B D A F B D F
1 A E D A H E D H
start
0 B 1
1 0 E F
{q0,q1,q2}
*F
0 1
*G *H
0 1
{q0}
start
1 0
{q0, q1}
{q0,q2 }
0 1
7/20/2011 Vinayan Lr in IT 10