Given an Alphabet {a,b,c} , produce a Turing Machine which recognize if a given input string X is a palindrome. means if X is a palindrome, TM is halting and accepting, else halting and rejecting. You can use any model of Turing Machine (in terms of number of tapes)
My solution is:
- Create a Turing Machine M with 2 tapes.
- Copy the input string to both of the tapes.
- Set the first tape's at the beginning and the second tape's head at the end.
Move on the tapes and compare each value from the tapes:
- if they're different - stop and reject
- continue the check.
- stop and accept.
My question is it possible to initialize the header position of the different tapes in different places as I want? Another thing is how to describe this (the headers position) and the value's checking in a transition diagram or transition table?