登录
首页 » 算法 » maxgap算法

maxgap算法

于 2022-03-24 发布 文件大小:702.24 kB
0 174
下载积分: 2 下载次数: 1

代码说明:

最大间距问题,计算机算法设计与分析。计算一组随机数据,任意两个数据之差最大值,而且时间复杂度为线性。

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

发表评论

0 个回复

  • C++ 各种排序演示(插入、希尔、冒泡、快速等)
    C++ 各种排序算法演示(插入、希尔、冒泡、快速等)。
    2023-08-01 22:15:03下载
    积分:1
  • 介绍了在VC编辑器中,加入汇编语言的以实现混合编程的方,并演示了计圆周率的过程,很不错...
    介绍了在VC编辑器中,加入汇编语言的以实现混合编程的方法,并演示了计算圆周率的过程,很不错-introduced in VC editor, by adding assembly language to achieve the mixed programming method and demonstrated the calculation of the ratio of the circumference and very good! !
    2023-08-02 07:10:02下载
    积分:1
  • 阈值分割和轮廓提取
    阈值分割和轮廓提取c++源代码。 包含以下代码:轮廓提起;区域生长;种子填充。 附金典测试图片; c++6.0,可运行。
    2022-07-22 18:48:13下载
    积分:1
  • 0.618 process does the cases, seek the maximum COSX
    黄金分割的程序实了例,求COSX的最大值-0.618 process does the cases, seek the maximum COSX
    2022-02-09 17:51:21下载
    积分:1
  • 求树的层次的
    求树的层次的算法-level for the tree algorithm
    2022-03-24 09:51:33下载
    积分:1
  • 波浪模拟
    模拟二维波浪在圆形区域的传播。输入波浪可为多个,入射方向可任意选取。入射波浪为线性波浪。输出文件为plot3d格式。
    2023-03-29 12:50:08下载
    积分:1
  • 人脸追踪 FaceTrace
    应用背景 人脸识别 人脸追踪 The software is provided under the terms of this licence stricly for //       academic, non-commercial, not-for-profit purposes. //     * Redistributions of source code must retain the above copyright notice,  //       this list of conditions (licence) and the following disclaimer. //     * Redistributions in binary form must reproduce the above copyright  //       notice, this list of conditions (licence) and the following disclaimer  //       in the documentation and/or other materials provided with the  //       distribution. //     * The name of the author may not be used to endorse or promote products  //       derived from this software without specific prior written permission. //     * As this software d
    2022-08-14 06:55:42下载
    积分:1
  • 蚁群解决TSP旅游商问题
    function [R_best,L_best,L_ave,Shortest_Route,Shortest_Length]=ACATSP(C,NC_max,m,Alpha,Beta,Rho,Q)%%-------------------------------------------------------------------------%% 主要符号说明%% C n个城市的坐标,n×2的矩阵%% NC_max 最大迭代次数%% m 蚂蚁个数%% Alpha 表征信息素重要程度的参数%% Beta 表征启发式因子重要程度的参数%% Rho 信息素蒸发系数%% Q 信息素增加强度系数%% R_best 各代最佳路线%% L_best 各代最佳路线的长度%%========================================================================= %%第一步:变量初始化n=size(C,1);%n表示问题的规模(城市个数)D=zeros(n,n);%D表示完全图的赋权邻接矩阵for i=1:nfor j=1:nif i~=jD(i,j)=((C(i,1)-C(j,1))^2+(C(i,2)-C(j,2))^2)^0.5;elseD(i,j)=eps;      %i=j时不计算,应该为0,但后面的启发因子要取倒数,用eps(浮点相对精度)表示endD(j,i)=D(i,j);   %对称矩阵endend%{1.C就是城市坐标             x         y城市1    0
    2022-08-25 13:59:52下载
    积分:1
  • Fast Fourier Transform algorithm. Including the one
    快速傅立叶变换的实现算法。包括1维FFT、2维FFT及其逆变换,以及离散变换的相关源码。-Fast Fourier Transform algorithm. Including the one-dimensional FFT, 2-dimensional FFT and its inverse transform, as well as the related discrete transform source code.
    2022-07-09 09:08:54下载
    积分:1
  • openCV中关于通过码本检测前景的应用代码
    openCV中关于通过码本检测前景的应用代码,下载openCV后,配置好环境变量,设置好项目属性(这些网上都有教程),然后运行这个cpp文件,就可以实现码本模型了。
    2022-04-27 04:51:50下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载