Professional Documents
Culture Documents
01 INTRODUCTION – A2
Presented by
Krishna Das
Faculty, CSE Dept, IUBAT
Models of Computation
Computation
CPU memory
temporary memory
input
CPU
output
Program memory
temporary memory
input
CPU
output
Program memory
compute xx
2
compute x x
02/08/21 CSC 397 4
3
f ( x) x
temporary memory
input
x2
CPU
output
Program memory
compute xx
2
compute x x
02/08/21 CSC 397 5
3
temporary memory f ( x) x
z 2*2 4
f ( x) z * 2 8
input
x2
CPU
output
Program memory
compute xx
2
compute x x
02/08/21 CSC 397 6
3
temporary memory f ( x) x
z 2*2 4
f ( x) z * 2 8
input
x2
CPU
f ( x) 8
Program memory output
compute xx
2
compute x x
02/08/21 CSC 397 7
Problem:
Show in diagram The Execution
of a Function –
in a Model of Computation
Automaton
input
CPU
output
Program memory
Automaton
input
output
transition
state
temporary memory
input
Finite
Automaton
output
Pushdown input
Automaton
output
Temp.
memory Random Access Memory
input
Turing
Machine
output
NP-complete problems
Believed to take exponential
time to be solved
P problems
Solved in polynomial time