全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Degenerate tree?

Definition 17.6 University Computer Science — Year 1 · 第 17 章 — Binary Search Trees and Balanced Trees

A tree is degenerate when every node has at most one child: its height is n−1n - 1, and it is a linked list.

Heights from . The alphabetical order climbs as n - 1 and leaves the chart at n = 27; random orders grow slowly; the AVL tree stays within one or two of the lower bound.
Heights from Output 17.2. The alphabetical order climbs as n−1n - 1 and leaves the chart at n=27n = 27; random orders grow slowly; the AVL tree stays within one or two of the lower bound.
在原文中阅读 →