Alle boeken

Professioneel

Apps Over Coach Inloggen Begin met lezen

Computer Science · Begrippenlijst

Wat is Balanced tree, degenerate tree?

Ook bekend als: balanced tree · degenerate tree

Definition 25.8 High School Computer Science · Hoofdstuk 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.
Lees in het hoofdstuk →