Automata 2
Automata 2
The
capital lambda will mostly be used to denote the
empty string, in further discussion.
Length of Strings
Definition:
Example:
Σ={a,b}
s=ababa
|s|=5
Example:
Definition:
Example:
Rev(s)=dBbabaBB
Defining Languages
The languages can be defined in different ways , such
as
1. Descriptive definition,
2. Recursive definition,
3. using Regular Expressions(RE) and
4. using Finite Automaton(FA) etc.
Example:
Example:
PALINDROME
Example:
If Σ = {x}
Then Σ* = {Λ, x, xx, xxx, xxxx, ….}
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).
Kleene PLUS/Kleene Positive/Positive Closure
Step 1: 1 is in INTEGER.
Step 1: 2 is in EVEN.
Step
2: If x is in EVEN then x+2 and x-2 are also in
EVEN.
Step 1: a is in L
Step 1: aa is in L