JFLAP图灵机批量测试
我在 JFLAP 中构建了一个图灵机,它是一个二进制加法器。它是一个 3 磁带 TM:前两个磁带是输入,第三个磁带获取输出。当我尝试进行批量测试时(此处找到的信息),我无法将 .txt 文件中的第三个字符串作为输出磁带。我的 .txt 文件的构建方式如下:
00110 11100110 11001110 accept
10101 010 11101 accept
111 1111 01101 accept
1010 101 0101 accept
0001 001001010101 001101010101 accept
但是,因为它是一台 3 磁带机,而且必须如此,所以我想要作为输出字符串的最后一个二进制字符串被视为第三个输入字符串,对于所有输入字符串来说,该字符串应该为空测试。有什么方法可以格式化我的测试字符串,以便 JFLAP 理解最后一个字符串应该是输出?
I built a Turing Machine in JFLAP is a binary adder. It is a 3 tape TM: first two tapes are inputs, and the 3rd tape gets the output. When I try to do the batch testing (info found here), I cannot get the 3rd string in my .txt file to become the output tape. My .txt file is built like:
00110 11100110 11001110 accept
10101 010 11101 accept
111 1111 01101 accept
1010 101 0101 accept
0001 001001010101 001101010101 accept
However, because it is a 3 tape machine, and it must be, the last binary string that I want to be the output string is taken as the 3rd input string, which should be blank for all the tests. Is there any way I can format my test strings so JFLAP understands the last string should be the output?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我发现我需要在前两个输入后面添加一个额外的空格;因此,第三个输入字符串将是一个空字符串。所以第一行是:
I found that I needed to put an extra space after the first two inputs; thus, the 3rd input string would be an empty string. So the first line would be: