一:需求分析 1. 問題描述 魔王總是使用自己的一種非常精練而抽象的語言講話,沒人能聽懂,但他的語言是可逐步解釋成人能聽懂的語言,因為他的語言是由以下兩種形式的規(guī)則由人的語言逐步抽象上去的: ----------------------------------------------------------- (1) a---> (B1)(B2)....(Bm) (2)[(op1)(p2)...(pn)]---->[o(pn)][o(p(n-1))].....[o(p1)o] ----------------------------------------------------------- 在這兩種形式中,從左到右均表示解釋.試寫一個魔王語言的解釋系統(tǒng),把 他的話解釋成人能聽得懂的話. 2. 基本要求: 用下述兩條具體規(guī)則和上述規(guī)則形式(2)實現(xiàn).設(shè)大寫字母表示魔王語言的詞匯 小寫字母表示人的語言的詞匯 希臘字母表示可以用大寫字母或小寫字母代換的變量.魔王語言可含人的詞匯. (1) B --> tAdA (2) A --> sae 3. 測試數(shù)據(jù): B(ehnxgz)B 解釋成 tsaedsaeezegexenehetsaedsae若將小寫字母與漢字建立下表所示的對應(yīng)關(guān)系,則魔王說的話是:"天上一只鵝地上一只鵝鵝追鵝趕鵝下鵝蛋鵝恨鵝天上一只鵝地上一只鵝". | t | d | s | a | e | z | g | x | n | h | | 天 | 地 | 上 | 一只| 鵝 | 追 | 趕 | 下 | 蛋 | 恨 |
上傳時間: 2014-12-02
上傳用戶:jkhjkh1982
上窮碧落下黃泉 - 源碼追蹤經(jīng)驗談 (PDF 繁體中文 26頁) 侯捷觀點 剖析名家源碼,是讓自己技術(shù)躍升的捷徑。但是大系統(tǒng)的源碼非常龐大(Unix, Linux, Java, STL, MFC, VCL, Qt...),閱讀要有閱讀的方法。本文從動機、對象、前提、書籍、態(tài)度、工具、方法、瓶頸、價值、附加價值等方向加以討論。
上傳時間: 2016-01-13
上傳用戶:cooran
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.
標簽: represented integers group items
上傳時間: 2016-01-17
上傳用戶:jeffery
《實戰(zhàn)C++ — 八個別具特色的實作經(jīng)驗》與目前市面㆖ 眾多C++ 書籍的最大不同,在於 本書既非基礎(chǔ)觀念之教㈻ 書籍,亦非開發(fā)工具之使用手冊,而是以「㆒ 章㆒ 專案」的方式, 從實際應(yīng)用面引領(lǐng)讀者領(lǐng)略C++。 本書是《The Art of C++》的㆗ 文譯本。原作者Herbert Schildt 是㆒ 位㈻ ㈲ 專精、著作等身的 IT 技術(shù)作家,其作品普遍獲得良好評價。
標簽: 12694
上傳時間: 2016-02-08
上傳用戶:894898248
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).
標簽: converts Toolbox complex logical
上傳時間: 2016-02-12
上傳用戶:a673761058
「新聞群聚」就是一項需要人力介入的新聞服務(wù),而為了使其更為自動化,我們將文件分群(document clustering)的技術(shù)應(yīng)用在新聞文件上,達到新聞分群(news clustering)的目的。
標簽:
上傳時間: 2014-01-24
上傳用戶:731140412
在室內(nèi)環(huán)境中可結(jié)合式子母機器人系統(tǒng),子機為一多功能平臺,可放置各種家庭所需之設(shè)備,而母機為一輪式機器人,經(jīng)由兩者的結(jié)合,可提供高機動性與多功能的服務(wù)。在結(jié)合的技術(shù)面,傳統(tǒng)的吸塵器機器人與充電站之間的導航系統(tǒng)使用紅外線感測作為依據(jù),當兩者間有障礙物阻擋時,紅外線感測器導航系統(tǒng)將會失效。因此本系統(tǒng)利用聲源方向做為機器人決定移動方向的依據(jù),由於聲波傳遞的特性,即使在有障礙物的情況下,依然可以有效地偵測。此外,在移動的過程中,本系統(tǒng)利用光流偵測法判斷是否遭遇障礙物或是利用Support Vector Machine分類判斷與聲源之間為是否有障礙物的阻隔;若發(fā)現(xiàn)前方有障礙物,則啟動避障策略,用有效的方式繼續(xù)往目標移動。最後,當母機接近子機時,可根據(jù)多種紅外線感測器資訊進行子母機器人的結(jié)合,結(jié)合成功後,母機將可搭載子機成為一自由行動之機器人。
標簽: 系統(tǒng)
上傳時間: 2013-12-19
上傳用戶:mhp0114
㆒ 般㆟ 對 C++ templates 的粗淺印象,大約停留在「容器(containers)」的製作㆖ 。稍有研究 則會發(fā)現(xiàn),templates衍生出來的 C++ Generic Programming(泛型編程)技術(shù),在 C++ 標準程 式庫㆗ 已經(jīng)遍㆞ 開花結(jié)果。以 STL為重要骨幹的 C++ 標準程式庫,將 templates 廣泛運用於容 器 (containers) 、演算法 (algorithms) 、仿函式 (functors) 、配接器 (adapters) 、配置器 (allocators) 、 迭代器(iterators)㆖ 頭,無處不在,無役不與,乃至於原有的 class-based iostream都被改寫為 template-based iostream。
上傳時間: 2016-10-28
上傳用戶:rocwangdp
在 Java EE 的藍圖中,JSP Servlet是屬於Web層技術(shù),JSP與Servlet是一體的兩面,您可以使用單獨一項技術(shù)來解決動態(tài)網(wǎng)頁呈現(xiàn)的需求,但最好的方式是取兩者的長處,JSP是網(wǎng)頁設(shè)計人員導向的,而Servlet是程式設(shè)計人員導向的,釐清它們之間的職責可以讓兩個不同專長的團隊彼此合作,並降低相互間的牽制作用。
上傳時間: 2016-11-15
上傳用戶:sxdtlqqjl
關(guān)於圖像壓縮的,融入了Huffman編碼,Shannon-Fano編碼等技術(shù)!
標簽:
上傳時間: 2013-12-19
上傳用戶:康郎
蟲蟲下載站版權(quán)所有 京ICP備2021023401號-1