Академический Документы
Профессиональный Документы
Культура Документы
Automata
BS Course
Slide # : 01(a)
Muhammad Faizan Tahir
Your Responsibility
As a Student:
1.Attend classes regularly.
2.Ask question if you have any queries regarding course
material or anything.
3.Submit assignment in time.
4.Don’t miss quizzes, assignments and examinations-
Can get good result.
5.No Plagiarism is allowed in any sort of a writer
material – Write in your own words.
Course policy
• Assignments:
• Assignments are due at the beginning of class.
• Late assignment will not be accepted.
• All works have to be done independently except in case
of group assignments.
• Students handing in similar assignments will receive a
grade of 0 (Zero).
• Attendance:
• Students are expected to attend all classes.
Marks Distribution
Category Marks
Assignments 15%
Quiz 10%
Attendance / Class Participation 10%
Midterm 25%
Final 40%
Course Information
• The course deals with the concept of
computability and mathematical
models, such as finite automata,
grammars and Turing machines, and
the relations between these models.
Course Information
• The following topics are treated:
BATTERY
input: switch
output: light bulb
actions: flip switch
states: on, off
A Simple Computer
f
BATTERY
start off on
f
input: switch
bulb is on if and only if
output: light bulb
there was an odd number of
actions: f for “flip switch” flips
states: on, off
Another “computer”
1
1 start off off
1
BATTERY 2 2 2 2
1
2
off on
1
inputs: switches 1 and 2
bulb is on if and only if
actions: 1 for “flip switch 1”
both switches were flipped
actions: 2 for “flip switch 2”
an odd number of times
states: on, off
Example 02
• Modeling recognition of the word “then”
• Definition:
A finite non-empty set of symbols (letters), is
called an alphabet. It is denoted by Σ ( Greek
letter sigma).
• Example:
Σ={a,b}
Σ={0,1} //important as this is the language
//which the computer understands.
Σ={i,j,k}
Strings
• Definition:
Concatenation of finite symbols from the alphabet
is called a string.
• Example:
If Σ= {a,b} then
a, abab, aaabb, ababababababababab
NOTE:
• 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,….}
Here x,xx,… are the words of L
NOTE
i. (S+)*=(S*)*
ii. (S+)+=S+
iii. (S*)+=(S+)*
Defining Languages
Defining Languages
• The languages can be defined in different ways ,
such as Descriptive definition, Recursive
definition, using Regular Expressions(RE) and
using Finite Automaton(FA) etc.