Docsity

Turing Machines: Formal Definition and Example - Prof. Mahesh Viswanathan, Study notes of Computer Science

Partial preview of the text

Download Turing Machines: Formal Definition and Example - Prof. Mahesh Viswanathan and more Study notes Computer Science in PDF only on Docsity!

CS 373: Theory of Computation

Manoj Prabhakaran Mahesh Viswanathan

University of Illinois, Urbana-Champaign

Fall 2008

General Computing Machines

Machines so far: DFAs, NFAs, PDAs

General Computing Machines

Machines so far: DFAs, NFAs, PDAs Limitations on how they can use memory: fixed amount of memory, plus (for PDAs) a stack Limitations on what they can compute/decide: only regular languages or context free languages The complete machine?

General Computing Machines

Machines so far: DFAs, NFAs, PDAs Limitations on how they can use memory: fixed amount of memory, plus (for PDAs) a stack Limitations on what they can compute/decide: only regular languages or context free languages The complete machine? No limitations on memory usage?

General Computing Machines

Machines so far: DFAs, NFAs, PDAs Limitations on how they can use memory: fixed amount of memory, plus (for PDAs) a stack Limitations on what they can compute/decide: only regular languages or context free languages The complete machine? No limitations on memory usage? But maybe other ways to use computational resources that we haven’t thought of...

No limitation on what they can compute?

General Computing Machines

Machines so far: DFAs, NFAs, PDAs Limitations on how they can use memory: fixed amount of memory, plus (for PDAs) a stack Limitations on what they can compute/decide: only regular languages or context free languages The complete machine? No limitations on memory usage? But maybe other ways to use computational resources that we haven’t thought of...

No limitation on what they can compute? No! There are far too many languages over { 0 , 1 } than there are “machines” or programs

General Computing Machines

Machines so far: DFAs, NFAs, PDAs Limitations on how they can use memory: fixed amount of memory, plus (for PDAs) a stack Limitations on what they can compute/decide: only regular languages or context free languages The complete machine? No limitations on memory usage? But maybe other ways to use computational resources that we haven’t thought of... Come up with a model that describes all “conceivable” computation No limitation on what they can compute? No! There are far too many languages over { 0 , 1 } than there are “machines” or programs (as long as machines can be represented digitally)

General Computing Machines

Alonzo Church, Emil Post, and Alan Turing (1936)

Alonzo Church Emil Post Alan Turing

Church (λ-calculus), Post (Post’s machine), Turing (Turing machine) independently came up with formal definitions of mechanical computation

General Computing Machines

Alonzo Church, Emil Post, and Alan Turing (1936)

Alonzo Church Emil Post Alan Turing

Church (λ-calculus), Post (Post’s machine), Turing (Turing machine) independently came up with formal definitions of mechanical computation All equivalent! In this course: Turing Machines

The ‘aha’ moment

Turing Machines

X 1 X 2 · · · Xn t t

finite-state control

tape

head

Unrestricted memory: an infinite tape

Turing Machines

X 1 X 2 · · · Xn t t

finite-state control

tape

head

Unrestricted memory: an infinite tape A finite state machine that reads/writes symbols on the tape

Turing Machines

X 1 X 2 · · · Xn t t

finite-state control

tape

head

Unrestricted memory: an infinite tape A finite state machine that reads/writes symbols on the tape Can read/write anywhere on the tape Tape is infinite in one direction only (other variants possible)

Turing Machines

X 1 X 2 · · · Xn t t

finite-state control

tape

head

Unrestricted memory: an infinite tape A finite state machine that reads/writes symbols on the tape Can read/write anywhere on the tape Tape is infinite in one direction only (other variants possible) Initially, tape has input and the machine is reading (i.e., tape head is on) the leftmost input symbol.