-
一个用变形贪婪法解货郎回路的C程序代码 思想 1.选择一条最短的边作为部分解。 2.选择一条最短的且将之加入到部分解不形成回路的边。 3.重复第2步,直至所有的...
一个用变形贪婪法解货郎回路的C程序代码 思想 1.选择一条最短的边作为部分解。 2.选择一条最短的且将之加入到部分解不形成回路的边。 3.重复第2步,直至所有的结点都包含在部分解中。-deformation with a greedy method for the Traveling Salesman circuit C code ideological one. Choose a minimum as part of the solution side. 2. Choose one of the shortest but to incorporate it into solutions that do not form part of the loop side. 3. Repeat Step 2 until all the nodes are included in some solution.
- 2022-06-21 15:56:06下载
- 积分:1
-
This a simple compilation of animation process. Operating results in running a k...
这是一个简单的汇编动画程序. 运行的结果是一只小猫在奔跑.-This a simple compilation of animation process. Operating results in running a kitten.
- 2022-02-06 00:13:45下载
- 积分:1
-
« 问题描述:
给定一个自然数n,由n开始可以依次产生半数集set(n)中的数如下。
(1) n∈set(n);
(2) 在n的左边加上一...
« 问题描述:
给定一个自然数n,由n开始可以依次产生半数集set(n)中的数如下。
(1) n∈set(n);
(2) 在n的左边加上一个自然数,但该自然数不能超过最近添加的数的一半;
(3) 按此规则进行处理,直到不能再添加自然数为止。
例如,set(6)={6,16,26,126,36,136}。半数集set(6)中有6 个元素。
注意半数集不是多重集。集合中已经有的元素不再添加到集合中。
« 编程任务:
对于给定的自然数n,编程计算半数集set(n)中的元素个数。
« 数据输入:
输入数据由文件名为input.txt的文本文件提供。
每个文件只有1 行,给出整数n。(0
- 2022-02-15 12:30:46下载
- 积分:1
-
遗传算法中多点交叉算法来优化最小值函数所对应的解--交叉过程...
遗传算法中多点交叉算法来优化最小值函数所对应的解--交叉过程-Multi-point genetic algorithm to optimize the cross-algorithm corresponding to the minimum function of the solution- the process of cross-
- 2022-03-18 23:38:02下载
- 积分:1
-
PXA270平台上wince多线程编程参考源代码,C++编写。
PXA270平台上wince多线程编程参考源代码,C++编写。-PXA270 platform multi-threaded programming wince reference source code, C++ Prepared.
- 2023-06-15 14:55:03下载
- 积分:1
-
ucos in proteus
ucos,臂lpc2148,变形杆菌
- 2022-04-28 22:27:26下载
- 积分:1
-
WAR FTP 功能十分强大
资源描述包括FTP Server和Client的源程序(VC),功能十分强大 WAR FTP
- 2022-06-03 04:22:07下载
- 积分:1
-
盘文件读写模块 以字节为单位进行U盘文件读写
盘文件读写模块 以字节为单位进行U盘文件读写-Module to read and write disk file in bytes to read and write files to disk U
- 2022-03-20 09:41:42下载
- 积分:1
-
Sun Star teaching source, master C useful, Sun Star teaching source, master...
孙星教学源码,掌握C++有用,孙星教学源码,掌握C++有用-Sun Star teaching source, master C useful, Sun Star teaching source, master C useful
- 2022-09-29 13:00:03下载
- 积分:1
-
使用XML编写的通讯薄
使用XML编写的通讯薄-prepared by the use of XML communications thin
- 2022-03-24 23:21:19下载
- 积分:1