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
Yacc說(shuō)明及使用文檔 yacc(Yet Another Compiler Compiler),是Unix/Linux上一個(gè)用來(lái)生成編譯器的編譯器(編譯器代碼生成器)。yacc生成的編譯器主要是用C語(yǔ)言寫(xiě)成的語(yǔ)法解析器(Parser),需要與詞法解析器Lex一起使用,再把兩部份產(chǎn)生出來(lái)的C程序一併編譯。yacc本來(lái)只在Unix系統(tǒng)上才有,但現(xiàn)時(shí)已普遍移植往Windows及其他平臺(tái)。
標(biāo)簽: Compiler Another Yacc yacc
上傳時(shí)間: 2016-01-26
上傳用戶(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
本書(shū)分為上篇、中篇和下篇三個(gè)部分,上篇為Windows CE結(jié)構(gòu)分析,中篇為Windows CE情景分析,下篇為實(shí)驗(yàn)手冊(cè)。每一篇又劃分為若 干章。上篇包含有引言,Windows CE體系結(jié)構(gòu),處理 器排程,儲(chǔ)存管理 ,檔案系統(tǒng)和設(shè)備管理 等六 章。中篇包含有系統(tǒng)初始化,處理 器排程過(guò)程,分頁(yè)處理 ,檔案處理 和驅(qū)動(dòng)器載入等五章。下篇包含有Windows CE應(yīng)用程式開(kāi)發(fā),Windows CE系統(tǒng)開(kāi)發(fā),評(píng)測(cè)與總結(jié)以及實(shí)習(xí)等四章。 上篇的重點(diǎn)在於分析Windows CE kernel的結(jié)構(gòu)以及工作原理 。這個(gè)部分是掌握Windows CE作業(yè)系統(tǒng)的基礎(chǔ)。 中篇重點(diǎn)在於分析Windows CE kernel的實(shí)際運(yùn)行 過(guò)程。如果說 上篇是從靜態(tài)的角度 分析Windows CE kernel,那麼中篇?jiǎng)t是試圖從動(dòng)態(tài)的角度 給讀 者一個(gè)有關(guān)Windows CE kernel的描述。希望讀 者能夠通過(guò)對(duì)中篇的閱讀 理 解,在頭腦中形成有關(guān)Windows CE kernel的多方位的運(yùn)作情景。 下篇著重於有關(guān)Windows CE的應(yīng)用。對(duì)理 論 的掌握最終要應(yīng)用到實(shí)務(wù)中。
標(biāo)簽: 分
上傳時(shí)間: 2013-12-23
上傳用戶(hù):FreeSky
sigma-delta ADC轉(zhuǎn)換之matlab模型,整個(gè)系統(tǒng)都可模擬。
標(biāo)簽: sigma-delta matlab ADC 模型
上傳時(shí)間: 2014-01-24
上傳用戶(hù):xjz632
一、程式名稱(chēng):embed.java 二、程式功能:藏入數(shù)位浮水印處理程式 四、輸入檔(資料)格式: 1.本程式所採(cǎi)用之影像格式皆為*.raw之灰階影像。 2.本程式採(cǎi)用的浮水印格式為128×128之灰階影像ccu.raw。 3.本程式所採(cǎi)用的原始影像格式為512×512 之灰階影像Lena.raw。 五、輸出檔(資料)格式: 1.本程式輸出的藏入浮水印影像格式為512×512 之灰階影像Lena2.raw。 六、執(zhí)行環(huán)境: 1.系統(tǒng):Windows 98/ME/2000。 2.軟體:JavaTM 2 SDK (Version 1.3)。 七、執(zhí)行方式: 1.在DOS環(huán)境下執(zhí)行embed.java,指令如下:java embed。
上傳時(shí)間: 2016-03-24
上傳用戶(hù):tzl1975
uC/OS-II是源碼公開(kāi)的實(shí)時(shí)嵌入式內(nèi)核,其性能完全可以與商業(yè)產(chǎn)品競(jìng)爭(zhēng)。自1992年以來(lái),全世界成千上萬(wàn)的開(kāi)發(fā)者已經(jīng)成功地將uC/OS-II應(yīng)用於各種系統(tǒng)。此份即為 uCOS-II 2.8源碼
上傳時(shí)間: 2013-11-25
上傳用戶(hù):2404
linux下的BBS,使用BBS CACHE,使得mem消耗很低。 天火系統(tǒng)的特點(diǎn): 1. 統(tǒng)一物件型態(tài)設(shè)計(jì),讓各種東西都可以在我的最?lèi)?ài)出現(xiàn)。 2. 統(tǒng)一各狀態(tài)間的功能鍵。( 程式執(zhí)行過(guò)程只 "程式狀態(tài)" "物件型態(tài)" 來(lái)判定動(dòng)作 )。 3. 內(nèi)建各種系統(tǒng)(POP3/SMTP/NNTP/..),未來(lái)只需要執(zhí)行單一程式,就會(huì)擁有各種功能。 4. 每個(gè)人都可以簡(jiǎn)單設(shè)定個(gè)人板。 5. 未來(lái)任兩個(gè) BBS 間都可以透過(guò)帳號(hào)作某一種程度的同步(Sync)。 6. 使用 pthread 設(shè)計(jì),並且儘量遵守 POSIX ,達(dá)到簡(jiǎn)單移植到任何系統(tǒng)的目的。 7. 速度快 不使用 signal/shm/sem ,每個(gè) client 上來(lái)只吃 50k 不到的記憶體。 8. 朝無(wú)站長(zhǎng)系統(tǒng)目標(biāo)設(shè)計(jì)。
上傳時(shí)間: 2014-01-24
上傳用戶(hù):515414293
在GIS領(lǐng)域中,目前正有一新興的架構(gòu)模式產(chǎn)生,此架構(gòu)改變了GIS處理圖資的方式,此架構(gòu)模式稱(chēng)為DGIS(Distributed GIS-分散式地理資訊系統(tǒng))。DGIS將傳統(tǒng)桌上型單機(jī)作業(yè)之GIS概念延伸至網(wǎng)際網(wǎng)路(Web)之解決方案上,以能符合現(xiàn)行系統(tǒng)圖資處理之需求。而此種以分散式概念延伸至網(wǎng)際網(wǎng)路的架構(gòu)稱(chēng)之為網(wǎng)際網(wǎng)路地理資訊系統(tǒng)(WebGIS或Internet GIS)。
標(biāo)簽: GIS
上傳時(shí)間: 2014-01-17
上傳用戶(hù):dongbaobao
產(chǎn)生頻率選擇性衰落的雷利通道,參數(shù)由天線結(jié)構(gòu)、OFDM系統(tǒng)的結(jié)構(gòu)與功率延時(shí)結(jié)構(gòu)來(lái)決定。
標(biāo)簽:
上傳時(shí)間: 2014-12-20
上傳用戶(hù):lizhizheng88
蟲(chóng)蟲(chóng)下載站版權(quán)所有 京ICP備2021023401號(hào)-1