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
上傳時間: 2016-01-17
上傳用戶:jeffery
徑向基底函數(shù)類神經(jīng)網(wǎng)路,是單隱藏層的3層前向網(wǎng)路,模擬人腦中局部調(diào)整,有很好的逼近能力
標(biāo)簽:
上傳時間: 2014-01-15
上傳用戶:wanghui2438
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
上傳時間: 2016-02-12
上傳用戶:a673761058
sigma-delta ADC轉(zhuǎn)換之matlab模型,整個系統(tǒng)都可模擬。
標(biāo)簽: sigma-delta matlab ADC 模型
上傳時間: 2014-01-24
上傳用戶:xjz632
SPI(serial port interface)的Verilog/VHDL源代碼,已模擬並驗證。
標(biāo)簽: interface Verilog serial port
上傳時間: 2016-03-07
上傳用戶:jichenxi0730
使用C#程式語言開發(fā),並執(zhí)行於.NET Framework下;是研習(xí)「蟻拓尋優(yōu)法」不可或缺的軟體工具。系統(tǒng)使用ACO (Ant Colony Optimization)演算公式模擬螞蟻的覓食行徑抉擇。使用者可以設(shè)定費(fèi)洛蒙和食物氣味強(qiáng)度等相關(guān)參數(shù)以及動態(tài)設(shè)定障礙物的位置和形狀,研習(xí)螞蟻覓食的最短路徑形成過程。研習(xí)各種參數(shù)設(shè)定對螞蟻覓食行為的影響,了解費(fèi)落蒙機(jī)制對蟻拓尋優(yōu)化法的影響。本系統(tǒng)可支援柔性計算教學(xué),研習(xí)蟻拓優(yōu)化法中人工螞蟻的隨機(jī)搜尋模式和啟發(fā)式法則設(shè)計原理。
標(biāo)簽: 程式
上傳時間: 2013-12-24
上傳用戶:anng
本文是以數(shù)位訊號處理器DSP(Digital Singal Processor)之核心架構(gòu)為主體的數(shù)位式溫度控制器開發(fā),而其主要分為硬體電路與軟體程式兩部分來完成。而就硬體電路來看分為量測電路模組、DSP周邊電路及RS232通訊模組、輸出模組三個部分,其中在輸出上可分為電流輸出、電壓輸出以及binary command給加熱驅(qū)動裝置, RS232 除了可以與PC聯(lián)絡(luò)外也可以與具有CPU的熱能驅(qū)動器做命令傳輸。在計畫中分析現(xiàn)有工業(yè)用加熱驅(qū)動裝置和溫度曲線的關(guān)係,並瞭解其控制情況。軟體方面即是溫控器之中央處理器程式,亦即DSP控制程式,其中包括控制理論、感測器線性轉(zhuǎn)換程式、I/O介面及通訊協(xié)定相關(guān)程式。在控制法則上,提出一個新的加熱體描述模型,然後以前饋控制為主並輔以PID控制,得到不錯的控制結(jié)果。
標(biāo)簽: Processor Digital Singal DSP
上傳時間: 2013-12-24
上傳用戶:zjf3110
漢諾塔!!! 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
上傳時間: 2017-02-11
上傳用戶:waizhang
[Flash煙冒效果] Flash 8 後版本適用,利用新增濾鏡功能模擬煙冒效果。
上傳時間: 2017-02-28
上傳用戶:yulg
Verilog HDL的程式,上網(wǎng)找到SPI程式, vspi.v這程式相當(dāng)好用可用來接收與傳送SPI,並且寫了一個傳輸信號測試,spidatasent.v這程式就是傳送的資料,分別為00 66... 01 77...... 02 55這樣的資料,並透過MAX+PULS II軟體進(jìn)行模擬,而最外層的程式是test_createspi.v!
上傳時間: 2017-03-06
上傳用戶:onewq
蟲蟲下載站版權(quán)所有 京ICP備2021023401號-1