Prove that the following language is recursively enumerable: L = {<M,x> | Turing machine M enters the same configuration twice on input x}
I have tried to construct a TM that maintains the current configuration which is of the form (u,q,v) where uv is the current tape content and the tape head is over the first symbol of v and q is the current state. However this would require infinite states to maintain the current tape content. I am not sure how to start this?
<M, x>
, could you construct a Turing machine which halts iff M enters the same configuration twice on input x? $\endgroup$