Hello World! An Invitation to Computer Science

Lecture Slides

Turing Machines
Monday May 5, 2008


Key ideas from last time


What Turing machine program corresponds to this state diagram?


What state diagram corresponds to this Turing machine program?

  state     content      write        move    next state
  =====================================================
  START     0              0          right       B
  START     1              1          right       A
  A         0              0          right       C
  A         1              1          right       C
  B         0              0          right       D
  B         1              1          right       C
  C         *              1          no move     HALT
  C         0              1          no move     HALT
  C         1              1          no move     HALT
  D         *              0          no move     HALT
  D         0              0          no move     HALT
  D         1              0          no move     HALT

Building up our arsenal


Making Turing machines more robust


Representing different kinds of data