登录
首页 » 算法 » 冒泡法排序

冒泡法排序

于 2022-08-09 发布 文件大小:260.50 kB
0 266
下载积分: 2 下载次数: 1

代码说明:

使用冒泡法对序列进行排序的算法,冒泡法的基本思想是:从R1开始,两两比较Ri和Ri+1,若ki>ki+1,则交换Ri和Ri+1的位置。第一次全部比较完毕后Rn是序列最大的数据元素。

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

发表评论

0 个回复

  • Robot vacuum cleaners cover the whole source simulation algorithm, in the hope t...
    吸尘机器人全覆盖算法仿真源码,希望对大家有用-Robot vacuum cleaners cover the whole source simulation algorithm, in the hope that useful to everybody
    2022-02-02 05:11:16下载
    积分:1
  • conver the data to absolute value
    conver the data to absolute value
    2022-02-12 17:47:28下载
    积分:1
  • 用c++实现的矩阵运类,包括了各种矩阵的运
    用c++实现的矩阵运算类,包括了各种矩阵的运算-With c++ Realization matrix calculation categories, including a variety of matrix operations
    2022-03-25 07:07:16下载
    积分:1
  • Kruskal的最小生成树解决分配问题(分配…
    用Kruskal算法构造最小生成树解决指派问题(assignment problem) 一家公司经理准备安排 名员工去完成 项任务,每人一项。由于各员工的特点不同,不同的员工去完成同一项任务时所获得的回报是不同的。如何分配工作方案可以使总回报最大? -Kruskal Algorithm used to solve assignment problem minimum spanning tree (assignment problem), a manager of the company prepare arrangements for employees to complete tasks, each one. As a result of the characteristics of different staff, different staff to accomplish the same mission when the return is different. How to allocate the work program can make the greatest total return?
    2022-03-18 14:16:52下载
    积分:1
  • 贝塞尔曲线
    构建三次贝塞尔曲线 C0,......,Cn-1 中 参数形式,Ci 由 (xi(t),yi(t)) = (a0(i) + a1 (i) * t + a2 (i) * t ^2 + a3 (i) * t ^3, b0(i) + b1 (i) * t + b2 (i) * t ^2 + b3(i)*t^3) 0 为 < = t < = 1 由左终结点 (x(i),y(i)), 离开了 guidepoint (x+(i),y+(i))、 右端点 (x(i+1),y(i+1)) 和 右 guidepoint (为每个 i x-(i+1),y-(i+1)) = 0,1,......,n-1 ; 输入的 n,((x(i),y(i)),我 = 0,...,n), ((x+(i),y+(i)),我 = 0,...,n-1), ((x-(i),y-(i)),我 = 1,...,n)。 输出系数 (a0(i)、 a1(i)、 a2(i)、 a3(i)、 b0(i)、 b1(i)、 b2(i)、 b3(i)、 我 = 0,...,n-1)。
    2022-02-16 09:27:40下载
    积分:1
  • 这是一个用java编程语言编写的高斯随机数发生器,方便易用。...
    这是一个用java编程语言编写的高斯随机数发生器,方便易用。-This is a java programming language using the Gaussian random number generator, easy-to-use.
    2023-09-04 12:00:04下载
    积分:1
  • 求非终端结点的
    求非终端结点的算法-for non-terminal nodes algorithm
    2022-07-23 13:50:16下载
    积分:1
  • Heritrix is an open source, scalable web reptiles project. Heritrix is designed...
    Heritrix是一个开源,可扩展的web爬虫项目。Heritrix设计成严格按照robots.txt文件的排除指示和META robots标签。-Heritrix is an open source, scalable web reptiles project. Heritrix is designed in strict accordance with the robots.txt file to exclude directives and META robots tags.
    2022-03-20 08:29:01下载
    积分:1
  • 在vc中调用matlib得时候,需要一些引擎文件,在这里已经全部包含。...
    在vc中调用matlib得时候,需要一些引擎文件,在这里已经全部包含。-in vc call matlib in time and need some engines, has been here all included.
    2022-05-29 01:12:13下载
    积分:1
  • 从.txt文件中读取数据,并对数据进行傅里叶压缩和变换的操作。...
    从.txt文件中读取数据,并对数据进行傅里叶压缩和变换的操作。-From. Txt file to read data, and data compression and Fourier transform operation.
    2022-06-20 02:28:41下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载