一:需求分析 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 | | 天 | 地 | 上 | 一只| 鵝 | 追 | 趕 | 下 | 蛋 | 恨 |
上傳時間: 2014-12-02
上傳用戶:jkhjkh1982
用java編寫的用蝶式算法實現的fft,用來計算兩個多項式的乘積,輸入文件的格式如壓縮包中的data5.txt,結果輸出到result.txt中。
上傳時間: 2013-12-27
上傳用戶:waizhang
國外學生用matlab仿真OFDM的源碼,包含多種文件輸入格式
上傳時間: 2013-12-08
上傳用戶:lizhizheng88
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
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
award bios修改方法 1、解壓后進入dos,執行yzbat.bat(修改卡號,第一步必作) 2、用awdflash寫出bios文件并保存 3、用cbrom把yz.bin寫入bios文件,格式如:cbrom xxx.bin /isa yz.bin 4、用awdflash把bios文件寫入bios 注意:壓縮包內提供的cbrom適用于award4.51,award6.0的請用cbrom2.17。
上傳時間: 2014-01-20
上傳用戶:caiiicc
主要是修改了一些2.3.0版本的Bug,特別是當autoCommit=false的情況下以及多線程添加Document,有些字段打開了term-vector有些沒有打都會對索引數據造成破壞 autoCommit 選項是從2.2.0版本就添加了,默認是true,我對這個參數還不是很理解,都是用的默認值true。所以沒有碰到問題。 2.3.1版本沒有包含任何新的功能,索引文件的格式也沒有變化,完全兼容2.3.0版本。 官方鼓勵所有使用2.3.0版本的應用盡快升級到2.3.1版本。
上傳時間: 2013-12-16
上傳用戶:wkchong
用java編的一個聊天程序, 使用方法: 配置:配置文件的格式有點類似Apache 啟動服務器:在jws目錄下執行 StartServer.bat 關閉服務器:Ctrl+C
上傳時間: 2014-01-24
上傳用戶:開懷常笑
原名稱為ASPNET2AjaxMail,用戶可以在無刷新的Web環境使用該郵件系統,該系統的主頁面如代碼截圖所示。 主要功能如下: 發送郵件 發件箱 垃圾箱 標簽管理 組管理 過濾器 用戶管理 系統配置 修改密碼 默認登陸帳號/密碼:51aspx/51aspx DB_51aspx下為Sql數據庫文件(默認格式為Sql2005,Sql2000格式會盡快
標簽: ASPNET2AjaxMail
上傳時間: 2014-01-18
上傳用戶:壞天使kk
這是用粒子濾波算法進行視頻跟蹤的源程序 初始參數已近設好了,直接運行就可以了 有興趣的朋友可以吧它改成差幀定位 省的換個視頻就要手調一次參數 為了能運算快些 算法的核心代碼是用C++編的 用MEX文件轉化成dll數據 在matlab中調用的 希望對大家有所參考和幫助 也希望大家有好的想法,我們一起討論和改進 有 用粒子濾波進行視頻跟蹤現在國內做的還不多 需要改進的地方也很多 還需大家共同努力啊,哈哈 由于本人用的視頻太大,上傳了半天傳不上去,只有把視頻刪了 下了本程序的朋友,要自己找個視頻放到文件夾內 并在程序中吧讀視頻語句的文件名改成你所放視頻的文件名 比如你視頻的文件名是myvideo.avi,則程序中 video = myvideo.avi 注意視頻文件的格式一定要是.avi的哦
上傳時間: 2014-01-22
上傳用戶:guanliya