Todos os livros

Profissional

Apps Sobre Coach Entrar Começar a ler

Computer Science · Glossário

O que é Ordered dictionary, successor?

Também chamado de: ordered dictionary · successor (in a search tree)

Definition 17.4 University Computer Science — Year 1 · Capítulo 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.
Ler no capítulo →