登录
首页 » 数据结构 » 主要是二叉树的一些性质的操作。包括复制,清空,求取树高,树中元素的个数,得到根结点,父亲结点,所有祖先,左儿子,右儿子,插入左儿子,右儿子,查找某个元素,以及前...

主要是二叉树的一些性质的操作。包括复制,清空,求取树高,树中元素的个数,得到根结点,父亲结点,所有祖先,左儿子,右儿子,插入左儿子,右儿子,查找某个元素,以及前...

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

代码说明:

主要是二叉树的一些性质的操作。包括复制,清空,求取树高,树中元素的个数,得到根结点,父亲结点,所有祖先,左儿子,右儿子,插入左儿子,右儿子,查找某个元素,以及前、中、后、层次遍历和相关的操作。另外,可以树形显示这棵树的信息。-Some properties are mainly binary operation. Including reproduction, empty, to strike a tree height, the number of elements in the tree get root node, the father node, all the ancestors, the left son, right son, insert the left son, right son, to find an element, and the former , during and after, hierarchical traversal and related operations. In addition, you can display tree tree information.

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

发表评论

0 个回复

  • A*算法,自己通过学习写的,希望大家多多指点.....mqfcu7@tom.com
    A*算法,自己通过学习写的,希望大家多多指点.....mqfcu7@tom.com-A* algorithm, by learning to write their own, and I hope a lot of pointing everyone ..... mqfcu7@tom.com
    2022-02-04 15:13:47下载
    积分:1
  • B+树实现源码,JAVA语言,数据库索引技术
    B+树实现源码,JAVA语言,数据库索引技术-B+ Tree source, Java language, database indexing technology
    2022-10-19 16:40:03下载
    积分:1
  • 教堂管理系统
    使用窗体开发了这个教堂管理系统 (兼容性-视觉工作室 2010 年或以上和水晶报表必须安装在您的系统,这个项目成功运行) 和在后端使用 MS Access 2010 数据库。
    2023-05-05 15:40:04下载
    积分:1
  • 算法导论(中文版),讲述了现代计算机常用数据结构和算法
    算法导论(中文版),讲述了现代计算机常用数据结构和算法-this book intrdduce the basic algorithm,the language is chinese
    2022-08-10 02:08:13下载
    积分:1
  • 排课表,对于给定的课程及其先序关系,给出所需学期数最少的排法。...
    排课表,对于给定的课程及其先序关系,给出所需学期数最少的排法。-Course Scheduling table, for a given sequence of courses and their relationship first, given at least the required number of semester scheduling method.
    2022-04-16 17:28:33下载
    积分:1
  • " Database system implementation," the first four chapters, the databas...
    《数据库系统实现》前四章,数据库实现的经典书,介绍了很多原理性的东西。-" Database system implementation," the first four chapters, the database to achieve a classic book describes the principles of a lot of things.
    2022-01-21 06:16:59下载
    积分:1
  • jsp连接数据库代码大全
    一、jsp连接Oracle8/8i/9i数据库(用thin模式) 二、jsp连接Sql Server7.0/2000数据库  三、jsp连接DB2数据库 四、jsp连接Informix数据库  五、jsp连接Sybase数据库 
    2022-01-24 09:26:58下载
    积分:1
  • CSharp下的图书管理系统源码,值得学习
    CSharp下的图书管理系统源码,值得学习-CSharp under the library management system source code, it is worth learning
    2023-06-26 15:10:04下载
    积分:1
  • 哈夫曼树和哈夫曼编码: 从终端输入若干个字符及其对应的整数,将整数作为结点的权值,建立哈夫曼树,然后对各字符进行哈夫曼编码。最后打印哈夫曼树和对应的哈夫曼编...
    哈夫曼树和哈夫曼编码: 从终端输入若干个字符及其对应的整数,将整数作为结点的权值,建立哈夫曼树,然后对各字符进行哈夫曼编码。最后打印哈夫曼树和对应的哈夫曼编码。 设计要求: ⑴ 哈夫曼殊和哈夫曼编码的存储表示参考教材事例 ⑵ 在程序中构造四个子程序为 ① int createhtree(HTree *t) /*根据输入的字符及其权值建立哈夫曼树*/ ② void coding(HTree *t, char *code) /*对哈夫曼树进行编码*/ ③ void printhtree(HTree *t, int* path) /*中序打印树*/ ④ void printcode(HTree *t) /*输出个字符的哈夫曼编码*/ -Huffman tree and the Huffman coding: input from the terminal a number of characters and their corresponding integer, will be an integer as node weights, the establishment of Huffman tree, and then on the characters Huffman. Finally print Huffman tree and the corresponding Huffman. Design requirements: ⑴ Huffman and Huffman coding is that the reference materials storage ⑵ examples constructed in the procedure for the four subroutines ① int createhtree (HTree* t)/* input characters in accordance with its right value the establishment of Huffman tree*/② void coding (HTree* t, char* code)/* Huffman tree to encode*/③ void printhtree (HTree* t, int* path)/* Pri
    2022-01-22 06:46:42下载
    积分:1
  • LTE Sim 流动
    * 本文件是 LTE Sim 的一部分* LTE Sim 是免费软件 ;你可以将它重新分发和/或修改* 根据 GNU 通用公共许可证版本 3 作为它由自由软件基金会 ; 的出版 ;* LTE Sim 被分布在希望它会有用的* 但不提供任何保证 ;没有甚至隐含的担保* 适销性或适合特定目的。请参见* GNU 通用公共许可证有关更多详细信息。*
    2022-02-24 20:31:28下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载