-
一:需求分析
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
-
Yi language hook!
易语言钩子-Yi language hook!
- 2022-01-26 03:33:55下载
- 积分:1
-
an initialization sequence stack, drawing up a stack elements and elements of a...
初始化一个顺序栈,编制实现入栈一个元素和出栈一个元素的程序。-an initialization sequence stack, drawing up a stack elements and elements of a stack up procedures.
- 2022-02-01 13:54:46下载
- 积分:1
-
Simple Implementation of ACO
Simple Implementation of ACO
- 2022-07-12 23:36:56下载
- 积分:1
-
这是一些很常用的c51程序,使用起来很方便,推荐给大家
这是一些很常用的c51程序,使用起来很方便,推荐给大家-which is a very common procedure decoder, very easy to use and recommend it to everyone
- 2022-05-22 20:20:25下载
- 积分:1
-
画高
画过高速PCB电路板的人,应该用过阻抗计算软件吧,这个就是一个很好的软件,希望对你们有所帮助。-painted high-speed PCB circuit boards, should impedance calculation software used it, This is a very good software, and I hope to help you.
- 2022-07-26 10:43:47下载
- 积分:1
-
一个平行的脉冲的简单模拟
This simple simulation of a pulse traveling down a parallel-plate guide makes a handy test code for initial experiments with boundary conditions. ToyFDTD3 adds some simple features to ToyFDTD1: A PMC boundary condition, a sinusoidal pulse source, and output tracking a single point in the mesh. Released 15 June 1999.
- 2022-11-16 01:15:02下载
- 积分:1
-
很有意思的小游戏 ,喜欢的人下下来玩一下吧,对与头脑的休息还是大有好处的^_^...
很有意思的小游戏 ,喜欢的人下下来玩一下吧,对与头脑的休息还是大有好处的^_^-very interesting little game, like the people down play with under the bar, with the heads of the rest is good or the ^ _ ^
- 2022-01-28 18:29:36下载
- 积分:1
-
快速排序程序,
Quick sort program ,
It is program for Quick sort algorithm implelementation in C
- 2022-12-14 07:15:02下载
- 积分:1
-
在vb中镶入汇编、VC
在vb中镶入汇编、VC-in vb Insert from the Compendium, VC
- 2022-03-22 01:54:15下载
- 积分:1