0

I have to figure out if this language

L = { ww | w {0,1}*}

is decidable by a Turing machine. The TM has 1 tape and 2 heads/pointers. The input string is finite. Any suggestions on how to solve it ?

The way I see it, if I know the length of the string, it's easy to solve it.

templatetypedef
  • 362,284
  • 104
  • 897
  • 1,065
Ben
  • 3
  • 2

1 Answers1

0

As a hint, you can find the midpoint of the string by repeatedly moving one tape head two steps forward and the other one step forward until the faster tape head walks off the string; at that point, the slower tape head is at the halfway point. That might help you find the breakpoint in the string.

Hope this helps!

templatetypedef
  • 362,284
  • 104
  • 897
  • 1,065