Beruflich Dokumente
Kultur Dokumente
Admistrative Stuff
Instructor: Shahab Baqai (baqai@lums.edu.pk) Room # 428, Ext 4428 Lectures: Tutorials: TAs: Mon & Wed 1530 1710 hrs. A-9 As & When needed 3~4 (TBA) Check course web for office hours etc http://suraj.lums.edu.pk/~cs311a04
Course Organization
Text Book: SJ. E. Hopcroft, R. Motwani, and J. D. Ullman Introduction to Automata Theory, Languages, and Computation, Second Edition, Addison-Wesley, New York, 2001. Sections: There are two parallel sections. The material covered in each will be the same. The 6~8 assignments, midterm and Final will be common. Each section may have different quizzes. Weights: Homework Quizzes Midterm Final Exam 06~08% 17~19% 35% 40%
What we will do
Automata = abstract computing devices Turing studied Turing Machines (= computers) before there were any real computers We will also look at simpler devices than Turing machines (Finite State Automata, Pushdown Automata, . . . ), and specification means, such as grammars and regular expressions.
Computation
CPU
memory
Example:
temporary memory
f ( x) = x
xx x x
8
f ( x) = x
temporary memory
input memory
x=2
CPU Program memory compute compute output memory
xx x x
9
temporary memory
z = 2*2 = 4 f ( x) = z * 2 = 8
f ( x) = x
input memory
x=2
CPU Program memory compute compute output memory
xx x x
10
temporary memory
z = 2*2 = 4 f ( x) = z * 2 = 8
f ( x) = x
input memory
x=2
CPU Program memory compute compute
f ( x) = 8
output memory
xx x x
2
11
Automaton
temporary memory Automaton CPU output memory Program memory
input memory
12
13
Finite Automaton
temporary memory
Finite Automaton
Pushdown Automaton
Stack Push, Pop
Pushdown Automaton
Turing Machine
Random Access Memory
Turing Machine
Power of Automata
Finite Automata
Pushdown Automata
Turing Machine
Less power