What are practical guidelines for evaluating a language's “Turing Completeness”?

前端 未结 13 2267
礼貌的吻别
礼貌的吻别 2020-12-22 19:22

I\'ve read \"what-is-turing-complete\" and the wikipedia page, but I\'m less interested in a formal proof than in the practical implications of being Turing Complete.

<
13条回答
  •  眼角桃花
    2020-12-22 19:47

    If you can implement a Turing machine (as far as they can be implemented, as they're mathematical constructs with unlimited memory [the tape size is infinte]) then you can be sure it's Turing complete.

    Some indications:

    • You can check memory and manipulate it based on the current value as well as using it to control program flow.
    • That memory can be allocated memory, strings which you're able to append to, a stack which you can allocate memory on through recursion etc.
    • Program flow can be through iteration or through selection based recursion.

提交回复
热议问题