Tous les livres

Professionnel

Applis À propos Coach Connexion Commencer la lecture

Computer Science · Glossaire

Qu'est-ce que « Degenerate tree » ?

Definition 17.6 University Computer Science — Year 1 · Chapitre 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.
Lire dans le chapitre →