-
一:需求分析
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
-
一款rpg小游戏,对想学游戏编程的朋友有帮助。
一款rpg小游戏,对想学游戏编程的朋友有帮助。-A rpg game for game programming, like the friends to help.
- 2022-08-24 16:30:22下载
- 积分:1
-
Clustering
聚类分析 Clustering 可以用来做聚类分析图,有实例-Clustering
- 2022-03-19 10:27:41下载
- 积分:1
-
LED点阵显示牌的设计与动态显示控制3.PDF
LED点阵显示牌的设计与动态显示控制3.PDF-q
- 2022-01-31 23:05:47下载
- 积分:1
-
super
超级马力的vc原代码,可以运行,模拟出了大部分原游戏的功能。-super-horsepower vc original code can run, simulating a majority of the indigenous game functions.
- 2023-01-17 00:00:03下载
- 积分:1
-
字模软件,LCD取摸程序,LED显示必备软件
字模软件,LCD取摸程序,LED显示必备软件-Matrix software, LCD touch access procedures, LED display the necessary software
- 2023-04-06 02:50:03下载
- 积分:1
-
for beginners of adaboost
for beginners of adaboost
- 2022-10-23 11:45:04下载
- 积分:1
-
基于C语言仿真 LDPC编解码仿真程序,希望对各位有用
基于C语言仿真 LDPC编解码仿真程序,希望对各位有用-Based on the C language simulation LDPC codec simulation program, in the hope that useful
- 2022-07-26 02:50:48下载
- 积分:1
-
实现最小编辑距离算法,并给出完整的编辑过程,完整版源码,已调试通过...
实现最小编辑距离算法,并给出完整的编辑过程,完整版源码,已调试通过-To achieve the minimum edit distance algorithm, and gives the complete editing process, full version of source code, has been debugging through the
- 2022-03-19 12:00:15下载
- 积分:1
-
只想下载 只想下载 只想下载
只想下载 只想下载 只想下载 -Just want to download just want to download just want to download just want to download just want to download just want to download
- 2022-08-16 01:04:08下载
- 积分:1