-
一:需求分析
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
-
container class and the realization of the definition, because the need for the...
容器类的实现和定义,由于使用迭代器需 要关于STL容器类和算法的知识,-container class and the realization of the definition, because the need for the use of iterative STL containers on the type and algorithms knowledge,
- 2022-03-14 09:50:30下载
- 积分:1
-
地表的fishn额头
地表的fishn额头-surface fishn forehead
- 2022-01-31 10:23:11下载
- 积分:1
-
this also t he beginners and teach you how to learn to parent and sub
这个也是给初学者的,教你怎么给学习父类和子类,多多支持-this also t he beginners and teach you how to learn to parent and sub-categories, for their support! !
- 2023-03-06 22:10:03下载
- 积分:1
-
Hopfield网络是一种典型的单层反馈网络,这种网络可以分为离散型和连续型两种,Hopfield网络是一个动力学系统,在确定连接权重后,若输入某个向量之后,网...
Hopfield网络是一种典型的单层反馈网络,这种网络可以分为离散型和连续型两种,Hopfield网络是一个动力学系统,在确定连接权重后,若输入某个向量之后,网络将不断演化,一般情况下系统将趋向某一个定态,称为状态空间的不动点吸引子。-Hopfield network is a typical single-layer feedback network, Such networks can be divided into discrete and continuous two, the Hopfield network is a dynamic system, In determining the weights link, and if the importation of a certain vector, the network will continue to evolve Under normal circumstances a system will tend to a steady state, as the state space of fixed point attractor.
- 2023-03-07 16:15:03下载
- 积分:1
-
一个小日记本的程序
挺好用的,试一试,大家参考参考
一个小日记本的程序
挺好用的,试一试,大家参考参考-a small diary of this process is very good to use, try your information.
- 2023-02-18 02:10:03下载
- 积分:1
-
c++小程序,入门学习的,可能对大家有用~!
c++小程序,入门学习的,可能对大家有用~!-c++ small procedures, entry of the study may be useful to everyone ~!
- 2022-05-13 07:00:47下载
- 积分:1
-
sc2440原理图和PCB封装图 好用哦
sc2440原理图和PCB封装图 好用哦-sc2440 schematic and PCB-to-use package plans Oh
- 2022-03-17 13:05:19下载
- 积分:1
-
一直感觉Windows自带的扫雷程序挺有意思的。学习VC也有很长的时间了,一直没有真正的用心作过什么东西。决定先做个扫雷练练手。由于对MFC掌握的不是很好,程序...
一直感觉Windows自带的扫雷程序挺有意思的。学习VC也有很长的时间了,一直没有真正的用心作过什么东西。决定先做个扫雷练练手。由于对MFC掌握的不是很好,程序中的小臭虫还希望各位兄弟们多多指教,共同进步。-have been feeling the Windows demining process quite interesting. Learning VC have very long period of time, has no real intentions over nothing. Decided to become a mine to practice hand. As master of the MFC is not very good procedure for the small bugs also hope you brothers exhibitions, and common progress.
- 2022-12-19 15:35:03下载
- 积分:1
-
双人竞走游戏是一个在turboC2环境下编写的小游戏,该游戏是一个双人玩的策略游戏...
双人竞走游戏是一个在turboC2环境下编写的小游戏,该游戏是一个双人玩的策略游戏-double game is a walk in turboC2 environment prepared by the small game, the game is playing a double game strategy.
- 2023-05-27 18:45:03下载
- 积分:1