简体   繁体   English

在第一个符号上左移的图灵机

[英]Turing machine that goes left on first symbol

I have a turing machine with transitions given by the following table 我有一台图灵机,其转换如下表所示

在此处输入图片说明

I'm inputting the string aaaa. 我正在输入字符串aaaa。 So if I look at the first symbol "a" in state A, it says to replace it with an X, go into state B, and move Left. 因此,如果我查看状态A中的第一个符号“ a”,则表示将其替换为X,进入状态B,然后向左移动。 This is where I'm confused. 这就是我感到困惑的地方。 How can I move left if I'm looking at the first input symbol? 如果我正在看第一个输入符号,如何向左移动? Do I just go to a blank symbol? 我只是去一个空白符号吗?

Thanks! 谢谢!

It dependes on the variant of the Turing machine you are considering. 它取决于您正在考虑的图灵机的变体。 If you consider the "standard" Turing machine, the tape is infinite for both sides and by moving the header left on the input, you get a blank symbol. 如果您考虑使用“标准”图灵机,则磁带的两边都是无限的,并且通过在输入上向左移动标题,您将获得一个空白符号。

However, if your tape is infinite just for the right side, your algorithm must not make movements to the left after reaching the first symbol. 但是,如果磁带仅在右侧无限远,则算法在到达第一个符号后不得向左移动。 For the sake of simplicity, you can tell that by moving left on the beginning of the tape, you stay on the first input symbol. 为了简单起见,您可以告诉您,通过在磁带的开头处向左移动,您将停留在第一个输入符号上。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM