了解TM模拟器

发布于 2024-10-07 15:39:32 字数 330 浏览 0 评论 0原文

我只是在查看图灵机模拟器代码并发现了以下语句

“磁带将时间和位置映射到符号,我们必须提前一步查看机器,如果当时磁头处于要求的位置,则符号。根据表中相同位置的前一个符号和机器所处的状态而改变。否则,符号没有改变。”

斜体部分是什么意思?在这种情况下,请求的职位意味着什么?

I was just looking at the turing machine simulator code and came across the following statements

"The tape maps time and position to symbols. To calculate the symbol, we have to look at the machine one step earlier. If at that time, the head was at the requested position, the symbol has changed according to the table depending on the previous symbol at the same position and the state the machine was in. Otherwise, the symbol didn't change."

What does the part in italics mean? What does requested position mean in this context?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

∞琼窗梦回ˉ 2024-10-14 15:39:32

他所说的“请求的位置”是指您尝试读取的位置,即赋予tape 的模板参数pos 的值。

By "requested position" he means the position that you're trying to read, i.e. the value of the template argument pos given to tape.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文