登录
首页 » 数据结构 » 红黑树:输入:在同一目录下的redblacktree.txt文件中输入十个大于0的数值,每个数值中间用空格格开 数目可以大于十个,但是要求在源程序中改变#def...

红黑树:输入:在同一目录下的redblacktree.txt文件中输入十个大于0的数值,每个数值中间用空格格开 数目可以大于十个,但是要求在源程序中改变#def...

于 2022-06-11 发布 文件大小:53.39 kB
0 215
下载积分: 2 下载次数: 1

代码说明:

红黑树:输入:在同一目录下的redblacktree.txt文件中输入十个大于0的数值,每个数值中间用空格格开 数目可以大于十个,但是要求在源程序中改变#define NUM 10 ,改成相应关键值各个数输出:按照先序输出红黑树,格式为:根节点。颜色(左子树。颜色,右子树。颜色),并输出此 树的黑高度,然后输入要删除的关键值,按回车后输出删除后的结果,并输出其高度。-RED-BLACK TREE : Admission : in the same directory under the file input redblacktree.txt greater than 0 10 digits each intermediate numerical grid with open spaces can be greater than the number 10, but requested change in the source# define NUM 10, the corresponding critical value into several different output : In accordance with the first sequence RED-BLACK TREE output format : nodes. Color (left subtree. Color, right subtrees. Color), and export of the black tree height and then delete the key to value, according to enter the output was the result of the deletion, and its high output.

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

发表评论

0 个回复

  • 遵循C和基本C++标准的Map类,移植来至MFC的MapPtrToPtr,可以在各种平台下使用,可以在各种编译器下编译。...
    遵循C和基本C++标准的Map类,移植来至MFC的MapPtrToPtr,可以在各种平台下使用,可以在各种编译器下编译。-Follow the C and basic C++ Standard Map class, transplanted to the MFC
    2022-12-26 06:10:03下载
    积分:1
  • MFC实现的图书馆管理系统,希望对大家有用。
    MFC实现的图书馆管理系统,希望对大家有用。-MFC library management system to achieve the hope for all of us.
    2022-03-21 13:24:45下载
    积分:1
  • 图论中得kruskal 算法 求解最小生成树 算法为图论中得经典算法...
    图论中得kruskal 算法 求解最小生成树 算法为图论中得经典算法 -In graph theory a Kruskal algorithm for minimum spanning tree algorithm in graph theory a classical algorithm
    2022-03-19 20:45:12下载
    积分:1
  • 十分全的数据结构VC++源代码,是学习算法,设计,编程的必备资料,很实用的!...
    十分全的数据结构VC++源代码,是学习算法,设计,编程的必备资料,很实用的!-The data structure is very full VC++ source code, is a learning algorithm, design, programming of the necessary information, it is useful!
    2022-03-05 14:34:17下载
    积分:1
  • 网上提交申请系统,图像设备的更安全鉴定上传
    好发部位为管理目的。它被使用的接口,以保持和可能存储在web服务器上,或脱机的服务器的信息。该项目是完全在线,其中所述图像上载系统,为了先进的识别过程被完全给出。可能是这将作为一个福音为即将到来的婴儿潮一代,程序员还是业余软件开发人员学习和查看代码,最重要的理解,这将有助于它们的代码编写一些代码,更好的明天,将是成功的在矿井软件世界是这个蓬勃发展的日子。因此,该项目是非常有用的。
    2022-02-02 14:24:41下载
    积分:1
  • 1。我用VC 6编写的程序,包括过程的顺序…
    1.本程序由本人采用vc++ 6.0编写,包括了排序平衡二叉树的整套算法(包括插入、删除、查找以及其测试算法)。 2.运行myavl_vc.exe输入树的初始结点个数,确定后本程序将在内存中生成一棵相应结点数的二叉树,在此基础上你可以进行各种操作(插入、删除、查找以及测试其平衡性、排序性等) 3.每一个结点信息包括"商品编码"、"商品名称",且以"商品编码"作为关键字 4.初始生成的树的结点的商品编码为从1按顺序递增,商品名称为"生成的商品"加上商品编码 5.程序中的随机插入与随机删除是为了更好的测试程序的正确性和可靠性 6.随机插入(删除)时,程序将不断向(从)树中随机插入(删除)结点,每次随机插入(删除)都会进行平衡性与排序性的检查,如果树已经失去了有序性或平衡性,则会弹出树已失去了有序性或平衡性的提示并停止插入(删除)操作,当然你可以随时中断随机操作-1. The procedure I used vc 6.0 preparation, including the sequencing of the entire balanced binary tree algorithm (including insert, delete, search and test algorithm). 2. Running myavl_vc.exe importation of the initial tree node number, the procedures established in the memory of the formation of a corresponding nodes of a binary tree, and on this basis you can conduct various operations (insert, delete, search and testing their balance, sorting etc.) 3. each node information including "Product Codes," "trade names," and the "commodity codes" as the keyword 4. initial produ
    2022-03-11 19:21:53下载
    积分:1
  • 栈 单链表
    Java版栈和单链表数据结构的实现,并用相关实例测试了该程序的正确性。实际测试中,在Eclipse的Console端按要求输入数据,然后依次按Enter键和Ctrl+Z键结束当前输入,随后就可以看到相应的输出。
    2022-03-06 10:34:11下载
    积分:1
  • 英语学习的软件说明
    英语学习的软件说明-English learning software Note
    2022-04-30 23:30:59下载
    积分:1
  • 社区医疗系统
    一款社区医疗系统,对于领取药物,医药,员工工号,挂号,出勤,都可以在数据库中保存起来,比较适合中小医院,对于所要的基础硬件比较低的企业同样适合
    2022-02-02 17:26:21下载
    积分:1
  • 利用MATLAB程序贪心算法求解背包问题
    背包问题运用贪婪算法的matlab 程序实现-Use of greedy algorithm knapsack problem of matlab program
    2022-01-27 12:11:55下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载