models of computation. computation: computation is a general term for any type of information...

13
Models of Computation

Upload: osborn-cole

Post on 17-Jan-2016

212 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Models of Computation. Computation: Computation is a general term for any type of information processing information processing CPU memory

Models of Computation

Page 2: Models of Computation. Computation: Computation is a general term for any type of information processing information processing CPU memory

Computation:Computation is a general term for any type of information processing

CPU memory

Page 3: Models of Computation. Computation: Computation is a general term for any type of information processing information processing CPU memory

CPU

input memory

output memory

Program memory

temporary memory

Page 4: Models of Computation. Computation: Computation is a general term for any type of information processing information processing CPU memory

CPU

input memory

output memoryProgram memory

temporary memory

3)( xxf

compute xx

compute xx 2

Example:

Page 5: Models of Computation. Computation: Computation is a general term for any type of information processing information processing CPU memory

CPU

input memory

output memoryProgram memory

temporary memory

3)( xxf

compute xx

compute xx 2

2x

Page 6: Models of Computation. Computation: Computation is a general term for any type of information processing information processing CPU memory

CPU

input memory

output memoryProgram memory

temporary memory3)( xxf

compute xx

compute xx 2

2x

42*2 z82*)( zxf

Page 7: Models of Computation. Computation: Computation is a general term for any type of information processing information processing CPU memory

CPU

input memory

output memoryProgram memory

temporary memory3)( xxf

compute xx

compute xx 2

2x

42*2 z82*)( zxf

8)( xf

Page 8: Models of Computation. Computation: Computation is a general term for any type of information processing information processing CPU memory

Automaton

CPU

input memory

output memory

Program memory

temporary memory

Automaton

Page 9: Models of Computation. Computation: Computation is a general term for any type of information processing information processing CPU memory

Different Kinds of Automata

Automata are distinguished by the temporary memory

• Finite Automata: no temporary memory

• Pushdown Automata: stack

• Turing Machines: random access memory

Page 10: Models of Computation. Computation: Computation is a general term for any type of information processing information processing CPU memory

input memory

output memory

temporary memory

Finite

Automaton

Finite Automaton

Example: Vending Machines

(small computing power)

Page 11: Models of Computation. Computation: Computation is a general term for any type of information processing information processing CPU memory

input memory

output memory

Stack

Pushdown

Automaton

Pushdown Automaton

Example: Compilers for Programming Languages

(medium computing power)

Push, Pop

Page 12: Models of Computation. Computation: Computation is a general term for any type of information processing information processing CPU memory

input memory

output memory

Random Access Memory

Turing

Machine

Turing Machine

Examples: Any Algorithm

(highest computing power)

Page 13: Models of Computation. Computation: Computation is a general term for any type of information processing information processing CPU memory

Finite

Automata

Pushdown

Automata

Turing

Machine

Power of Automata

Less power More power

Solve more

computational problems