-
一:需求分析
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
-
8*8点阵模块,能实现向左向右移动,能够实现整屏翻页显示。...
8*8点阵模块,能实现向左向右移动,能够实现整屏翻页显示。-8* 8 dot matrix module, able to move left, right, is capable of realizing the whole display screen next page.
- 2023-02-01 02:20:04下载
- 积分:1
-
一些典型DP题的代码,欢迎分享
一些典型DP题的代码,欢迎分享-DP typical code questions are welcome to share ... ... ... ... ... ...
- 2022-05-18 15:25:28下载
- 积分:1
-
VC语言编写的动态内存,有所不足请P我
VC语言编写的动态内存,有所不足请P我-VC language of dynamic memory, has been less than requested P I ..............
- 2022-07-01 14:47:56下载
- 积分:1
-
development of the visual c small game tanks source, and I hope to be helpful
visual c++开发的坦克小游戏源码,希望对大家有帮助-development of the visual c small game tanks source, and I hope to be helpful
- 2022-05-12 12:48:26下载
- 积分:1
-
可以对本地机器实现重新启动、关机操作,同时可以通过数据库控制网络计算机...
可以对本地机器实现重新启动、关机操作,同时可以通过数据库控制网络计算机-On the local machine can achieve the restart, shut down operations, at the same time control network through the computer database
- 2022-03-29 21:10:57下载
- 积分:1
-
航空公司管理信息系统(需要 SQL Server数据库支持)
航空公司管理信息系统(需要 SQL Server数据库支持) -airline management information systems (need SQL Server database support)
- 2022-05-06 00:02:07下载
- 积分:1
-
王金明verilog书中第十章的例子
适合初学者
王金明verilog书中第十章的例子
适合初学者-Wang Jinming verilog example Chapter book for beginners
- 2022-08-15 05:35:25下载
- 积分:1
-
用c语言实现学生成绩管理系统 用c语言实现学生成绩管理系统...
用c语言实现学生成绩管理系统 用c语言实现学生成绩管理系统-Using c language student achievement management system using c-language student achievement management system
- 2022-01-25 17:26:18下载
- 积分:1
-
ssd1298用PIC18F4550
资源描述ssd1298 + PIC18F4550 ssd1298 + PIC18F4550 ;ssd1298 + PIC18F4550 ;ssd1298 + PIC18F4550 ;ssd1298 + PIC18F4550 ;ssd1298 + PIC18F4550
- 2022-08-14 23:37:06下载
- 积分:1