給定n個整數a , a , ,an 1 2 組成的序列。序列中元素i a 的符號定義為: ï î ï í ì - < = > = 1 0 0 0 1 0 sgn( ) i i i i a a a a 符號平衡問題要求給定序列的最長符號平衡段的長度L,即: þ ý ü î í ì = + - = å = £ £ £ max 1| sgn( ) 0 1 j k i i j n k L j i a 。 例如,當n=10,相應序列為:1,1,-1,-2,0,1,3,-1,2,-1 時,L=9。
上傳時間: 2015-10-28
上傳用戶:xaijhqx
//給定整數n,產生所有[2n]上的匹配(matching) //將其視為一個所有塊大小均為2的集合分拆 //以a_i表示其第i個元素所在的集合號 //輸出格式為 a1 a2 a3 ... //滿足 //a_{i+1} <= max { a1,a2,...a_i } + 1
標簽: 整數
上傳時間: 2014-01-18
上傳用戶:xieguodong1234
UCOS/II for ICCAVR - The version of UCOS/II is 2.04 - the original port was done by Ole Saether for the IAR compiler. Jens E. Holtegaard ported one version using ICCAVR. Joerg Meyer did another port (using Jens port as a start?). This is basically Joerg s port plus a little bit of changes and documentation by me. - YOU MUST DOWNLOAD THE MAIN PART OF THE UCOS/II FROM THE UCOS/II WEBSITE http://www.ucos-ii.com . The supplied project file assumes the portable source is in the ..\source directory. - Joerg has written couple document showing the stack frames etc. but it is in German :-) They are included in this directory. - The Timer2 overflow interrupt is used for Timer Tick. If you want to change that, modify os_cpu_c.c and os_cpu_a.s - I have tested this using ATMega103 with and without external RAM using AVR Studio simulator. See test1.c test program. Both Code Compressed (PRO) and STD versions have been tested.
標簽: UCOS original Saether version
上傳時間: 2015-11-14
上傳用戶:ippler8
設計一個程序,通過重載求兩個數中最大數的函數max(),分別實現求兩個實數和兩個整數以及兩個字符的最大數
標簽: 程序
上傳時間: 2014-01-24
上傳用戶:nanxia
量化程序,采用標準的Loyd-Max algorithm,提供了一個實例,并對結果進行了分析。很有學習的價值。
上傳時間: 2014-01-11
上傳用戶:天涯
所需軟件列表:(本配置以下列軟件版本完成) 1、 APACHE_2.0.47-win32-x86-no_ssl (Apache web服務器) 2、 PHP-4.3.3-Win32 (PHP語言解析器) 3、 MySQL-4.0.12-win (MySQL數據庫) 4、 j2sdk-1_4_2-windows-i586 (JAVA 語言環境) 5、 Jakarta-Tomcat-5.0.9 (Tomcat JSP解析服務器) 6、 Resin-3.0.3 (Resin JSP解析服務器) 7、 mod_jk_1.2.5_2.0.47.dll (整合Apache+Tomcat的plus) 8、 mm.mysql-2.0.4-bin.jar (JSP訪問連接MySQL文件)
上傳時間: 2014-01-11
上傳用戶:koulian
/*有一定數量total的撲克牌,現在兩個人甲乙用這些撲克牌玩一個游戲,兩人輪流從 撲克牌中為放回地拿出幾張撲克牌,每次最多拿max張,怎樣拿才能保證第一個拿牌 的人獲勝,本程序提供了一種方法,程序默認甲是第一個拿牌的人*/
標簽: total
上傳時間: 2016-02-15
上傳用戶:tzl1975
四位全加器,VHDL語言,max+plusII平臺做的
標簽: 全加器
上傳時間: 2016-02-17
上傳用戶:xz85592677
On Sunday, April 27, 2003, Fresno will celebrate Earth Day in downtown Fresno at Courthouse Park. The event will begin at noon. This year we will include music, speakers, and vendors, plus activities for children. Fresno Earth Day is recognized as the only Earth Day festival that happens in Fresno, and the largest in the Central Valley. The Fresno Earth Day Committee is a small group of environmental activists hoping to broaden the appeal of a better planet and environment. We are a non-profit organization whose fiscal fiduciary is the Fresno Center for Nonviolence.
標簽: Fresno Courthouse celebrate downtown
上傳時間: 2016-02-24
上傳用戶:cursor
MATLAB對11中調度算法進行比較,包括min-min、max-min、遺傳算法等等。
上傳時間: 2014-01-06
上傳用戶:lnnn30