Automata Theory
Automata Theory
Automata Theory
(AUTOMATA THEORY)
AN IMPORTANT LANGUAGE
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.
Example:
For Σ={a,b}, PALINDROME={Λ , a, b, aa, bb, aaa, aba,
bab, bbb, ...}
REMARK
Number of strings of length ‘m’ defined over alphabet of ‘n’ letters is nm.
Examples:
The language of strings of length 2, defined over Σ={a,b} is L={aa, ab, ba, bb} i.e. number of
strings = 22
The language of strings of length 3, defined over Σ={a,b} is L={aaa, aab, aba, baa, abb, bab,
bba, bbb} i.e. number of strings = 23
To calculate the number of palindromes of length
(2n), consider the following diagram,
which shows that there are as many palindromes of length 2n as there are the
strings of length n i.e. the required number of palindromes are 2n.
To calculate the number of palindromes of length
(2n-1) with ‘a’ as the middle letter, consider the
following diagram,
which shows that there are as many palindromes of
length 2n-1 as there are the strings of length n-1 i.e.
the required number of palindromes are 2n-1.
If Σ = {0,1}
Then Σ* = {Λ, 0, 1, 00, 01, 10, 11, ….}
If Σ = {aaB, c}
Then Σ* = {Λ, aaB, c, aaBaaB, aaBc, caaB, cc, ….}
NOTE
(By infinite language, it is supposed that the language contains infinite many
words, each of finite length).
PLUS OPERATION (+)
Step 1: 1 is in INTEGER.
Step 1: 2 is in EVEN.
Step 1: ab is in {anbn}
Step 1: a is in L
Step 1: aa is in L