登录
首页 » 算法 » 线段覆盖程序

线段覆盖程序

于 2022-04-16 发布 文件大小:4.87 MB
0 177
下载积分: 2 下载次数: 1

代码说明:

基于c++的线段覆盖程序 本段程序采用的是贪心算法,初始化之后对线段进行预处理,如果读入的左端点比右端点大,那么调换一下位置。先用快速排序对线段的左端点排序, 排序结束之后,从左到右进行扫描,对线段的右端点的几种情况分别讨论保留还是舍去,最终输出结果即可。

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

发表评论

0 个回复

  • 分步傅利叶方解非线性方程
    分步傅利叶方法解非线性方程-Fourier step-by-step method for solving systems of nonlinear equations
    2022-12-13 00:25:03下载
    积分:1
  • 按位异或及其在求解游戏策略问题中的应用.
    按位异或及其在求解游戏策略问题中的应用.-caput or vary the game and its strategy in solving problems of application.
    2022-12-30 01:45:04下载
    积分:1
  • Moving average moving average prediction ModifyShiftAverageRegress.cs trends can...
    移动平均预测 ModifyShiftAverageRegress.cs 移动平均也可画趋势图,如下: public double forecast(int interval) 移动平均认为数据是时间序列数据,该方法预测interval个时间间隔后的值 public override double[] getTrendArray() 得到趋势数组,该数组的数据直接在图形中展示出来就可以产生趋势线。 -Moving average moving average prediction ModifyShiftAverageRegress.cs trends can also be painted as follows: public double forecast (int interval) consider moving average data are time-series data, the method of prediction interval of time after the interval the value of public override double [] getTrendArray () be the trend of the array, the array of data directly in the graphical display can be generated by the trend line.
    2022-06-06 15:01:20下载
    积分:1
  • The mathematic method K
    The mathematic method K-Means with delphi, a smaal essay, with graphic representation-The mathematic method K-Means with delphi, a smaal essay, with graphic representation....
    2022-03-19 12:03:28下载
    积分:1
  • 快速DCT变换 迭代
    快速DCT变换 迭代算法- Fast DCT transformation iteration algorithm
    2022-01-26 07:08:19下载
    积分:1
  • 约瑟夫问题
    约瑟夫 argorithsm.这里是人站成一个圈,等待执行。数着圈子中的某一时刻开始和收益绕了一圈在一个固定的方向。在每一步,跳过了一定数量的人和执行下一个人。消除收益绕了一圈 (而变得越来越小越来越小,作为被执行的人),直到最后一个的人也只剩下,谁被授予了自由。
    2022-06-14 18:12:16下载
    积分:1
  • C语言小程序,学习指针运的各种
    C语言小程序,学习指针运算的各种算法-C language small program, the Operational Guidelines learning algorithms
    2022-07-16 08:23:00下载
    积分:1
  • 在matlab环境中用蚁群寻优潜水器的三维路径,效果很好
    在matlab环境中用蚁群算法寻优潜水器的三维路径,效果很好-In the matlab environment, using ant colony optimization algorithm for three-dimensional underwater vehicle path, good results
    2022-12-10 21:20:03下载
    积分:1
  • C language map of the ergodic
    遍历的C语言映射
    2022-03-18 13:03:02下载
    积分:1
  • 图像增强
    资源描述实现频域内的图像增强,采用傅里叶变换方法
    2022-02-15 07:49:26下载
    积分:1
  • 696516资源总数
  • 106562会员总数
  • 4今日下载