给定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