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
本書分為上篇、中篇和下篇三個部分,上篇為Windows CE結構分析,中篇為Windows CE情景分析,下篇為實驗手冊。每一篇又劃分為若 干章。上篇包含有引言,Windows CE體系結構,處理 器排程,儲存管理 ,檔案系統和設備管理 等六 章。中篇包含有系統初始化,處理 器排程過程,分頁處理 ,檔案處理 和驅動器載入等五章。下篇包含有Windows CE應用程式開發,Windows CE系統開發,評測與總結以及實習等四章。 上篇的重點在於分析Windows CE kernel的結構以及工作原理 。這個部分是掌握Windows CE作業系統的基礎。 中篇重點在於分析Windows CE kernel的實際運行 過程。如果說 上篇是從靜態的角度 分析Windows CE kernel,那麼中篇則是試圖從動態的角度 給讀 者一個有關Windows CE kernel的描述。希望讀 者能夠通過對中篇的閱讀 理 解,在頭腦中形成有關Windows CE kernel的多方位的運作情景。 下篇著重於有關Windows CE的應用。對理 論 的掌握最終要應用到實務中。
標簽: 分
上傳時間: 2013-12-23
上傳用戶:FreeSky
*** *** *** *** *** *** *** *** * RTL8019測試程式說明 By hugang, hgx2000@mail.china.com ************************************************* 1.文件說明 Net : Rtl8019驅動代碼 Src : 主程式代碼 Inc : 主程式的頭文件 Debug : SDT目標代碼 Myusb_Data : ADS目標代碼 Myusb.apj : SDT2.51工程文件 Myusb.mcp : ADS1.2工程文件 Myusb.PR : SourceInsight3.5工程文件
上傳時間: 2014-11-23
上傳用戶:jichenxi0730
*** *** *** *** *** *** *** *** * USB測試程式說明 By hugang, hgx2000@mail.china.com ************************************************* 1.文件說明 Usb : PDIUSB12驅動代碼 Src : 主程式代碼 Inc : 主程式的頭文件 Debug : SDT目標代碼 Myusb_Data : ADS目標代碼 Tools : PC端測試程式及驅動 Myusb.apj : SDT2.51工程文件 Myusb.mcp : ADS1.2工程文件 Myusb.PR : SourceInsight3.5工程文件
上傳時間: 2016-04-09
上傳用戶:cainaifa
通過單片機按鍵選擇輸出信號類型及要求輸出量,在LED顯示器件上指示信號類型及設定數值.系統工作電源±15V , ±5V 。恒流電流輸出0.0~8.0mA, 負載電阻≤500Ω。3. 穩壓電壓輸出0.0~5.0V,電流負載能力≤100mA.電壓及電流輸出在充許負載范圍內誤差小于5%FS。電壓及電流輸出須共用一個輸出正端, 輸出負端為地。輸出電壓及電流設定精確到二位十進制數。
上傳時間: 2016-06-03
上傳用戶:wendy15
MCP73831 是一款高級線性充電管理控制器,它適用于 空間小而對成本敏感的應用場合。MCP73831 提供 8 引 腳2 mm x 3 mm DFN 和5 引腳SOT23 兩種封裝形式。 由于體積小且外接元件少,MCP73831 非常適用于便攜 式設備。MCP73831 也可用于USB 充電設備,它符合 主流USB 總線電源的所有規范。 MCP73831 采用恒流/ 恒壓充電算法,并提供預充選項 和充電結束控制選項。恒壓充電調節有四個選擇: 4.20V、4.35V、 4.40V 和4.50V,這可以適應最新涌現 出來的電池充電要求。恒流充電電流由一個外部電阻設 定。在高功率或高溫的外界環境下, MCP73831 將根據 管芯溫度對充電電流大小進行限制。熱調節功能對充電 周期進行優化,并維持器件的可靠性。
上傳時間: 2016-09-26
上傳用戶:myworkpost
一個100v,60W的實用的開關電源,帶有恒流恒壓功能
上傳時間: 2016-10-08
上傳用戶:ywqaxiwang
VFD-A 內部的參數資料可使用內部 RS-485 串聯通訊介面,設定及修改並可控制交流電機驅動 器運轉及監測交流電機驅動器的運轉狀態,可提高自動化的能力。
上傳時間: 2013-12-24
上傳用戶:invtnewer
此源代碼程序為三色LED燈板PWM 控制程序,實現多路LED燈恒流控制。
上傳時間: 2014-01-16
上傳用戶:youlongjian0