Theory of Automata
Theory of Automata
Theory of Automata
LECTURE 01
INTRODUCTION
Reference Books
2
1.
I N T R O D U C T I O N T O C O M P U T E R T H E O R Y, B Y D A N I E L I .
COHEN, JOHN WILEY AND SONS, INC., 1991, SECOND
EDITION
2.
I N T R O D U C T I O N T O L A N G UA G E S A N D T H E O RY O F
C O M P U TAT I O N , BY J . C . M A RT I N , M C G R A W H I L L B O O K C O . ,
1997, SECOND EDITION
3.
4.
Course Outline
3
Course Policy
POLICY FOR THE DISTRIBUTION OF MARKS AND
EXAMINATION IS AS FOLLOWS:
CLASS PERFORMANCE & ATTENDANCE 10 MARKS
PRESENTATION
05 MARKS
ASSIGNMENT
05 MARKS
MIDTERMS
30 MARKS
FINAL
50 MARKS
Language
5
System
of
communication.
Introduction to languages
6
Automata
7
Application of Automata
9
Traffic Lights
Video Games
CPU Controllers
Speech Recognition
Compiler Construction
A simple computer
10
H
ITC
W
S
f
BATTERY
start
on
of
f
input: switch
output: light bulb
actions: f for flip
switch
states: on, of
Automata
11
Language {0,1}
Alphabet 01
Alphabet 02
String
State
00
Off
01
Off
10
Off
11
On
Another computer
12
start
of
2
BATTERY
2
inputs: switches 1 and
2
actions: 1 for flip
switch 1
actions: 2 for flip
switch 2
states: on, of
of
1
2
1
of
on
Alphabets
13
Definition:
NOTE:
14
Strings
15
Definition:
15
Words
17
Definition:
NOTE:
18
words.
Valid/In-valid alphabets
19
20
21
Remarks:
22
Conclusion
23
Length of Strings
24
Definition:
25
Example:
Reverse of a String
26
Definition:
s r,
is
27
Example:
Defining Languages
28
29
Example:
30
Example:
31
32
33
={a,b}, as
{an bn : n=1,2,3,}, can be written as
{ab, aabb, aaabbb,aaaabbbb,}
={a,b}, as
{an bn an: n=1,2,3,}, can be written as
{aba, aabbaa, aaabbbaaa,aaaabbbbaaaa,}
34
={1,2,3,4,5,6,7,8,9} i.e.
{1,2,6,24,120,}
over ={a}, as
{an! : n=1,2,3,}, can be written as
{a,aa,aaaaaa,}. It is to be noted that the language
FACTORIAL can be defined over any single letter
alphabet.
35
={a}, as
2
36
37
={a}, as
{ap : p is prime}, can be written as
{aa,aaa,aaaaa,aaaaaaa,aaaaaaaaaaa}
An Important language
38
PALINDROME:
The language consisting of and the strings s defined
over such that Rev(s)=s.
It is to be denoted that the words of PALINDROME are
called palindromes.
Remark
39
Note
40
n letters is nm.
Examples:
41
42
43
44