登录
首页 » c++ » 搜索二叉树

搜索二叉树

于 2022-02-28 发布 文件大小:447.11 kB
0 85
下载积分: 2 下载次数: 1

代码说明:

#pragma once template struct Node { T _data; Node* left; Node* right; Node(T val) :_data(val), left(NULL), right(NULL) {} ~Node() {} }; template class BinSearchTree { public: BinSearchTree() :_root(0) {} void CreatTree(char* str) { int n = strlen(str); CreatTree_(_root,str,n); } void comFather(char a,char b) { return comFather_(_root,a,b); } protected: void comFather_(Node* root,char a,char b) { if (root->_data > a && root->_data < b) { cout _data _data > a && root->_data > b) comFather_(root->left, a, b); if (root->_data < a && root->_data < b) comFather_(root->right, a, b); } void insertVal(Node*& root, char ch) { if (root == NULL) { root = new Node(ch); return;

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

发表评论

0 个回复

  • NetworkProgrammming
    基于SOCKET编程,模拟聊天窗口,可选择端口号等,两个窗口之间可以相互发送信息。(SOCKET-based programming, simulation of the chat window, two windows to send messages between each other.)
    2009-04-02 16:09:10下载
    积分:1
  • shengyazhuanhuan
    用于进行声压转换的matlab文件,声压数据来源于ansys软件的计算后导出来的。(Used for sound pressure to convert matlab file, sound pressure data from the calculation software ansys guide out.)
    2013-09-26 09:10:30下载
    积分:1
  • hongwaileida
    针对粒子概率假设密度(PH D)滤波算法在虚警、漏检情况下,b标状态估计不稳定和b标可观测性车弱的问题,提出了一种基于序贯融合的粒子PH D滤波方法,利用雷达和红外传感器多目标进行融合跟踪杏基本思想是先对红外传感器进行粒子PH D滤波,丙将红外传感器滤波结果作为雷达的预测值,然后利用P达观测的数据进行更新,这样通过雷达和红外传感器交替上作保证目标状态的可观测性,从滤波器输出结身即可得到目标的状态信息仿真结果表明,在虚警、漏检和密集目标环境下,该方法是有效的和稳健的(The problem of target state estimation instability and observability weakerin the presence offalse alarms and missed detection was deal with. On the basis of sequential fusion, a particleprobabil- ity hypothesis density(PHD) filter for multrsensor multrtarget tracking was proposed. Observed da to collected from the infrared sensor was estimated with the particle PHD filter. Then the results from the filter were set as the radar predicted value by the radar observations. The multrtarget state can be updated to guarantee observing the target state. In this way, the global state is updated at the fusion center. Simulation results show that the proposed algorithm is effective and robust under the false warning, omission and concentrated target environment. )
    2012-03-06 16:27:41下载
    积分:1
  • STC15W4K56S4
    说明:  STC15W4K56S4 4串口均已初始化,可正常使用。(STC15W4K56S4 four uarts.)
    2020-12-09 10:59:19下载
    积分:1
  • AT91M42800A
    ATMEL AT91M42800 开发板的源代码(ATMEL AT91M42800 development board source code)
    2008-06-18 14:42:40下载
    积分:1
  • TCP_IP-Illustrated-Volume-I
    TCP_IP Illustrated Volume I.chm
    2012-05-21 14:54:11下载
    积分:1
  • ERNSYMNTY
    基于VisualC_和DCMTK的医学DICOM图像显示与调窗,同时在MFC 下完成鼠标拖动进行窗宽/窗位的调节(Medical image of DICOM VisualC_ and DCMTK display and window based on, at the same time in MFC complete the mouse to drag the window width/window regulator )
    2013-08-26 22:03:24下载
    积分:1
  • Harriscornerdetector
    说明:  harris 角点检测 MATLAB 代码(Harris corner detection MATLAB code)
    2010-05-05 10:03:54下载
    积分:1
  • TiendaCatalogo_Calendario_slnCMS
    CMS Application Calendar Page Dinamically with links
    2014-12-24 05:49:27下载
    积分:1
  • TensorFlow-paper
    说明:  文档,大家可以了解tensorflow的架构(Documentation, you can learn about tensorflow architecture)
    2020-06-25 09:40:02下载
    积分:1
  • 696518资源总数
  • 105559会员总数
  • 1今日下载