Professional Documents
Culture Documents
Automata Theory
Automata Theory
Lecture 1
About Instructor
Name: Qamar Askari
PhD(CS) in progress at NUCES-Lahore
Email: syedqamar@gift.edu.pk
Lecture’s Objective
Understanding of what we’re going to study in this course.
Theoretical Computer Sciences
TCS covers a wide variety of topics including
Reference: The ACM's Special Interest Group on Algorithms and Computation Theory (SIGACT)
Mathematics Theoretical Computer Sciences
Theory of Computation
Model of
Computation
Problem Solution
Algorithm
Complexity Theory
• Decision problem
• Search problem Is Prime?
• Decision problem
• Search problem Prime factors?
• Decision problem
• Search problem Prime factors?
• Decision problem
• Search problem GCD?
GCD
Computational Problems N1 - Number N2 - Number
• Decision problem
• Search problem N1/N2
Answer
Computational Model/Abstract Machine
N – A binary number
Model of Computation Rule: Output YES for all bit strings ending in 1.
L = {1, 01, 11, 001, 011, 101, 111, ……} YES
L’ = {0, 00, 10, 000, 010, 100, 110, ……} NO
Yes No
Computational Model/Abstract Machine
N – A binary number
Model of Computation
States Odd Even
Action/Transition Output
• 1 at odd
Yes No YES
• 0 at odd
• 1 at even
• 0 at even NO
Computational Model/Abstract Machine
N – A binary number
Yes No
0
What we’re going to study?
Automata’s Glimpse
Regular Expressions
Turing Machine
Why a CS student need to study this
course?
One reason Step – 1: Formal definition of problem
Rule: Output YES for numbers ending in 1,3,5,7,9.
L = {1, 3, 5, 7, 9, 11, 13, 15, 17, ……} YES
N – A Natural number
L’ = {2, 4, 6, 8, 10, 12, 14, 16, ……} NO
Is odd number?
Step – 2: Construction of Model
Construct on board
Model of Computation
Yes No
Other reasons
1. It improves problem solving skills
2. It let us know how a real world problem can be mapped and solved
theoretically/mathematically
3. It allows us to solve our problems diagrammatically instead of writing a program for them