一:需求分析 1. 問(wèn)題描述 魔王總是使用自己的一種非常精練而抽象的語(yǔ)言講話(huà),沒(méi)人能聽(tīng)懂,但他的語(yǔ)言是可逐步解釋成人能聽(tīng)懂的語(yǔ)言,因?yàn)樗恼Z(yǔ)言是由以下兩種形式的規(guī)則由人的語(yǔ)言逐步抽象上去的: ----------------------------------------------------------- (1) a---> (B1)(B2)....(Bm) (2)[(op1)(p2)...(pn)]---->[o(pn)][o(p(n-1))].....[o(p1)o] ----------------------------------------------------------- 在這兩種形式中,從左到右均表示解釋.試寫(xiě)一個(gè)魔王語(yǔ)言的解釋系統(tǒng),把 他的話(huà)解釋成人能聽(tīng)得懂的話(huà). 2. 基本要求: 用下述兩條具體規(guī)則和上述規(guī)則形式(2)實(shí)現(xiàn).設(shè)大寫(xiě)字母表示魔王語(yǔ)言的詞匯 小寫(xiě)字母表示人的語(yǔ)言的詞匯 希臘字母表示可以用大寫(xiě)字母或小寫(xiě)字母代換的變量.魔王語(yǔ)言可含人的詞匯. (1) B --> tAdA (2) A --> sae 3. 測(cè)試數(shù)據(jù): B(ehnxgz)B 解釋成 tsaedsaeezegexenehetsaedsae若將小寫(xiě)字母與漢字建立下表所示的對(duì)應(yīng)關(guān)系,則魔王說(shuō)的話(huà)是:"天上一只鵝地上一只鵝鵝追鵝趕鵝下鵝蛋鵝恨鵝天上一只鵝地上一只鵝". | t | d | s | a | e | z | g | x | n | h | | 天 | 地 | 上 | 一只| 鵝 | 追 | 趕 | 下 | 蛋 | 恨 |
上傳時(shí)間: 2014-12-02
上傳用戶(hù):jkhjkh1982
FuncPlotter is a combined Java application and applet for displaying two-dimensional plots of explicit functions in one variable (ie, FuncPlotter plots functions of the form y = f(x), where f(x) is composed from common mathematical operators).
標(biāo)簽: two-dimensional FuncPlotter application displaying
上傳時(shí)間: 2015-12-16
上傳用戶(hù):妄想演繹師
The Bad Beginning: A Terrible Tale Do you enjoy happy endings? If so, The Bad Beginning by Lemony Snicket is a book you’ll want to avoid. This is a story with a bad beginning, a bad middle and a bad ending. Why would anyone want to read such a thoroughly bad book? It’s all in good fun!
標(biāo)簽: Beginning The Bad Terrible
上傳時(shí)間: 2013-12-28
上傳用戶(hù):笨小孩
The XML Toolbox converts MATLAB data types (such as double, char, struct, complex, sparse, logical) of any level of nesting to XML format and vice versa. For example, >> project.name = MyProject >> project.id = 1234 >> project.param.a = 3.1415 >> project.param.b = 42 becomes with str=xml_format(project, off ) "<project> <name>MyProject</name> <id>1234</id> <param> <a>3.1415</a> <b>42</b> </param> </project>" On the other hand, if an XML string XStr is given, this can be converted easily to a MATLAB data type or structure V with the command V=xml_parse(XStr).
標(biāo)簽: converts Toolbox complex logical
上傳時(shí)間: 2016-02-12
上傳用戶(hù):a673761058
神經(jīng)網(wǎng)絡(luò)工具箱,包含SVM和NPA、"one-against-all" 、"one-against-one" 算法,有大量的例子。
標(biāo)簽: 神經(jīng)網(wǎng)絡(luò) 工具箱
上傳時(shí)間: 2016-04-23
上傳用戶(hù):xhz1993
GNU ccScript is a C++ class framework for creating a virtual machine execution system for use with and as a scripting/assembler language for state-transition driven realtime systems. The most common example of this is as the core of the scripting engine found in GNU Bayonne.
標(biāo)簽: framework for execution ccScript
上傳時(shí)間: 2013-12-18
上傳用戶(hù):sssl
Name Function --- --- --- --- --- --- Check_SST_39VF160 Check manufacturer and device ID CFI_Query CFI Query Entry/Exit command sequence Erase_Entire_Chip Erase the contents of the entire chip Erase_One_Sector Erase a sector of 2048 word Erase_One_Block Erase a block of 32K word Program_One_Word Alter data in one word Program_One_Sector Alter data in 2048 word sector Program_One_Block Alter data in 32K word block Check_Toggle_Ready End of internal program or erase detection using Toggle bit Check_Data_Polling End of internal program or erase detection using Data# polling
標(biāo)簽: manufacturer Check_SST Function CFI_Que
上傳時(shí)間: 2013-12-21
上傳用戶(hù):徐孺
漢諾塔!!! Simulate the movement of the Towers of Hanoi puzzle Bonus is possible for using animation eg. if n = 2 A→B A→C B→C if n = 3 A→C A→B C→B A→C B→A B→C A→C
標(biāo)簽: the animation Simulate movement
上傳時(shí)間: 2017-02-11
上傳用戶(hù):waizhang
Genetic Algorithm example using Java You have 10 cards numbered 1 to 10. You have to divide them into 2 piles so that: The sum of the first pile is as close as possible to 36 and the product of all in second pile is as close as poss to 360.
標(biāo)簽: have Algorithm You numbered
上傳時(shí)間: 2017-03-08
上傳用戶(hù):lacsx
This book brings together indispensable knowledge for building efficient, high-value, Linux-based embedded products: information that has never been assembled in one place before. Drawing on years of experience as an embedded Linux consultant and field application engineer, Christopher Hallinan offers solutions for the specific technical issues you re most likely to face, demonstrates how to build an effective embedded Linux environment, and shows how to use it as productively as possible.
標(biāo)簽: indispensable Linux-based high-value efficient
上傳時(shí)間: 2014-01-24
上傳用戶(hù):ANRAN
蟲(chóng)蟲(chóng)下載站版權(quán)所有 京ICP備2021023401號(hào)-1