FAFL-Final-Lecture 2.2
FAFL-Final-Lecture 2.2
Lecture 2.2
Introduction to Automata
School of Computing and Information
Technology
Ms. Shruthi G
[email protected]
AY:2020-2021
OUTLINE
Recap of Previous Lecture
Lecture Discussion
• Alphabets
• Strings
• Operations on strings
• Languages
• Special Cases
Introduction to Automata
Recap of Previous Lecture
RECAP OF PREVIOUS LECTURE
Introduction to Automata
Course Description
• Definition of Theory of Automata
• Components of Automata
• Classifications of Automata
• Alphabets
Basics of • Strings
Automata • Operations on strings
Theory • Languages
• Special Cases
Introduction to Automata
Alphabets
ALPHABETS
Examples:
w = 9021 is a string over Ʃ1 = {0, 1, …, 9}
x = ab#bc is a string over Ʃ2 = {a, b, …, z, #}
y = ))()(() is a string over Ʃ3 = {(, )}
t = attgccgt is a string over Ʃ4 = {a, t, g, c}
u = _Max09_7 is a string over Ʃ5 = {a,…,z,A,…,Z,0,..,9,_}
v = 0110101 is a string over Ʃ6 = {0,1}
The empty string is denoted by Є OR λ
Introduction to Automata
Operations on Strings
OPERATIONS ON STRINGS
The + Operation: The set of all possible strings over an alphabet ∑ except λ.
( Positive Closure) If Σ = { a, b} then Σ+ = { a, b, aa, bb, aba, abba, ba, … }
Introduction to Automata
Language
LANGUAGE
A language over an alphabet Σ is any subset of Σ*(star closure of the alphabet Σ).
Example: If Σ = { a, b } then Σ* = { λ, a, b, aa, bb, ab, ba, aab, … } and
few Languages over Σ are:
}
L1= { aa, bb, aba }
L2= { a, abb, ba,bb,aa,aaab,λ } Finite Languages
L3= { abba, bab, aaba,a,b,bb }
L4 = { λ }
L5 = { anbn | n ≥ 0 } i.e. { λ, ab, aabb, aaabbb, ….}
L6 = { anbm | n,m ≥ 0 } i.e. { λ, a, b, ab, aa, aab, bb, aaab, …}
}
L7 = { w |w is palindrome over {a, b} } i.e {λ, a, b, aa, bb, aba, …}
Infinite
Languages
Introduction to Automata
Special Cases
SPECIAL CASES
•Ф={}≠{λ}
• |λ| = |ε| =| Ф| = 0
• |{ λ }|= 1
• λ ·w = w ·λ = w
• w0 = λ
• Σ0 = λ
• Σ+ = Σ* - { λ }
• If L is a Language over Σ then L = Σ* L ( Complement of L)
• If L is a Language over Σ then LR = { wR | w є L }
Example: { ab, bba, bab, baa}R = { ba, abb, bab, aab}
If L = { anbn : n≥ 0} then LR = { bnan : n≥ 0}
• L1· L2 = { x·y | x є L1 and y є L2 }
Example: {ab, ba} · {aa, b} = { abaa, abb, baaa, bab }
SPECIAL CASES
Introduction to Automata
Classification of Automata
Special Cases
RESOURCES AND TASK
Optional and non-optional reading resources of the
Lecture
Optional Resources
• https://www.eecs.wsu.edu/~ananth/CptS317/Lectures/index.htm
Web • https://www.geeksforgeeks.org/theory-of-computation-automata-tutorials/
resources • https://www.tutorialspoint.com/automata_theory/automata_theory_introdu
ction.htm
Non-Optional Resources
Turing award is the highest award in the field of computer science. To value
contributions of Alan Turing to Automata theory, one of the automata is named as
Turing machine. Write about contribution of Alan Turing to the field of computer
science.
Non-Optional Task
List various applications of Finite Automata, Push Down Automata and Turing Machine.
SUMMARY OF THE LECTURE
Reading resources for the next lecture
Topic of Next Lecture: Classifications of Finite Automata and Deterministic Finite Automata.
• https://www.eecs.wsu.edu/~ananth/CptS317/Lectures/index.htm
Web • https://www.geeksforgeeks.org/theory-of-computation-automata-tutorials/
resources • https://www.tutorialspoint.com/automata_theory/automata_theory_introduc
tion.htm
5. Ʃ* is called as _______
A) Ʃ B) λ
C) ɳ D) ɸ
QUIZ
Questions from Lecture 2.2
A) Ʃ B) λ
C) ɳ D) ɸ
8. If x and y are two strings and |x|=5 and |y|=7 then |x.y| is _____
A) 35 B) 12
C) 5 D) 7
THANK YOU