“Draw a Turing machine that accepts strings in 0*1*: qZeroes moves right over zeroes, changes to qOnes on the first one, qOnes moves right over ones, and either state accepts on blank B.”
그 이면의 의사결정을 읽어 보세요.
qZeroes permits any initial run of zeroes.
qOnes records that the first one has been seen.
either an all-zero input or a completed one run can halt successfully.
Use this small machine to explain states, tape scanning and language phases before introducing more complex Turing machines.
자주 묻는 질문
What does 0*1* mean?
It means zero or more 0 symbols followed by zero or more 1 symbols.
Is 00111 accepted?
Yes. All zeroes occur before all ones.
Is 010 accepted?
No. A zero after entering qOnes violates the required order.