登录
首页 » 其他项目 » 平衡二叉树操作的演示 一、 需求分析 (1) 利用平衡二叉树实现动态查找表。实现查找,插入和删除三种基本功能。 (2) 初始,平衡二叉树为空树,操作...

平衡二叉树操作的演示 一、 需求分析 (1) 利用平衡二叉树实现动态查找表。实现查找,插入和删除三种基本功能。 (2) 初始,平衡二叉树为空树,操作...

于 2022-03-05 发布 文件大小:40.51 kB
0 371
下载积分: 2 下载次数: 1

代码说明:

平衡二叉树操作的演示 一、 需求分析 (1) 利用平衡二叉树实现动态查找表。实现查找,插入和删除三种基本功能。 (2) 初始,平衡二叉树为空树,操作界面给出查找,插入和删除三种操供选择。每种操作均要提示输入关键字。每次插入和删除一个接点时,显示更新的平衡二叉树。 (3) 重点在于对删除算法的实现。假设要删除的关键字为X的结点,若X不在叶子结点上,则用左子树中的最大值或者右子树中的最小值取代X。如此反复,直到删除动作传递到某个叶子结点,删除叶子结点时,若要进行平衡变换,可采用插入的平衡变换反变换。 -balanced binary tree operation of a demonstration, demand analysis (1) using a balanced binary tree dynamic lookup table. Lookup, insertion and deletion of the three basic functions. (2) The initial, balanced binary tree is empty tree interface gives you insert and delete options for the three parade. Each operation will have to be me to input keywords. Each insert and delete a contact in that update balanced binary tree. (3), the focus is on the deletion algorithm. To remove the assumption that the keyword for the X-Node, if X is not the leaf nodes, Left-used for the highest tree or right-tree to replace the minimum X. So repeatedly, until the deletion of a transfer leaf nodes, delete the leaf nodes, if balancing transform, Ins

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

发表评论

0 个回复

  • Galax view
    Galax view - 对太阳系的星球信息查询-Galax view- to view the planet info
    2022-03-16 04:59:29下载
    积分:1
  • Download the official site of the 2.5 version of myJXTA, configured form again a...
    在官方网站上下载了2.5版本的myJXTA,配置好窗体后跑了一遍,感觉这个示例程序的功能还是蛮强大的,但是这个程序的API写得比较简单,所以决定自己仔细研究研究~-Download the official site of the 2.5 version of myJXTA, configured form again after the run, I feel the function of the sample or very strong, but this process is relatively simple API written, so carefully studied to determine their own study ~
    2023-06-10 18:15:03下载
    积分:1
  • DC motor driver BA5888 small aging process, very simple! !
    驱动BA5888老化直流马达的小程序,很简单的-DC motor driver BA5888 small aging process, very simple! !
    2023-01-17 09:15:04下载
    积分:1
  • operate a registry of the class
    一个操作注册表的类的应用-operate a registry of the class
    2022-02-24 15:00:12下载
    积分:1
  • VHDL电子时钟
    用VHDL实现的电子时钟,24小时格式,可以通过按键调整时间得益于数电知识中的计数器级联构成高进制计数器的启发,我的思路是这样的:1)各不同位的时钟问题。时钟共有6位,分别为秒的高低位、分的高低位、时的高低位。把秒低位的进位当作秒高位的时钟,秒高位的进位当作分低位的时钟,依次类推,可以解决不同位的不同时钟问题。2)各不同位的进制问题。与此同时要解决进制问题,秒分的低位为十进制,秒分的高位为六进制,以及时的高位为三进制(电子时钟为24小时制),这五种情况都易解决,但时的低位就有点复杂了,既有十进制的情形又有四进制的情形。仔细琢磨之后,根据两条IF语句解决了这个问题。那就是若小时高位为”0000”或”0001”时,时的低位为十进制,若小时高位为”0010”,时的低位为四进制。3)校时问题。刚开始时,对了校时没有个思路。但有一次我想看看整体进制等对不对,于是把整体时钟调快了很多,这样,很快就走了“24”小时,然后灵感就来了,就想可以设置这么两个不同频率的整体时钟,一个可能控制分,一个可以控制小时,然后为了可以精确到秒,又设置了一个可以让整个时钟系统暂停的按键,这样整个时钟的实现就完成了,最后又在时分和分秒中间加入了一个小横杠”-”。
    2023-08-22 19:40:04下载
    积分:1
  • JAVA2游戏程序设计源码,图书光盘源码!
    JAVA2游戏程序设计源码,图书光盘源码!-JAVA2 game programming source code, books CD-ROM Source!
    2022-03-23 04:26:03下载
    积分:1
  • 俄罗斯的很好的游戏
    非常不错的俄罗斯游戏-very good game of Russian
    2023-09-02 16:05:03下载
    积分:1
  • sysexplorer 0.21 for Symbian os9.1版
    SysExplorer version 0.21 for Symbian OS9.1
    2022-01-27 19:54:04下载
    积分:1
  • 这个是老师要叫的作业,会很有用哦,输入一段程序,就会判断词法类型...
    这个是老师要叫的作业,会很有用哦,输入一段程序,就会判断词法类型-this is the teacher called to the operation, it will be very useful, oh, the importation of some procedures, it will judge the type morphology
    2023-02-10 09:25:04下载
    积分:1
  • before the start of the game with four direction keys adjust height and speed, p...
    游戏开始前用四个方向键调整高度和速度,按回车键开始游戏 游戏过程中回车键为暂停键,ESC键为退出键-before the start of the game with four direction keys adjust height and speed, press the Enter key begin the process of the game"s keys to enter reversed, the ESC key to withdraw from the bond
    2022-03-24 17:39:08下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载