Alle boeken

Professioneel

Apps Over Coach Inloggen Begin met lezen

Computer Science · Begrippenlijst

Wat is Ordered dictionary, successor?

Ook bekend als: ordered dictionary · successor (in a search tree)

Definition 17.4 University Computer Science — Year 1 · Hoofdstuk 17 — Binary Search Trees and Balanced Trees

An ordered dictionary is a dictionary whose keys are ordered, with the further operations minimum, maximum, floor (the largest key at most kk), ceiling, successor (the smallest key larger than kk), and the listing of the keys between two bounds.

Left: the tree of  and the path of the search for the floor of Jo (shaded): Mia, Eli, Ivy and Kai; the answer is Ivy, the last node where the search went right. Right: after deleting Eli, its successor Gus has taken its place.
Left: the tree of Output 17.1 and the path of the search for the floor of Jo (shaded): Mia, Eli, Ivy and Kai; the answer is Ivy, the last node where the search went right. Right: after deleting Eli, its successor Gus has taken its place.
Lees in het hoofdstuk →