![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
二叉树
文章平均质量分 71
鄜州与月
这个作者很懒,什么都没留下…
展开
-
If a general tree T is converted into a binary tree BT, then which of the following BT...
If a general tree T is converted into a binary tree BT, then which of the following BT traversals gives the same sequence as that of the post-order traversal of T?答案:inorder traversal【解析】普通树(general tree)转化为二叉树(binary tree)具体可以看普通树转二叉树其实就是节点p的左儿子a还是左原创 2021-11-16 00:30:26 · 3297 阅读 · 0 评论 -
(浙江大学数据结构)PTA Complete Binary Search Tree (10 分)
题目:A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties:The left subtree of a node contains only nodes with keys less than the node's key. The ...原创 2019-11-12 14:06:03 · 905 阅读 · 0 评论 -
中序遍历的C语言方法与二叉查找树的检验——binary search tree判定
本文章参考https://blog.csdn.net/wydyd110/article/details/83000194二叉树遍历分为三种:前序、中序、后序,其中序遍历最为重要。是根据根节点的顺序命名的。比如正常的一个满节点,A:根节点、B:左节点、C:右节点,前序顺序是ABC(根节点排最先,然后同级先左后右);中序顺序是BAC(先左后根最后右);后序顺序是BCA(先左后右最后根)。而中序遍...原创 2019-10-19 19:14:25 · 224 阅读 · 0 评论