一:需求分析 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
大學(xué)本科的課程設(shè)計(jì),源碼統(tǒng)計(jì)器,主要用來(lái)統(tǒng)計(jì)源程序類(lèi)型,總代碼行數(shù),注釋行數(shù)等,可適用于C,C++,Java語(yǔ)言。
標(biāo)簽: 大學(xué)
上傳時(shí)間: 2014-07-02
上傳用戶(hù):lizhen9880
灰色預(yù)測(cè)GM(1,1)模型的matlab源代碼,包括預(yù)測(cè)模型的建立,以及模型的精度檢驗(yàn)指標(biāo)c,p的計(jì)算
標(biāo)簽: 灰色預(yù)測(cè)
上傳時(shí)間: 2013-12-19
上傳用戶(hù):vodssv
We have a group of N items (represented by integers from 1 to N), and we know that there is some total order defined for these items. You may assume that no two elements will be equal (for all a, b: a<b or b<a). However, it is expensive to compare two items. Your task is to make a number of comparisons, and then output the sorted order. The cost of determining if a < b is given by the bth integer of element a of costs (space delimited), which is the same as the ath integer of element b. Naturally, you will be judged on the total cost of the comparisons you make before outputting the sorted order. If your order is incorrect, you will receive a 0. Otherwise, your score will be opt/cost, where opt is the best cost anyone has achieved and cost is the total cost of the comparisons you make (so your score for a test case will be between 0 and 1). Your score for the problem will simply be the sum of your scores for the individual test cases.
標(biāo)簽: represented integers group items
上傳時(shí)間: 2016-01-17
上傳用戶(hù):jeffery
偽色彩基于灰度,逆灰度,黃色,熱金屬,彩虹等的編碼方案,c#寫(xiě)的,很難找的。
上傳時(shí)間: 2016-01-29
上傳用戶(hù):王者A
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
openssl是一個(gè)功能豐富且自包含的開(kāi)源安全工具箱。它提供的主要功能有:SSL協(xié)議實(shí)現(xiàn)(包括SSLv2、SSLv3和TLSv1)、大量軟算法(對(duì)稱(chēng)/非對(duì)稱(chēng)/摘要)、大數(shù)運(yùn)算、非對(duì)稱(chēng)算法密鑰生成、ASN.1編解碼庫(kù)、證書(shū)請(qǐng)求(PKCS10)編解碼、數(shù)字證書(shū)編解碼、CRL編解碼、OCSP協(xié)議、數(shù)字證書(shū)驗(yàn)證、PKCS7標(biāo)準(zhǔn)實(shí)現(xiàn)和PKCS12個(gè)人數(shù)字證書(shū)格式實(shí)現(xiàn)等功能。 openssl采用C語(yǔ)言作為開(kāi)發(fā)語(yǔ)言,這使得它具有優(yōu)秀的跨平臺(tái)性能。openssl支持Linux、UNIX、windows、Mac等平臺(tái)。openssl目前最新的版本是0.9.8e.
標(biāo)簽: openssl SSLv2 SSLv3 TLSv1
上傳時(shí)間: 2013-12-01
上傳用戶(hù):問(wèn)題問(wèn)題
我們實(shí)驗(yàn)室智能小車(chē)源碼,含PID算法等。當(dāng)然只是一個(gè)C文件而已,沒(méi)有工程,只是提供給大家一個(gè)參考
標(biāo)簽: 實(shí)驗(yàn)室 智能小車(chē) 源碼
上傳時(shí)間: 2016-09-07
上傳用戶(hù):dapangxie
針對(duì)一款時(shí)鐘的源代碼程序,實(shí)現(xiàn)時(shí)鐘控制等功能,led display c
上傳時(shí)間: 2016-11-08
上傳用戶(hù):1427796291
12232,DS18B20等顯示程序,是C語(yǔ)言的,但愿有用!
標(biāo)簽: 12232
上傳時(shí)間: 2016-11-16
上傳用戶(hù):2525775
蟲(chóng)蟲(chóng)下載站版權(quán)所有 京ICP備2021023401號(hào)-1