-
轻松用c++实现线性选择算法
资源描述元素选择问题
给定线性序集中的n个元素和一个整数k,1≤k≤n,要求找出这n个元素中第k小的元素。
当k=1时——找最小元素;
当k=n时——找最大元素;
当k=(n+1)/2——找中位数
算法设计思想
与快速排序算法的设计思想基本相同,即对输入数组进行递归划分,但操作上只对划分出的两个子数组中的一个进行进一步的递归处理;
- 2022-01-24 09:05:38下载
- 积分:1
-
简单的用Vt码做的贪吃蛇小游戏
这是用C语言编写的简单的用Vt码做的贪吃蛇小游戏,游戏主要是在终端界面玩,未完尚待完善,望各位大神多提宝贵意见
- 2022-08-22 21:30:49下载
- 积分:1
-
挺好的用于计算年利率和月利率的vb程序
挺好的用于计算年利率和月利率的vb程序-Holbrook used in the calculation of annual and monthly interest rates vb procedures
- 2022-04-24 09:42:51下载
- 积分:1
-
采用c++编写,上机运行通过的N皇后实现代码,绝对可用
采用c++编写,上机运行通过的N皇后实现代码,绝对可用-used to prepare, on the plane running through the realization of the code N Queen"s absolutely available!
- 2022-06-26 16:25:11下载
- 积分:1
-
This is a gray code forecast, Gray forecast general parameters applied to the ne...
这是灰色预测代码,一般灰色预测的参数需要应用到矩阵的运算,本代码通过对其变形,使其运算简单化.-This is a gray code forecast, Gray forecast general parameters applied to the needs of the matrix computation, the code through its deformation, it Operational simplistic.
- 2022-03-09 13:55:45下载
- 积分:1
-
超长整数乘法源程序
超长整数乘法源程序-long integer multiplication source
- 2022-07-20 14:55:39下载
- 积分:1
-
! 平面框架结构静力分析程序(by fortran) ! 后处理法 ! ! 主要功能: ! 输入单元结点编号,自动生成结点位移编号; ! 总刚元素按上三角阵存储...
! 平面框架结构静力分析程序(by fortran) ! 后处理法 ! ! 主要功能: ! 输入单元结点编号,自动生成结点位移编号; ! 总刚元素按上三角阵存储; ! 主1副0法引入位移约束条件 ! GAUSS消元法解线性代数方程组;-! Plane frame structure static analysis procedures (by fortran)! After the treatment!! Main functions:! Input module node number automatically generated node displacement number ! Total just click on the triangle element array storage ! Master a 0 Law on the introduction of displacement constraints! GAUSS elimination method solving linear algebraic equations
- 2022-08-07 01:25:00下载
- 积分:1
-
分水岭方法
使用分水岭方法常常遇到过分分割的情况,使用膨胀腐蚀能够有效改善这种现象。
- 2022-08-20 19:30:05下载
- 积分:1
-
A code which employs the SIMPLE
A code which employs the SIMPLE-based pressure-correction method for solving the Navier-Stokes equations using Finite Volume method, Cartesian grid, and a colocated arrangement of variables.
- 2022-04-12 04:45:15下载
- 积分:1
-
FuzzyClusteringToolbox
Fuzzy聚类工具箱,含4种评价方式,内有文档及注释-FuzzyClusteringToolbox
- 2022-11-14 05:30:04下载
- 积分:1