[Math] Turing machine that accepts even length strings

discrete mathematicsturing-machines

Can someone help me with some tips on how to create a turing machine that only accepts even length strings with an input alphabet of {0,1}?

Best Answer

Suppose you start from the leftmost 1. You need a "status bit" saying if the number of 1's counted so far is even/odd. In each step, change the status bit and move right until the symbol is 0.

Related Question