This is a practice problem for a midterm in a class I'm taking:
Given a regular language $L$, describe formally a Turing machine that recognize $L$.
I'm not sure how I should do that.
Computer Science Stack Exchange is a question and answer site for students, researchers and practitioners of computer science. It only takes a minute to sign up.
Sign up to join this communityThis is a practice problem for a midterm in a class I'm taking:
Given a regular language $L$, describe formally a Turing machine that recognize $L$.
I'm not sure how I should do that.
Hint: A DFA consists of 5 parts: state-set, alphabet, initial-state, final-state-set and transition-function. What does a Turing Machine consist of, and which would correspond to each part of a DFA?
$L$ is regular and so accepting by a dfa. for each transition $\delta(p,a)=q$ in the dfa accepting $L$ let $\delta(p,a)=(q,a,R)$ for define a TM which accepting $L$.