Introduction
Introduction
Models of Computation
1
General Info
Shashidhar G. Koolagudi
NITK, Surathkal
Course plan will be supplied shortly
2
Computation
CPU memory
3
temporary memory
input
CPU
output
Program memory
4
3
Example: f ( x ) x
temporary memory
input
CPU
output
Program memory
compute xx
2
compute x x
5
3
f ( x) x
temporary memory
input
x 2
CPU
output
Program memory
compute xx
2
compute x x
6
3
temporary memory f ( x) x
z 2 * 2 4
f ( x) z * 2 8
input
x 2
CPU
output
Program memory
compute xx
2
compute x x
7
3
Temporary Memory f ( x) x
z 2 * 2 4
f ( x) z * 2 8
input
x 2
CPU
f ( x) 8
Program Memory output
compute xx
2
compute x x
8
Automaton
Temporary Memory
Automaton
input
CPU
output
Program memory
9
Automaton
Temporary Memory
Automaton
input
output
transition
state
10
Different Kinds of Automata
Automata are distinguished by the temporary memo
11
Finite Automaton
temporary memory
input
Finite
Automato
n
output
Pushdown input
Automaton
output
Temp.
memory Random Access
Memory
input
Turing
Machine
output
16
Time Complexity of Computational Problems:
NP-complete problems
Believed to take exponential
time to be solved
P problems
Solved in polynomial time
17