문제

I am learning about Turing machines and I am wondering how to all the int using a turing machine.

도움이 되었습니까?

해결책

Numbers are also a question of encoding.

You could use the unary encoding:

1 = I
2 = II
3 = III

and so on.

But you can never list all integers. There are too many. The band is endless and it takes endless time to use it up.

You can accept all integers. So if an integer is on the band then you can accept if it is 0-9 for example and reject if there is another letter.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top