登录
首页 » 算法 » 轻松用c++实现线性选择算法

轻松用c++实现线性选择算法

于 2022-01-24 发布 文件大小:70.93 kB
0 184
下载积分: 2 下载次数: 1

代码说明:

资源描述元素选择问题 给定线性序集中的n个元素和一个整数k,1≤k≤n,要求找出这n个元素中第k小的元素。 当k=1时——找最小元素; 当k=n时——找最大元素; 当k=(n+1)/2——找中位数 算法设计思想 与快速排序算法的设计思想基本相同,即对输入数组进行递归划分,但操作上只对划分出的两个子数组中的一个进行进一步的递归处理;

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

发表评论

0 个回复

  • 这是硕士生计机软件专业组合数学的一个序数演示,仅供参考。...
    这是硕士生计算机软件专业组合数学的一个序数算法演示,仅供参考。-This is the master computer software professional combination of a mathematical algorithm sequence demonstration purposes only.
    2022-02-27 03:43:04下载
    积分:1
  • C++经典数值源码 包括多个经典的数值
    C++经典数值算法源码 包括多个经典的数值算法-C++ Classical numerical algorithm source code, including a number of classical numerical algorithm
    2022-03-09 14:59:29下载
    积分:1
  • Statistics module C++ Source can be used to calculate the statistics.
    统计模块的 C++源程序 ,可以用来计算统计数据. -Statistics module C++ Source can be used to calculate the statistics.
    2023-04-13 04:10:03下载
    积分:1
  • 龙格-库塔 (RK) 来估计解的常微分方程组 (ODE)
    RK4 是一个 C 程序实现简单的龙格-库塔求解初值问题。Rk4() 函数并不包括任何误差估计。它以单步在一段时间,需要用户来控制步长。
    2022-04-24 09:18:54下载
    积分:1
  • FSA的人工鱼
    FSA人工鱼群算法用MATLAB编程实现。有很高的价值。体现了人工鱼群算法的特点。保证能运行。-FSA artificial fish-swarm algorithm with MATLAB Programming. Has a high value. Embodies the characteristics of artificial fish-swarm algorithm. Guarantee that it will run.
    2022-02-02 09:34:46下载
    积分:1
  • 这是一个让你用二次公式计出的根的程序…
    This is a program that will let you calculate roots with the Quadratic formula (including complex roots), Factorial of a number, Fibonacci series (and Pascals Triangle still under construction).
    2023-05-19 04:30:03下载
    积分:1
  • opencv 傅里叶 水印 C++
    基于VC2010开发环境,使用OpenCV 2.4.10应用傅里叶算法,做水印加入处理,及相关的水印还原处理。 可以对png,jpg等不同图像格式的文件做暗水印加入及还原水印的功能。
    2023-01-30 09:30:04下载
    积分:1
  • Dijkstra algorithm最短路径
    Dijkstra算法在EXCEL的实现                      
    2022-02-28 20:49:37下载
    积分:1
  • 对折排序 C++
    对折排序 C++算法-fold ranking algorithm C
    2022-02-15 23:23:01下载
    积分:1
  • Abstract: This paper aims to study a thermal complex objects can be an effective...
    摘要:本文旨在研究一种能对复杂热工对象的有效建模方法。基于遗传算法的辨识方法有较强的抗干扰能力,对低、高阶系统、延时系统都可以达到很好的辨识效果。根据单元机组的低阶非线性模型,推导出一个双进双出、能够描述机组动态特性及机炉间相互耦合关系的协调控制系统传递函数矩阵。依次模型为基础,提出一种基于改进的遗传算法的参数辨识方法。-Abstract: This paper aims to study a thermal complex objects can be an effective modeling method. Identification method based on genetic algorithm has strong anti-jamming ability, low, high-end systems, delay systems can achieve very good recognition results. According to unit power plant low-level non-linear model, derived a double inlet and outlet, can describe the dynamic characteristics and boiler-turbine unit is coupled between two relations, coordination and control system transfer function matrix. Turn model was proposed based on improved genetic algorithm based on parameter identification method.
    2022-01-24 09:15:33下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载