-
不动点迭代――方程根的求解
不动点迭代――方程根的求解-fixed-point iteration-- Solving the equation-
- 2023-03-27 17:30:03下载
- 积分:1
-
TinyOS数据解析代码
针对TinyOS数据所写的代码,数据格式详情请参考http://tinyos.stanford.edu/tinyos-wiki/index.php/Main_Page
- 2022-07-24 14:40:38下载
- 积分:1
-
A fluid numerical simulation program to simulate the air or from a drilling camp...
一个流体数值模拟程序,模拟空中或从一个钻孔运动中筛选不饱和区。三维空气流动的异常,各向异性饱和带空气流通。-A fluid numerical simulation program to simulate the air or from a drilling campaign in the filter is not saturated zone. The abnormal three-dimensional air flow, anisotropy saturated with air circulation.
- 2022-10-25 20:10:03下载
- 积分:1
-
K-junzhi分类器
K-junzhi分类器,k-均值聚类算法c/C++语言版,很好的进行模式识别分类,效果很好,适合进行简单的聚类和分类
,程序开始有初始化质心数组的索引,随机生成k个数x(0
- 2023-04-12 14:35:03下载
- 积分:1
-
松弛迭代法.rar
松弛迭代法.rar-Iterative Method. Rar
- 2022-03-11 21:17:30下载
- 积分:1
-
复数(Complex Number)的四则运算
复数(Complex Number)的四则运算-Complex (Complex Number) 4 Operators
- 2022-01-25 22:40:20下载
- 积分:1
-
矩形原点旋转的程序
矩形原点旋转的程序-origin rotating rectangular procedures
- 2022-08-10 08:58:06下载
- 积分: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
-
遗传算法求解TSP问题
有31座城市,采用遗传算法求解tsp问题,给出源程序。可运行!
遗传算法是模仿生物进化和自然选择机理,模拟生物在自然环境中的遗传和进化过程而形成的一种自适应全局优化概率搜索算法。近年来,遗传算法由于在解决各类最优化问题时表现出的鲁棒性、全局性、隐含并行性和自适应性而成为一种应用同益广泛的智能优化算法。旅行商问题(TSP)是组合优化领域中的一个典型NP完全问题,是诸多领域内出现的多种复杂问题的集中概括和简化形式。快速、有效地解决TSP问题有着较高的理论意义和实际应用价值。本文针对解决TSP 问题,用遗传算法施行对TSP问题进行了求解,对选择、交叉和变异算子进行了算法设计,最后探讨了遗传算法解决旅行商问题自身具备的特点。
- 2022-07-16 23:21:19下载
- 积分:1
-
二
有限差分时间域二阶、空间域四阶二维声波方程加吸收边界常速模拟研究 (F=30 C=2500 时好) 震源不可放在边界-Second-order finite difference time domain and space domain plus the fourth-order two-dimensional acoustic wave equation absorbing boundary constant speed simulation study
- 2022-06-15 22:34:01下载
- 积分:1