首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > 多带图灵机在Haskell写的。

多带图灵机在Haskell写的。

  • 资源大小:4.00 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: haskell 图灵机

资 源 简 介

This is a multi-tape Turing Machine project written in Haskell. You are welcome to contribute. Usage You can create a more robust executable or modify TM.hs to suit your needs. I provided a simple main script that requires four arguments: Path to file which contains the tapes; Path to file which contains the transitions; Number of the initial state; true or false. A tape is a string. Separate them with a newline. The blank symbol is #. The transitions are more complicated, so I wrote an example: ((0,["0","#"]), (1,[("0", R),("b",R)])) ((1,["0","#"]), (1,[("0", R),("b",R)])) ((1,["1","#"]), (2,[("1", H),("b",H)])) ... Each line is the type: ((State, [Symbol]), (State, [(Symbol, Action)])). For the first line, you should read: In state 0, if I have "0"

文 件 列 表

hstm-0.1.0
Setup.hs
README
LICENSE
hstm.cabal
example.trans
example.tape
src

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP