SUNY Geneseo Department of Mathematics
Monday, March 7
Math 304
Spring 2016
Prof. Doug Baldwin
If 1st symbol is blank, accept (a0b0c0)
Else
Repeat:
Write X
Search right for blank
Move left
If symbol not c, reject
Write blank
Search left for X
Move right
If symbol not a or b, reject (really ought to use 2 loops, one for a and one for b, to ensure as and bs in right order)
One left-to-right pass over tape
If symbol is a or b, write c and move right
If symbol is blank, accept