搜索资源列表
-
0下载:
将两个分别从小到大排列的有序数组a和b复制合并到第3个有序数组c中。m和 n分别是数组a和b的元素个数,结果c的元素个数为k。例如,a和b数组分别为{1,2, 2,3,8}和{3,4,7,8},则结果数组c的值是:{1,2,2,3,3,4,7,8,8)。算法是:将a、b两个数组看成两个队列,比较队首的两个元素,将较小者放入c队列尾部,如果队首的两个元素相等,则先选择a队列首部元素加入c队列尾部。循环执行以上过程,直到a或b队列之一为空,然后将另一个非空队列拷贝到c队列尾部。注意:不允许使用其它算
-
-
0下载:
n-queen problem mean two queen is not stand in a row, column or diagonal.
this code solving n-queen problem using genetic algorithms.this code is writing C#.
step 1 is selection and 2 crossover and step 3 is mutation.
-n-queen problem mean two
-