简体   繁体   English

构建决策者而不是决策者图灵机

[英]Building decider and not a decider Turing machines

How to make a Turing machine graph which recognizes all words with an even number of a's but which is not a decider and nothing else.如何制作一个图灵机图,它可以识别all words with an even number of a's但它not a decider ,没有别的。 Also, how to make a decider Turing machine graph for the same language.此外,如何为同一语言制作decider图灵机图。

The language of all words with an even number of a's is a regular language, so a simple two-state DFA will accept the language.所有带有偶数个 a 的单词的语言都是正则语言,因此简单的二态 DFA 将接受该语言。 The same machine is a two-state decider TM that happens not to use the tape for anything except reading input.同一台机器是一个两态判定器 TM,它碰巧不将磁带用于读取输入之外的任何事情。

To turn such a decider into a recognizer-non-decider (since all deciders are recognizers, too) we must make the TM explicitly recognize strings with an odd number of a's and, rather than simply halt-reject, go into an infinite loop.要将这样的判定器变成非判定器的识别器(因为所有判定器也是识别器),我们必须使 TM 显式识别具有奇数个 a 的字符串,而不是简单地停止拒绝,go 进入无限循环。 This can easily be done with a single state.这可以通过单个 state 轻松完成。

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

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