联系方式

  • QQ:99515681
  • 邮箱:99515681@qq.com
  • 工作时间:8:00-21:00
  • 微信:codinghelp

您当前位置:首页 >> Matlab编程Matlab编程

日期:2018-04-18 10:06

Design a pushdown automata (PDA)

1.Consider the language of all binary strings that start and end with the same symbol.

(a) Write the production rules of a grammar for this language. Show some derivations to test that your grammar is correct.

(b) Design a pushdown automata (PDA) to recognise this language. Give an implementation level description of your PDA. That is, explain what the machine will do in plain English.

(c) Draw a diagrammatic state machine model showing all the moves of your PDA.

(d) State carefully any assumptions you have made.

2.Consider the language of arithmetic expressions as a string of additions and/or subtractions of natural numbers. For example, 23 + 6 − 25 + 0 or 990 or 1 − 2 are valid expressions.

(a) Outline an implementation-level description of a Turing Machine to recognise this language. Remember that for an implementation-level description you do not have to give a formal specification of the machine’s moves, but only to explain the algorithm in plain English explaining the series of steps the machine would use for this calculation.

(b) Draw a diagrammatic state machine model showing all the moves of your Turing Machine.

(c) State carefully any assumptions you have made.


版权所有:编程辅导网 2021 All Rights Reserved 联系方式:QQ:99515681 微信:codinghelp 电子信箱:99515681@qq.com
免责声明:本站部分内容从网络整理而来,只供参考!如有版权问题可联系本站删除。 站长地图

python代写
微信客服:codinghelp