-
一:需求分析
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
-
一款仿真软件的使用说明以及具体的操作步骤
一款仿真软件的使用说明以及具体的操作步骤-A simulation software instructions as well as specific steps. . . .
- 2022-01-26 07:51:19下载
- 积分:1
-
autolisp
CAD中数字文本自动求和小程序
自动过滤出数字文本并求和...
autolisp
CAD中数字文本自动求和小程序
自动过滤出数字文本并求和-Digital autolispCAD Automatic Text Sum applet automatically filter out the digital text and summation
- 2022-07-10 13:49:59下载
- 积分:1
-
这是数据库的教程,是某重点大学的非常专业的讲稿,
这是数据库的教程,是某重点大学的非常专业的讲稿,-This is the Directory database is a key university in a very professional script,
- 2022-03-16 21:58:42下载
- 积分:1
-
PENMAN公式,计算潜在蒸散用,是气象、水文等专业常用程序
PENMAN公式,计算潜在蒸散用,是气象、水文等专业常用程序-Penman formula to calculate potential evapotranspiration, and is the meteorological, hydrological and other specialized procedures commonly used
- 2022-08-19 00:37:19下载
- 积分:1
-
摄像机标定程序:用MATLAB语言编写,主程序是张…
摄像机标定程序:用matlab语言编写,zhang是主程序,请参考test以了解调用的方法-camera calibration procedures : using Matlab language, the main program is zhang, Please refer to test to find out the calling method
- 2022-05-19 19:42:18下载
- 积分:1
-
This code for tcp communications procedures, mainly from one client to send data...
此代码为tcp通信程序,主要是从客户端发送一数据,然后在在服务器段接收。-This code for tcp communications procedures, mainly from one client to send data, and then the server receives paragraph.
- 2023-09-07 06:20:03下载
- 积分:1
-
一个模拟程序,起飞和降落的机场,飞机运动的作用。
一个模拟飞机场升降的程序,飞机的升降数目符合泊松分布-A simulation program taking off and landing airport, aircraft movements is in accordance with Poisson distribution
- 2022-03-01 13:29:53下载
- 积分:1
-
The code used to calculate the band TVI values, the code from the operating proc...
该代码用于计算波段的TVI值,该代码来源于作业程序,属于实验程序-The code used to calculate the band TVI values, the code from the operating procedures, an experimental procedure
- 2022-07-10 21:49:25下载
- 积分:1
-
VB进制转换子程序,各种进制转换都有,非常好用
VB进制转换子程序,各种进制转换都有,非常好用-VB hex conversion subroutines, all kinds of binary conversions are very easy to use
- 2023-08-16 23:30:04下载
- 积分:1