-
可以刷网站PV!对有站但是流量不大的朋友很有帮助
可以刷网站PV!对有站但是流量不大的朋友很有帮助-Web site can brush PV! But the flow of the station has little helpful Friend
- 2022-04-24 08:01:46下载
- 积分:1
-
ppc 下读取电池状态的代码。
This sample demonstrates how to use the State and Notificatio...
ppc 下读取电池状态的代码。
This sample demonstrates how to use the State and Notification Broker APIs. -ppc read battery status under the code. This sample demonstrates how to use the State and Notification Broker APIs.
- 2023-08-29 16:55:02下载
- 积分:1
-
用NOKIA手机发短消息的VB源程,采用VB开发!仅供参考!
用NOKIA手机发短消息的VB源程,采用VB开发!仅供参考!-Nokia phones send text messages using the VB source way, using VB! Only reference!
- 2022-03-12 03:25:35下载
- 积分:1
-
Windows ce is it come moon application more to get in a lot of occasion as embed...
windows ce作为嵌入式的操作系统在许多场合得到越来月多的应用,这个是用evc编写的注册表查看工具的原代码-Windows ce is it come moon application more to get in a lot of occasion as embedded operating system, this is the primary code looking over the tool with the registration table that evc writes
- 2023-05-30 05:10:03下载
- 积分:1
-
7. 编程序CompFile,首先让用户输入两个文件名及其路径(二文件均为text文件),而后通过使用类成员函数getline逐行读入这两个指定文件的内容并进行...
7. 编程序CompFile,首先让用户输入两个文件名及其路径(二文件均为text文件),而后通过使用类成员函数getline逐行读入这两个指定文件的内容并进行比较。若发现有不同,则在屏幕上显示出相异二行的行号及其内容,并暂停下来询问用户是否需要继续比较后继行,直到用户回答不需要继续进行比较,或者已经比到了二文件的结束时停止处理。-7. Programmed CompFile, first of all allow users to enter two file names and their paths (two files are text files), then through the use of class member function getline reads line by line, the contents of the two specified file and compare. If it is found they were different, differences on the screen shows the line number 2 and its contents, and suspend the down and asks if they need to continue to compare follow-up line, until the user answers do not need to continue to compare, or is already higher than to the two documents stop processing at the end.
- 2022-04-27 23:39:29下载
- 积分:1
-
显示时钟及日历,同时可以查询其它年月的星期情况
显示时钟及日历,同时可以查询其它年月的星期情况-Display clock and calendar, while other years can learn about the situation of the week
- 2023-05-24 00:00:03下载
- 积分:1
-
quake3 bsp 文件浏览器源代码。
quake3 bsp 文件浏览器源代码。
quake3 bsp 文件浏览器源代码。
quake3 bsp 文件浏览器源代码。-quake3 bsp is codes of files explorer。 quake3 bsp is codes of files explorer。
- 2023-07-29 12:30:04下载
- 积分:1
-
Genetic algorithm is based on Darwin' s theory of evolution of an intelligent...
遗传算法是基于达尔文进化论的一种智能优化算法,一种可用于复杂系统优化的具有鲁棒性的搜索算法,适用于解决传统方法难以解决的复杂的、非线性问题,可广泛应用于组合优化、离散优化、工程优化等领域。旅行商问题是一种NP难的组合优化问题,具有重要的理论研究价值和实际应用背景。然而,传统遗传算法中存在有不足,需要提出新的改进的遗传算法,并应用于旅行商问题的求解。-Genetic algorithm is based on Darwin" s theory of evolution of an intelligent optimization algorithm, a complex system can be used to optimize the robustness of the search algorithm, the application of traditional methods to solve difficult and complex, nonlinear problems, can be widely used in combination optimization, discrete optimization, engineering, optimization and other fields. Traveling Salesman Problem is a NP hard combinatorial optimization problem, has important theoretical value and practical application of research background. However, the traditional genetic algorithm, there is less than the need to introduce new improved genetic algorithm, and applied for solving the traveling salesman problem.
- 2022-08-23 15:36:01下载
- 积分:1
-
wince 下的MID窗口演示程序,大家
wince 下的MID窗口演示程序,大家-Jack MID window under the demonstration program, we look at
- 2022-02-15 05:07:44下载
- 积分:1
-
算法实现题2
算法实现题2-1 输油管道问题
« 问题描述:
某石油公司计划建造一条由东向西的主输油管道。该管道要穿过一个有n 口油井的油
田。从每口油井都要有一条输油管道沿最短路经(或南或北)与主管道相连。如果给定n口油
井的位置,即它们的x 坐标(东西向)和y 坐标(南北向),应如何确定主管道的最优位置,
即使各油井到主管道之间的输油管道长度总和最小的位置?证明可在线性时间内确定主管道
的最优位置。
« 编程任务:
给定n 口油井的位置,编程计算各油井到主管道之间的输油管道最小长度总和。
« 数据输入:
由文件input.txt 提供输入数据。文件的第1 行是油井数n,1£ n£ 10000。接下来n 行是
油井的位置,每行2个整数x和y,-10000£ x,y£ 10000。
« 结果输出:
程序运行结束时,将计算结果输出到文件output.txt 中。文件的第1 行中的数是油井到
主管道之间的输油管道最小长度总和。
输入文件示例 输出文件示例
input.txt output.txt
5
1 2
2 2
1 3
3 -2
3 3
6
- 2022-11-12 20:40:04下载
- 积分:1