-
一:需求分析
1. 问题描述
魔王总是使用自己的一种非常精练而抽象的语言讲话,没人能听懂,但他的语言是可逐步解释成人能听懂的语言,因为他的语言是由以下两...
一:需求分析
1. 问题描述
魔王总是使用自己的一种非常精练而抽象的语言讲话,没人能听懂,但他的语言是可逐步解释成人能听懂的语言,因为他的语言是由以下两种形式的规则由人的语言逐步抽象上去的:
-----------------------------------------------------------
(1) a---> (B1)(B2)....(Bm)
(2)[(op1)(p2)...(pn)]---->[o(pn)][o(p(n-1))].....[o(p1)o]
-----------------------------------------------------------
在这两种形式中,从左到右均表示解释.试写一个魔王语言的解释系统,把
他的话解释成人能听得懂的话.
2. 基本要求:
用下述两条具体规则和上述规则形式(2)实现.设大写字母表示魔王语言的词汇 小写字母表示人的语言的词汇 希腊字母表示可以用大写字母或小写字母代换的变量.魔王语言可含人的词汇.
(1) B --> tAdA
(2) A --> sae
3. 测试数据:
B(ehnxgz)B 解释成 tsaedsaeezegexenehetsaedsae若将小写字母与汉字建立下表所示的对应关系,则魔王说的话是:"天上一只鹅地上一只鹅鹅追鹅赶鹅下鹅蛋鹅恨鹅天上一只鹅地上一只鹅".
| t | d | s | a | e | z | g | x | n | h |
| 天 | 地 | 上 | 一只| 鹅 | 追 | 赶 | 下 | 蛋 | 恨 |
-one : a needs analysis. Problem description always use their own fiendish a very concise and abstract language speech Nobody can understand, but the language is gradually explained adult can understand the language, because his language is composed of the following two forms of
- 2022-09-04 11:50:02下载
- 积分:1
-
双向约瑟夫问题
约瑟夫问题是一个经典的问题,我们不妨将这个经典问题进行扩展,变成一个双向的约瑟夫问题。
已知n个人(不妨分别以编号1,2,3,…,n 代表 )围坐在一张圆桌周围,首先从编号为 k 的人从1开始顺时针报数,1, 2, 3, ...,记下顺时针数到 m 的那个人,同时从编号为 k 的人开始逆时针报数,1, 2, 3, ...,数到 m 后,两个人同时出列。然后从出列的下一个人又从 1 开始继续进行双向报数,数到m的那两个人同时出列,…;。依此重复下去,直到圆桌周围的人全部出列。直到圆桌周围只剩一个人为止。
如果双向报数报到 m 时落在同一个人身上,那本次出列的只有一个人。
请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
- 2022-02-15 10:54:04下载
- 积分:1
-
C++用者必看之书
启发大脑有益身心.
C++用者必看之书
启发大脑有益身心.-C users Watchable book inspired the brain healthy. Haha
- 2022-02-27 04:20:41下载
- 积分:1
-
非常好用的经典的mips pc模拟器.
可以模拟很多的东西
非常好用的经典的mips pc模拟器.
可以模拟很多的东西-Very nice classic mips pc simulator. Can simulate a lot of things
- 2022-03-10 14:14:29下载
- 积分:1
-
在MATLAB中显示了WCDMA的仿真,并在SIMULINK中仿真通过
在MATLAB中显示了WCDMA的仿真,并在SIMULINK中仿真通过-WCDMA is shown in the MATLAB simulation and the simulation by SIMULINK
- 2022-03-26 15:08:06下载
- 积分:1
-
这个小程序是使用c语言编写的矢量量化的一个小程序,在vc界面下操作的一部分....
这个小程序是使用c语言编写的矢量量化的一个小程序,在vc界面下操作的一部分.-this procedure is the use of small-c language prepared by the Vector Quantization a small procedure, the interface vc part of the operation.
- 2022-02-22 10:43:59下载
- 积分:1
-
open cart PHP source code
OpenCart is a turn-key ready "out of the box" shopping cart solution. You simply install, select your template, add products and you"re ready to start accepting orders.
It has order management and multiple payment gateways already built in and we provide lifetime free support and free software updates.
- 2022-08-09 15:34:14下载
- 积分:1
-
java 说明.下载到受机中不要在电脑中解压
java 说明.下载到受机中不要在电脑中解压-java notes. downloaded to the affected machine will not unzip on your computer
- 2022-11-30 19:40:08下载
- 积分:1
-
This a 802.15.4 simulator for star topology. This provides energy consumption, t...
This a 802.15.4 simulator for star topology. This provides energy consumption, throughput, delay, and many other performance metrics.-This is a 802.15.4 simulator for star topology. This provides energy consumption, throughput, delay, and many other performance metrics.
- 2022-07-02 05:42:43下载
- 积分:1
-
用matlab来实现的衍射模拟实验,便于教学中立体的观看实验结果,这是很好的...
用matlab来实现的衍射模拟实验,便于教学中立体的观看实验结果,这是很好的-using Matlab to achieve the diffraction experiments to facilitate the teaching of stereo viewing the experimental results, This is a good
- 2022-10-10 10:10:02下载
- 积分:1