登录
首页 » 算法 » avl tree written by c++

avl tree written by c++

于 2023-04-08 发布 文件大小:1.62 kB
0 273
下载积分: 2 下载次数: 1

代码说明:

这是写的C ++ AVL树类。这很容易理解和使用。当我们学习算法,AVL树是很难理解和代码learn.This副本介绍如何编写使用C ++,你可以学到很多东西AVL码它。

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

发表评论

0 个回复

  • linux下的cure聚类算法
    是linux下的cure算法,比较完整 #if !defined(lint) && !defined(SABER) static char rcsid[] = "$Header: /usr/src/local/conn/cluster/RCS/cluster.c,v 1.23 1993/02/03 07:43:07 stolcke Exp $"; #endif    /* not lint */ #include #include #include #include "alloc.h" #include "error.h" #include "cluster.h" #define NONE (-2) #define BUFSIZE 256 #ifndef SCALE #define SCALE "_SCALE_" #endif #ifndef DONTCARE #define DONTCARE "D/C" #endif #ifndef MAXFLOAT #define     MAXFLOAT        ((float)3.40282346638528860e+38) #endif static FLOAT   distance(); static FLOAT   root(); static FLOAT   cure_distance(); static void    merge();
    2023-07-29 18:30:03下载
    积分:1
  • Matlab实现的CFD算法
    Matlab实现的CFD算法-Matlab CFD algorithms
    2023-04-26 13:50:03下载
    积分:1
  • 一个求解Josephus问题的函数
      #include #include #define NULL 0 #include typedef struct Lnode {  int data;  struct Lnode *next; }Josephus; void CreateList(Josephus*&L,int n)//建立循环链表 {  int i;  Josephus *p,*s;  s=(Josephus*)malloc(sizeof(Josephus));  s->data=1;  L=p=s;  for(i=2;idata=i;  p->next=s;  p=s;  }  p->next=L; } void DeleteList(Josephus*&L,Josephus*p,Josephus*q) {  q->next=p->next;  free(p); } void Josephus1(Josephus*&L,int s,int m)
    2022-01-27 23:12:59下载
    积分:1
  • 轻松用c++实现线性选择算法
    资源描述元素选择问题 给定线性序集中的n个元素和一个整数k,1≤k≤n,要求找出这n个元素中第k小的元素。 当k=1时——找最小元素; 当k=n时——找最大元素; 当k=(n+1)/2——找中位数 算法设计思想 与快速排序算法的设计思想基本相同,即对输入数组进行递归划分,但操作上只对划分出的两个子数组中的一个进行进一步的递归处理;
    2022-01-24 09:05:38下载
    积分:1
  • 图像的分割
    利用IDL语言实现图像的分割算法。本算法利用IDL语言对一幅影像进行处理,首先设定所分类别的数目k,然后进行分割过程。
    2022-06-28 08:35:28下载
    积分:1
  • 快速傅里叶变换, 频谱的泄露,混叠误差实例的matla程序。
    快速傅里叶变换, 频谱的泄露,混叠误差实例的matla程序。-Fast Fourier Transform: In order to reduce the number of DFT calculations of a fast algorithm.
    2022-08-22 07:09:14下载
    积分:1
  • random number generator source code for C and Notes with a test case.
    随机数生成源代码,提供C++类和注释与一个测试例子。-random number generator source code for C and Notes with a test case.
    2022-01-26 07:51:12下载
    积分:1
  • Procedure: All the main element Gauss elimination process: gaussq (aa, bb, xx, n...
    程序:全主元Gauss消去法 过程:gaussq(aa,bb,xx,n,sgn) 作用:aa为系数矩阵,bb为右端向量,xx为解向量,n为方程阶数,sgn为标识符,1表示计算正常进行,0表示计算失败 方程形式为:aa(n,n)*x(n)=bb(n)-Procedure: All the main element Gauss elimination process: gaussq (aa, bb, xx, n, sgn) Role: aa for the coefficient matrix, bb for the right-hand side vector, xx for the solution vector, n the order of the equation, sgn as identifiers, 1 indicates the calculation as normal, 0 indicates failure of the calculation equation of the form: aa (n, n)* x (n) = bb (n)
    2023-02-27 01:55:03下载
    积分:1
  • 数组排序,含bubble,quick,insertion,selection四种方法
    数组排序,含bubble,quick,insertion,selection四种方法-Array sort,it includes four sort methods as follows: bubble sort ,quick sort,insertion sort and selection sort.
    2022-01-25 22:05:51下载
    积分:1
  • 误差分析的方法有多种,例如,威点逊(J. H. Wilkison)针对的计算机的浮点运算提出的“向后误差分析”,这是一种先验估计误差的方法,较以往的“向前误差分...
    误差分析的方法有多种,例如,威点逊(J. H. Wilkison)针对的计算机的浮点运算提出的“向后误差分析”,这是一种先验估计误差的方法,较以往的“向前误差分析”在矩阵运算的舍入误差估计上有较好的结果,以而使矩阵的误差分析获得了突破性的进展,使不少用向前误差分析难于判定可靠性的数值方法获得新的进展。-error analysis by a number of means, for example, Granville point Morrison (J. H. Wilkison), referring to a computer"s floating-point operations "backward error analysis," This is a priori estimation error method, compared to the previous "Forward Error Analysis" in the matrix computation Rounding error a better estimate on the results of a matrix so the error analysis of a breakthrough in the progress, many with forward error analysis difficult to determine the reliability of numerical methods to achieve new progress.
    2022-06-15 17:59:56下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载