zhuang@linux:~/reading/introduction-to-algorithms/10-elementary-data-structures/$ less
Elementary Data Structures
This post extracts some knowledge from Introduction to Algorithms Chapter 10 – Elementary Data Structures.
Introduction
A dynamic set is a collection of elements that changes over time: elements may be added, removed, searched for, or queried in different ways.
CLRS describes several common operations on dynamic sets:
SEARCH(S, k): find an element with keykin setS.INSERT(S, x): add elementxto setS.DELETE(S, x): remove elementxfrom setS.MINIMUM(S): return the element with the smallest key.MAXIMUM(S): return the element with the largest key.SUCCESSOR(S, x): return the next larger element afterx.PREDECESSOR(S, x): return the next smaller element beforex.
zhuang@linux:~/reading/introduction-to-algorithms/10-elementary-data-structures/$ comments