-
快速排序与交换排序算法比较
在Visual C++中建立一个单文档Windows应用程序,并实现下述功能:
运用随机函数自动生成一定规模的测试数据 (1...
快速排序与交换排序算法比较
在Visual C++中建立一个单文档Windows应用程序,并实现下述功能:
运用随机函数自动生成一定规模的测试数据 (10000个测试元素),并输出到文件中。
分别执行快速排序算法和交换排序算法对测试数据排序,并输出到不同的文件中。
使用较为精确的QueryPerformanceCounter和QueryPerformanceFrequency等函数记录算法耗时,精确到毫秒,以便更好地进行算法耗时比较。
分析两种不同算法,有针对性地设计与调整测试数据,进而通过比较算法耗时来得到更充分且更深刻的认识。
编写模块校验两种不同排序算法的输出结果正确且相同
-Quicksort sorting algorithm comparison and exchange
In the Visual C++ to create a single document Windows application, and to achieve the following functions:
The use of random function automatically generates a certain amount of test data (10000 test elements), and output to a file.
Respectively, and the exchange of the implementation of quick sort algorithm sorting algorithm to sort of test data, and output to a different file.
Using a more accurate record of QueryPerformanceCounter and QueryPerformanceFrequency algorithms such as time-consuming functions, accurate to the millisecond, in order to better carry out time-consuming compared algorithms.
Analysis of two d
- 2022-04-22 17:20:42下载
- 积分:1
-
俄罗斯方块小游戏,希望对学弟学妹门有帮助,我主要用的2维数组实现...
俄罗斯方块小游戏,希望对学弟学妹门有帮助,我主要用的2维数组实现-Tetris game, in the hope that Mei Xue Xue Di door has to help, I mainly use 2-dimensional array realize
- 2023-01-08 01:50:04下载
- 积分:1
-
2016年湖北省电子设计大赛C题 LDC1314基于STM32的源码 实测可读
这是本人参加2016年湖北省电子设计大赛所用LDC1314源码,实测可读数据,绝对没有问题.
LDC1314 是用于电感感测解决方案的4 通道 12 位电感数字转换器 (LDC)。 由 于具备多通道且支持远程感测, LDC1314 能以最低的成本和功耗实现高性能且可靠的电感感 测。 此类产品使用简便,仅需要传感器频率处于 1kHz 至 10MHz 的范围内即可开始工作。 由于支持的传感 器频率范围 1kHz 至 10MHz 较宽,因此还支持使用非常小的 PCB 线圈,从而进一步降低感测解决方案的成 本和尺寸。
- 2022-03-20 11:53:40下载
- 积分:1
-
parts cutting issue for a fixed width of the rectangular plate W, the height of...
零件切割问题
给定一块宽度为W的矩形板,矩形板的高度不受限制。现需要从板上分别切割出n个高度为hi,宽度为wi的矩形零件。切割的规则是零件的高度方向与矩形板的高度方向保持一致。问如何切割使得所使用的矩形板的高度h最小?-parts cutting issue for a fixed width of the rectangular plate W, the height of rectangular plate unrestricted. Need from the board is cutting out respectively n height of the hi, wi width of the rectangular parts. Cutting parts to the rules of the height of the rectangular plate with a high degree of consistent direction. Asked how cutting makes use of the rectangular plate height h minimum?
- 2022-03-24 18:18:21下载
- 积分:1
-
javaweb 酒店管理系统
javaweb 酒店管理系统
有数据库
- 2022-10-28 22:40:04下载
- 积分:1
-
无线传感器网络的贪婪路由
这个
- 2022-12-28 22:20:04下载
- 积分:1
-
edmi reading format and sample
edmi reading format and sample
- 2022-06-18 04:08:47下载
- 积分:1
-
vc environment qt prepared using an interface table, which can excel as mass dat...
vc环境下使用qt编写的一个界面表格,里面如同excel一样可以存放海量数据.老外编的源代码-vc environment qt prepared using an interface table, which can excel as mass data storage. foreigner made the source code
- 2022-02-26 03:19:00下载
- 积分:1
-
修正后版本
遗传算法是基于达尔文进化论的一种智能优化算法,一种可用于复杂系统优化的具有鲁棒性的搜索算法,适用于解决传统方法难以解决的复杂的、非线性问题,可广...
修正后版本
遗传算法是基于达尔文进化论的一种智能优化算法,一种可用于复杂系统优化的具有鲁棒性的搜索算法,适用于解决传统方法难以解决的复杂的、非线性问题,可广泛应用于组合优化、离散优化、工程优化等领域。旅行商问题是一种NP难的组合优化问题,具有重要的理论研究价值和实际应用背景。然而,传统遗传算法中存在有不足,需要提出新的改进的遗传算法,并应用于旅行商问题的求解。-Amended version of genetic algorithm based on Darwin" s theory of evolution is 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 combinatorial 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.
- 2023-06-10 23:05:03下载
- 积分:1
-
VC system of the code was developed for the White Box 2003 VC.NET category code...
VC++系统中对自己编制的代码进行白盒测试的VC.NET 2003代码类及例子-VC system of the code was developed for the White Box 2003 VC.NET category code and examples
- 2023-06-26 02:10:03下载
- 积分:1