Theory of Automata (Cs-2208) : Lecture# 01
Theory of Automata (Cs-2208) : Lecture# 01
LECTURE# 01
INTRODUCTION
Introduction to Course
Formal and informal languages
Alphabets, Strings, and Words
Valid and invalid alphabets
String length
Reverse of string
• Assignments 10 %
• Quizzes 10 %
• Mid-Term 30 %
• Terminal 50%
• Definition:
Concatenation of finite symbols from the
alphabet is called a string.
• Example:
If Σ= {a,b} then
a, abab, aaabb, ababababababababab are
various strings of the language defined over
alphet {a,b}
• Definition:
Words are strings belonging to some language.
Example:
If Σ= {x} then a language L can be defined as
L={xn : n=1,2,3,…..} or L={x,xx,xxx,xxxx,….}
Here x,xx,xxx,… are the words of L
Note: All words are strings, but not all strings are
words.
• Definition:
The length of string s, denoted by |s|, is
the number of letters in the string.
• Example:
Σ={a,b}
s=ababa
|s|=5
• Example:
Σ= {B, aB, bab, d}
s=BaBbabBd
Tokenizing = (B), (aB), (bab), (B),(d)
|s|=5
• Example:
Σ= {B, aB, bab, d}
s= BaBbabBd
Rev(s) = dBbabaBB