摘要:
题目1: The Huffman code is one kind of optimal prefix codes. For a given alphabet and its characters' frequencies,the Huffman codes may not be unique, b 阅读全文
posted @ 2022-12-11 23:52
noob-lian
阅读(45)
评论(0)
推荐(0)
摘要:
定义:左右子树都是avl树,对于任意节点,左右子树高度差的绝对值(节点的平衡因子)不超过1,超过就要旋转。 插入:以二叉搜索树的规则来插入,最有查找时间复杂度数log N。 平衡二叉树中所有节点的平衡因子都为0,则该平衡二叉树为perfect binary tree完美二叉树。 旋转:旋转简单来说, 阅读全文
posted @ 2022-12-11 23:40
noob-lian
阅读(72)
评论(0)
推荐(0)
摘要:
1. 树的度:树中所有节点最大的度为树的度,节点的度为儿子个数 2. In which of following data strutures, keys along each of the paths from any node to the root are ordered? 答案:堆,heap 阅读全文
posted @ 2022-12-11 23:07
noob-lian
阅读(54)
评论(0)
推荐(0)

浙公网安备 33010602011771号