登录
首页 » 算法 » Insertion sort

Insertion sort

于 2022-03-05 发布 文件大小:1.04 kB
0 77
下载积分: 2 下载次数: 1

代码说明:

insertion_sort.cpp #include #include #include #define N 5000 int insertion_sort( int data_insert[] ); void creat_file( char *file_name, int data_file[] ); int main(int argc, char *argv[]){    int data[N];    creat_file( argv[1], data ); 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报

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

发表评论


0 个回复

  • 雅可比迭代
    要解决 AX = B 鉴于初始逼近 X(0)。 输入: 方程和未知数的数目 n;条目 A(I,J),1 < = I J < = n 的矩阵 ;条目 B (一), 1 < = I < = n 的非均匀期限 B ;条目 XO(I),1 < = I < = n 的 X(0) ;容忍 TOL ;最大值 N.迭代的次数 输出: 近似解 X(1),...,X(n) 或一条消息 迭代的次数超过了。
    2022-03-17 20:27:40下载
    积分:1
  • 这是递推梯形的源代码
    这是递推梯形的源代码-trapezoidal source code
    2022-06-13 06:52:45下载
    积分:1
  • 数理统计Stutent s检验源代码,应用Visual C#编写。
    数理统计Stutent s检验源代码,应用Visual C#编写。-Mathematical Statistics Stutent s test source code, the application of Visual C# Prepared.
    2022-05-20 06:24:13下载
    积分:1
  • 智能循迹小车
    应用背景本次智能小车设计是在全国电子设计大赛的背景下,省区选拔第一阶段,我和两名队友协作努力,一起完成整个电路的硬件设计,和算法。获得区级三等奖,成功进入国家级的初赛。关键技术本次智能小车的关键设计在于电路的选择和算法的实现。电路我采用最简单的51单片机作为MCU,对于循迹完全足够了,红外传感器既可以循迹,也可以避障。
    2023-08-26 16:45:04下载
    积分:1
  • 多边形裁剪
    你好,在这里我解释多边形裁剪的算法。时要求切断任何多边形,一般使用剪辑。Cliping上图中所示,通过选择原始的 image(Polygon),我们就可以减少多边形以平面凸点。从任何角度切割下来的 3D 几何的此应用程序已使用它是砍掉多边形各边的迭代过程。完成此过程之后,你会发现最后多边形裁剪的顶点。在这里我们也找到线段与多边形的脸的交点。
    2022-03-03 07:10:39下载
    积分:1
  • ! 2 ! HOMPACK90 is a suite of FORTRAN 90 subroutines for solving nonline...
    ! 2 ! HOMPACK90 is a suite of FORTRAN 90 subroutines for solving nonlinear 3 ! systems of equations by homotopy methods. There are subroutines for 4 ! fixed point, zero finding, and general homotopy curve tracking problems, 5 ! utilizing both dense and sparse Jacobian matrices, and implementing 6 ! three different algorithms: ODE-based, normal flow, and augmented 7 ! Jacobian. The (driver) subroutines called by the user are given in the 8 ! table below, and are well documented internally. The user need not 9 ! be concerned with any other subroutines in HOMPACK90. -! 2 ! HOMPACK90 is a suite of FORTRAN 90 subroutines for solving nonlinear 3 ! systems of equations by homotopy methods. There are subroutines for 4 ! fixed point, zero finding, and general homotopy curve tracking problems, 5 ! utilizing both dense and sparse Jacobian matrices, and implementing 6 ! three different algorithms: ODE-based, normal flow, and augmented 7 ! Jac
    2022-07-21 06:18:17下载
    积分:1
  • 循环链表实现约瑟夫环,并对输入错误进行检查和提示。
    循环链表实现约瑟夫环,并对输入错误进行检查和提示。-cycle Chain achieve Josephus, and input error check and tips.
    2023-01-04 20:40:03下载
    积分:1
  • mfc写的五子棋源码
    通过MFC写的五子棋源码,有兴趣的欢迎交流              对算法和界面,相关源码应有尽有                     哈哈,还等什么,快下载把        嗯。。。。      
    2022-12-03 23:55:03下载
    积分:1
  • 数据挖掘apriori实现
    第一步是利用findFrequentOneItemSets()产生1-频繁集,这只要统计每个项目出现的次数就可以了。然后依次产 生2阶,3阶,……,k阶频繁集,k频繁集为空则算法停止。即利用aprioriGenCandidates()函数 根据所有频繁L-1项 集获得所有频繁L项集的候选L项集。findFrequentItemSets() 查找事务集中的所有频繁项集,返回Map为:L -> 所 有频繁L项集的列表。
    2022-09-05 08:00:02下载
    积分:1
  • 棋盘覆盖,不错的
    棋盘覆盖,不错的-chessboard coverage, good
    2022-03-22 07:38:21下载
    积分:1
  • 696518资源总数
  • 104856会员总数
  • 26今日下载