-
求解一个最短路径问题程序,可以参考一下求一个Dijkstra优化算法!
谢谢了
目的是求给定两点之间的最短距离
或者改一下我的程序也行...
求解一个最短路径问题程序,可以参考一下求一个Dijkstra优化算法!
谢谢了
目的是求给定两点之间的最短距离
或者改一下我的程序也行
-shortest path to solve a problem of procedure, can seek a reference Dijkstra algorithm optimization! Thank you, the purpose is scheduled for 2:00 to the shortest distance between or change my procedure OK
- 2022-03-01 07:56:19下载
- 积分:1
-
学生成绩管理系统
学生管理系统功能的信息量大,数据安全性和保密性要求最高。本程序可实现这些功能。1)输出学生成绩单2)按姓名查询3)增加学生4)删除学生5)按班级修改学生成绩6)显示不及格学生成绩7)按平均成绩排序并输出成绩
- 2023-04-08 07:10:04下载
- 积分:1
-
数据库 编程VC++ ADO.net
VS 2013 编译。用的是ADO.的技术 访问SQL2008的数据库。是做课程设计的一部分。重新包装了类,更易使用
- 2022-12-29 17:15:18下载
- 积分:1
-
[问题描述]
将N个关键字去整数的记录进行整序, 以使所有关键字为非负数的记录排在关键字为负数的记录之前,要求使用最少的附加空间,且算法的时间复杂度为O(N...
[问题描述]
将N个关键字去整数的记录进行整序, 以使所有关键字为非负数的记录排在关键字为负数的记录之前,要求使用最少的附加空间,且算法的时间复杂度为O(N)
[输入]
待排序记录个数,各关键字的值。
[输出]
关键字从正负分开,正数在前
[存储结构]
待排序记录顺序存储。
[算法的基本思想]
快速排序算法每次任取一个记录的关键字为标准,将其余记录分为两组将,N个关键字去整数的记录进行整序, 以使所有关键字为非负数的记录排在关键字为负数的记录之前。
#include
using namespace std
#define MAXNUM 100//设文件的最长可能长度
void sort(int* keys, const int len)//排序
-[Problem Description] N keyword to the integer sequence the entire record. keyword so that all non-negative Records with the keyword for the negative record, at least require the use of the additional space and time complexity of the algorithm is O (N) [imported] to be sort record number, The value of the keyword. [Output] keyword separate from the pluses and minuses are several former [storage structure] scheduling records to be stored sequence. [Algorithm for the basic idea] quick sort algorithm each time a record for any keyword as a standard, The remaining records will be divided into two groups, N-keyword
- 2022-03-17 21:15:57下载
- 积分:1
-
implementation
The existed tree implementation-implementation
- 2023-03-17 15:45:04下载
- 积分:1
-
数据结构C语言实现系列——线性表
主要是严蔚敏版《数据结构(C语言版)》第二章线性表中算法的C语言实现,能够帮助初学者更好的理解这部分内容~~~
- 2022-02-07 03:28:02下载
- 积分:1
-
c语言数据结构源代码(全)相当经典
c语言数据结构源代码(全)相当经典-c language data structure source code (all) is a classic
- 2022-12-09 19:05:03下载
- 积分:1
-
tree traversal of the four, China and Syria, the former sequence after sequence...
树的四种遍历方式,中叙,前序,后序和按层遍历算法,前三个用递归很好实现,最后一个复杂点。-tree traversal of the four, China and Syria, the former sequence after sequence and by layer traversal algorithm, the former three Recursive properly achieved, Finally a complex point.
- 2022-08-17 13:05:30下载
- 积分:1
-
一些常用的几何算法的C++实现,包括两点确定一条直线,两点间距离,点直线距离, 海伦公式求三角形面积,判断直线相交等...
一些常用的几何算法的C++实现,包括两点确定一条直线,两点间距离,点直线距离, 海伦公式求三角形面积,判断直线相交等-some common geometric algorithm C achieved, including two identified a straight line, the distance between two points, point straight distance Helen formula for triangle area, as judged straight intersection
- 2022-06-27 00:57:26下载
- 积分:1
-
求矩阵特征值、解方程组
求矩阵特征值、解方程组 -seeking matrix eigenvalue solution equations for matrix eigenvalue equations Solutions
- 2022-03-18 20:26:41下载
- 积分:1