登录
首页 » 算法 » 快速排序算法

快速排序算法

于 2022-01-25 发布 文件大小:4.82 kB
0 200
下载积分: 2 下载次数: 1

代码说明:

使用java写的算法,描述了快速排序!分为递归和非递归两种方法!static void QuickSort (int a[], int p, int r)  {        if (p x的元素交换到右边区域

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 基于kdtree的ICP
    k-d树 (k-dimensional树的简称),是一种分割k维数据空间的数据结构。主要应用于多维空间关键数据的搜索(如:范围搜索和最近邻搜索)。K-D树是二进制空间分割树的特殊的情况。ICP算法最初由Besl和Mckey提出,是一种基于轮廓特征的点配准方法。基准点在CT图像坐标系及世界坐标系下的坐标点集P = {Pi, i = 0,1, 2,…,k}及U = {Ui,i=0,1,2,…,n}。其中,U与P元素间不必存在一一对应关系,元素数目亦不必相同,设k ≥ n。配准过程就是求取 2 个坐标系间的旋转和平移变换矩阵,使得来自U与P的同源点间距离最小
    2022-02-14 10:36:03下载
    积分:1
  • 遗传MATLB程序
    有遗传算法的选择、交叉、变异函数,一些简单的MABTLAB遗传算法例子
    2023-06-23 21:35:03下载
    积分:1
  • K-junzhi分类器
    K-junzhi分类器,k-均值聚类算法c/C++语言版,很好的进行模式识别分类,效果很好,适合进行简单的聚类和分类 ,程序开始有初始化质心数组的索引,随机生成k个数x(0
    2023-04-12 14:35:03下载
    积分:1
  • 一个基于黑板模型的专家系统
    一个基于黑板模型的专家系统-based on a blackboard model of expert system
    2022-09-21 13:15:03下载
    积分:1
  • numerical method C Program
    数值计算方法C程序-numerical method C Program
    2022-07-23 08:53:11下载
    积分:1
  • 大数运,生成两个随机大数,然后计他们的和,差等
    大数运算,生成两个随机大数,然后计算他们的和,差等-Computation of large numbers to generate two random large numbers, and then calculate them and, poor
    2022-04-24 02:19:26下载
    积分:1
  • 柔顺机构的拓扑优化设计的代码,考虑输入输出
    柔顺机构的拓扑优化设计的代码,考虑输入输出-Topology Optimization of Compliant Mechanisms designed code, consider the input and output
    2022-06-16 06:10:47下载
    积分:1
  • 贝塞尔曲线示例
    #include < iostream > #include < 矢量 > #include < math.h > #include"BezierPoint.h" 使用命名空间 std ; BezierPoint 贝塞尔 (方法 < BezierPoint > & pts,双 t) ; 双选择 (双 a,双 b) ; 双 factorial(double num) ; int main(void) { 方法 < < BezierPoint >> 方法警校 ; char endPointCount = 0; 双 inx ; 双 iny ; int ptCount = 0; int 终结点 ; 双 deltaT ; cin >> ptCount >> deltaT ; 为 (int 我 = 0 ; 我 < ptCount; i + +) { cin >> inx >> iny >> 终结点 ; BezierPoint p iny inx) ; 如果 (endPointCount = = 0 & & 终结点 = = 1) { pts.push_back (方法 < BezierPoint > ()) ; pts[pts.size()-1].push_back(p) ; endPointCount + +; 继续 ; } pts[pts.size()-1].push_back(p) ; 如果 (endPointCount! = 0 & & 终结点 = = 1 & & 我! = ptCount-1) { pts.push_back (方法 < BezierPoint > ()) ; pts[pts.size()-1].push_back(p) ; endPointCount + +; } } 为 (std::s
    2022-03-13 19:08:01下载
    积分:1
  • 目的是把左边的所有盘子移到右边的杆子上。一次只能移动一个盘子,你可以使用中间的杆子作为临时存放盘子的地方。小盘子必须放在大盘子之上。问题看似不难。的确,如果盘子...
    目的是把左边的所有盘子移到右边的杆子上。一次只能移动一个盘子,你可以使用中间的杆子作为临时存放盘子的地方。小盘子必须放在大盘子之上。问题看似不难。的确,如果盘子只有两三个,是很容易解决的。但是随着盘子数目的增加,问题就变得非常难解了。 -purpose is to the left of all the dishes moved to the right side of the pole. Only a mobile one tray, you can use the middle of the pole plate as a temporary storage place. Small plates must be placed on the platter on top. It may seem it is not difficult. Indeed, if the plate is only 23, it"s very easy to solve. But with the increase in the number of dishes, the problem has become a very difficult.
    2022-01-31 01:19:13下载
    积分:1
  • 是个数学建模源代码
    是个数学建模源代码-is a mathematical modeling source code
    2022-05-24 14:03:17下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载