-
2
说明: 有一个长度为整数L(1<=L<=10000)的马路,可以想象成数轴上长度为L的一个线段,起点是坐标原点,在每个整数坐标点有一棵树,即在0,1,2,...,L共L+1个位置上有L+1棵树。
现在要移走一些树,移走的树的区间用一对数字表示,如 100 200表示移走从100到200之间(包括端点)所有的树。
可能有M(1<=M<=100)个区间,区间之间可能有重叠。现在要求移走所有区间的树之后剩下的树的个数。
输入:
两个整数L(1<=L<=10000)和M(1<=M<=100)。
接下来有M组整数,每组有一对数字。
输出:
可能有多组输入数据,对于每组输入数据,输出一个数,表示移走所有区间的树之后剩下的树的个数。(Has a length of integer L (1 < = L < = 10000) of the road, one can imagine a number line segment of length L, the starting point is the coordinate origin, each integer coordinate points in a tree, i.e. 0,1 , 2, ..., L total has L+1 L+1 positions on the tree. Now to remove some trees, tree removed by a range of digitally represented, such as 100 200 represents removed (inclusive) between 100 and 200 all the trees. There may be M (1 < = M < = 100) intervals, there may be overlap between the intervals. Now, after the number of trees require the removal of all remaining sections of the tree. Input: two integer L (1 < = L < = 10000) and M (1 < = M < = 100). Then there is an integer M groups, each with a pair of numbers. Output: there may be multiple sets of input data, for each set of input data, the output of a number indicating the number of the removal of all remaining sections of the tree after tree.)
- 2015-03-22 23:35:47下载
- 积分:1
-
UsingMatlab
c#调用matlab函数进行动态画图的简单示例,只是进行了功能演示,界面很粗糙(c# call the matlab function dynamically drawing a simple example, just conducted a functional demonstration of the interface is very rough)
- 2010-11-20 11:26:12下载
- 积分:1
-
diagrameditor_docs
For MDI Applications. It will be helpful.
- 2014-09-27 13:28:30下载
- 积分:1
-
Link
LInk.c for ART2 development.
- 2014-11-22 02:50:02下载
- 积分:1
-
visualmatlabImageryprocessing
调试所用Matlab版本是6.5,gatbx-toolbox是调试过程中使用的工具箱,有些热心的研友已经提供了该工具箱,之所以再贴一遍,是因为6.5版本下调试该工具箱会出现一些错误提示,在该版本中已经进行了改正,使用该工具箱只需要将压缩包下的gatbx和gatbxTest_fns加入到Matlab搜索路径即可,另外gatbx-origin是Sheffield大学提供的原始版本的工具箱,未做任何改动,两者可做比较之用
3.gatbx-example是算例调试源码和各算例的调试说明,大家可以对照原书进行比较
4.窃以为gatbx工具箱较之Matlab7新版下的gads工具箱更能让人熟悉和了解遗传算法的原理和计算过程,虽然在可视化方面不及gads
5.学习遗传算法如果首先用熟相关工具箱的话,能够先培养信心,然后更有兴趣去专研和了解具体的算法,如果就用现有的工具箱就能解决问题的话,不了解其详细的算法也未尝不可,毕竟不是每个研友都能向see_moonlight那样开发自己的工具箱吧, ( The debugging uses the Matlab edition is 6.5, gatbx-toolbox debugs the toolbox which in the process uses, somewhat warm-hearted ground the friend already to provide this toolbox, the reason that pasted again, was because under 6.5 editions debugged this toolbox to be able to present some wrong prompts, had already carried on the correction in this edition, will use this toolbox only to need to compress package of under gatbx and gatbx Test_fns joins to the Matlab search path then, moreover gatbx-origin was the primitive edition toolbox which the Sheffield university provided, has not made any modification, both might make the comparison are the example debugging sound code and various examples debugging explained with
3.gatbx-example, everybody might compare the original bookCarries on comparison
4. in my opinion under the gatbx toolbox s to be able to let the human compared with Matlab7 update gads toolbox be familiar with the understanding genetic algorithm principle and)
- 2010-10-17 15:11:22下载
- 积分:1
-
matlab
matlab演化博弈模型及程序,对研究生来说是很有用处的(matlab evolutionary game model and procedures, it is useful to graduate)
- 2014-01-16 20:07:20下载
- 积分:1
-
tuxing123
着是一个MATLAB中的图形合并的程序,也有不完善的地方,请指教!(with MATLAB is a graphic merger procedures have imperfections, please enlighten! Thank you)
- 2007-01-28 17:47:25下载
- 积分:1
-
channelcomputer
一个链路计算的程序,很适用,VC调用matlab(A link calculation procedures, it is applicable, VC call matlab)
- 2008-04-18 17:06:16下载
- 积分:1
-
PSNRSSIM_matlab
matlab计算两幅图片之间的psnr和ssim值,彩色图片,算法是转换为YUV计算的,YCbCr(matlab computing psnr and ssim value between two pictures, color pictures, the algorithm is converted to YUV calculation, YCbCr)
- 2015-08-28 22:21:18下载
- 积分:1
-
inverse
乘法逆元的实现,就是对元素的逆元求解实现(Multiplicative inverse of the implementation of the elements of inverse solution to achieve)
- 2009-12-08 10:56:01下载
- 积分:1