設有n種物品,每一種物品數量無限。第i種物品每件重量為wi公斤,每件價值ci元。現有一只可裝載重量為W公斤的背包,求各種物品應各取多少件放入背包,使背包中物品的價值最高。
標簽:
上傳時間: 2015-06-09
上傳用戶:牧羊人8920
MCRGSA------組播路由問題遺傳模擬退火算法 %M-----------遺傳算法進化代數 %N-----------種群規模,取偶數 %Pm----------變異概率調節參數 %K-----------同一溫度下狀態跳轉次數 %t0----------初始溫度 %alpha-------降溫系數 %beta--------濃度均衡系數 %ROUTES------備選路徑集 %Num---------到各節點的備選路徑數目 %Cost--------費用鄰接矩陣 %Source------源節點標號 %End---------目的節點標號組成的向量 %MBR---------各代最優路徑編碼
上傳時間: 2015-07-18
上傳用戶:363186
一個sms網關接口源碼,看了N天才看懂了,大家要珍惜呀!
上傳時間: 2014-01-18
上傳用戶:wangzhen1990
美國DALAS公司的溫度傳感器ds1820芯片具有高靈敏度、易用性、編程布線簡單等優點,被應用到工控行業的各種產品中。 本C51源碼能夠實現穩定的一線多點測溫系統,液晶顯示溫度值。結合硬件的通信即可實現遠程多點測溫。本c51的ds1820的c語言驅動程序通過實踐使用,程序效率高、穩定準確,可直接使用。 且本原碼包括了FYD12864液晶顯示源碼,為FYD12864液晶初使用者提供了一個實例。
上傳時間: 2014-01-12
上傳用戶:fredguo
R+樹的c實現源碼,對應文章T. K. Sellis, N. Roussopoulos, C. Faloutsos: The R+-Tree: A Dynamic Index for Multi-Dimensional Objects.
上傳時間: 2014-05-25
上傳用戶:sunjet
該源碼是一個問題的解決方法。問題是給你個長為L的串,串中可以出現n種字符,還給出m個子串,求有多少個長為n的只由這些字串組成的串。輸入例子:4 5 6 ABB BCA BCD CAB CDD DDA 結果為2.而5 4 5 E D C B A的結果為625
標簽: 源碼
上傳時間: 2014-01-12
上傳用戶:水中浮云
Web數據挖掘ID3算法源碼,使用C++語言編寫而成,具有高效性。
上傳時間: 2014-11-17
上傳用戶:tianyi223
Recite(一個輔助英語學習軟件源碼) 該程序的UI部分使用了WTL7.5。WTL7.5可以很容易的在微軟的官方網站找到,安裝也很簡單。 另外使用了BOOST庫中的部分內容。包括filesystem用于操作文件名和目錄,可以在( http://lunatic.bokee.com/5899788.html )找到更詳細的介紹。serialization用于將對象序列化在磁盤文件中。datetime用于做日期的計算。還用到了string algo做簡單的字符串操作。因此你需要從( http://www.boost.org )下載boost的最新版本1.33.1,并在本地編譯它。 配置文件的讀寫使用了TinyXML,源碼已經包含在源碼包中,無須另外下載。 整個程序的祼奔性相當好,不依賴于其他任何的DLL或COM庫,就一個EXE文件。 我的編程和調試環境為WindowsXP,Visual Studio .net 2003。 該軟件的目的及作用請參見( http://lunatic.bokee.com/6153131.html ) 使用方法( http://lunatic.bokee.com/6153160.html ) 相關的資源( http://lunatic.bokee.com/6153181.html )
上傳時間: 2015-09-19
上傳用戶:fxf126@126.com
Embest S3C44B0X Evaluation Board RTC Test Example RTC Check(Y/N)? y Set Default Time at 2004-12-31 FRI 23:59:59 Set Alarm Time at 2005-01-01 00:00:01 ... RTC Alarm Interrupt O.K. ... Current Time is 2005-01-01 SAT 00:00:01 RTC Working now. To set date(Y/N)? y Current date is (2005,01,01, SAT). input new date (yy-mm-dd w): 5-2-23 3 Current date is: 2005-02-23 WED RTC Working now. To set time(Y/N)? y Current time is (00:00:21). To set time(hh:mm:ss): 19:32:5 Current Time is 2005-02-23 WED 19:32:
標簽: Evaluation RTC S3C44B0X Default
上傳時間: 2014-01-03
上傳用戶:baiom
acm HDOJ 1051WoodenSticks Description: There is a pile of n wooden sticks. The length and weight of each stick are known in advance. The sticks are to be processed by a woodworking machine in one by one fashion. It needs some time, called setup time, for the machine to prepare processing a stick. The setup times are associated with cleaning operations and changing tools and shapes in the machine. The setup times of the woodworking machine are given as follows: (a) The setup time for the first wooden stick is 1 minute. (b) Right after processing a stick of length l and weight w , the machine will need no setup time for a stick of length l and weight w if l<=l and w<=w . Otherwise, it will need 1 minute for setup.
標簽: WoodenSticks Description length wooden
上傳時間: 2014-03-08
上傳用戶:netwolf