Todos os livros

Profissional

Apps Sobre Coach Entrar Começar a ler

Computer Science · Glossário

O que é Balanced tree, degenerate tree?

Também chamado de: balanced tree · degenerate tree

Definition 25.8 High School Computer Science · Capítulo 25 — Trees and Binary Search Trees

A binary tree is balanced when its height is close to the smallest possible for its size, about the number of halvings of nn. It is degenerate when every node has at most one child: it is then a list, of height n−1n - 1.

The same seven keys, two orders of insertion. Finding 7 visits seven nodes on the left, three on the right.
The same seven keys, two orders of insertion. Finding 77 visits seven nodes on the left, three on the right.
Ler no capítulo →