-
使用遗传算法的函数优化问题
这是简单的遗传算法代码,求解函数优化问题。这里是函数的遗传算法每一步。
使用了选择,交叉,突变,roullette 轮选择,一点交叉,位翻转突变。
- 2022-02-28 09:14:52下载
- 积分:1
-
主要是应用VC进行傅立叶变换和反变换的程序,主要采用快速傅立叶方法,因为傅立叶变换的时间很长。...
主要是应用VC进行傅立叶变换和反变换的程序,主要采用快速傅立叶方法,因为傅立叶变换的时间很长。-VC primarily used for Fourier transform and inverse transform process, the main use of fast Fourier methods, because the Fourier transform of the time very long.
- 2023-05-09 05:30:03下载
- 积分:1
-
正整数x 的约数是能整除x 的正整数。正整数x 的约数个数记为div(x)。例如,1,2,5,10 都是正整数10 的约数,且div(10)=4。设a 和b 是...
正整数x 的约数是能整除x 的正整数。正整数x 的约数个数记为div(x)。例如,1,2,5,10 都是正整数10 的约数,且div(10)=4。设a 和b 是2 个正整数,a≤b,找出a 和b之间约数个数最多的数x。
对于给定的2 个正整数a≤b,编程计算a 和b 之间约数个数最多的数。
数据输入
输入数据由文件名为input.txt的文本文件提供。文件的第1 行有2 个正整数a和b。
结果输出
程序运行结束时,若找到的a 和b 之间约数个数最多的数是x,将div(x)输出到文件output.txt中。
输入文件示例 输出文件示例
input.txt output.txt
1 36 9
-Positive integer x can be about a few of the positive integer x divisible. Positive integer x the approximate number recorded as the number of div (x). For example, 1,2,5,10 are about 10 positive integer number, and div (10) = 4. Set a and b are two positive integers, a ≤ b, to find a and b between about a few number of the largest number of x. For a given two positive integers a ≤ b, Programming calculated a and b between about a few number of the largest number. Data entry input data from the document text file named input.txt provide. File line 1 has two positive integers a and b. The results run the end of the output, if found between a and b of about a few number o
- 2023-04-13 05:20:03下载
- 积分:1
-
ACM的部分简单题目,可以有空做做,练习练习。
ACM的部分简单题目,可以有空做做,练习练习。-ACM part of a simple subject, you can time doing practice exercises.
- 2022-03-12 09:08:30下载
- 积分:1
-
01背包问题,C++语言,01背包问题的实现
01背包问题c语言实现
01背包问题c语言实现-01 knapsack problem c language c language of 01 knapsack problem implementation
- 2023-07-21 15:55:03下载
- 积分:1
-
breadth first search
广度优先搜索(BFS)是一种用于搜索特定元素的方法图形.it是级别顺序搜索。当搜索基本上限于两种操作时:(a)访问和
- 2022-07-05 00:49:37下载
- 积分:1
-
Canny edge detector algorithm matlab
这部分给出了
- 2022-02-02 18:53:09下载
- 积分:1
-
简化的S-盒的DES算法..!
您可以使用这些S-盒快速实现DES算法中。幸得代码原作者此致
- 2022-06-13 12:07:49下载
- 积分:1
-
基于C/S的复杂的多玩家棋盘游戏
基于C/S的复杂的多玩家棋盘游戏-based on C/S of the complex multi-player board game
- 2022-09-13 23:45:03下载
- 积分:1
-
想通过JAVA程序插入PPT吗?来这里
这个程序可以插入PPT,让你的ppt用自己编的软件就可以展示,是不是很帅啊!在选择文件中选择一个PPT,就可以在程序中打开PPT,可以上下翻页,还可以直接到首末页,当到最后一张时,再翻页会出现警告声
- 2022-01-25 17:18:26下载
- 积分:1