aabba" is on the tape when
the machine starts, just "1" should be on the
tape when the machine halts.
Use JFLAP to construct (and test!) a machine that halts when its input is a palindrome over {a,b} and goes into an infinite loop otherwise. What you leave on the tape is up to you.![]()
This model is called a Turing Machine, and it was invented and investigated by Alan Turing in the 1930's ... before we really had computers! Essentially, it is a finite automaton + an array. We let our FA's input tape be infinitely long, we let the machine write on it as well as read on it, and we let the machine dictate how the tape read/write head moves and when computation halts.
For this class we played with examples of such machines using JFLAP. Once we're familiar with them informally, we'll go back and give formal definitions.
"
in the transitions stands for a blank.
This machine writes a blank no matter what it reads, and keeps moving right. When reads the first blank (i.e. the end of the input) it halts.![]()
abb → baa.
abb → abb a.
abb → abb
abb.