Author :
Beichl, Isabel ; Sullivan, Francis
Author_Institution :
Comput. & Appl. Math. Lab., NIST, Gaithersburg, MD, USA
Abstract :
Previously, we described a fast method for selecting from a list at random, biased by predetermined rates or probabilities (see ibid., vol.2, p.13, 1996). However, sometimes "probabilistically next" is not good enough. What if we have some criterion or priority for selecting from the list? For this type of problem we can introduce the heap, a data structure that allows us to keep track of the maximum or the minimum dynamically. Heaps are an effective way of maintaining a priority queue. They are also good for sorting.
Keywords :
data structures; list processing; sorting; heap data structure; list selection; predetermined rates; priority queue; probabilistically next; probability; sorting; tree data structure; Binary search trees; Binary trees; Data structures; Mesh generation; Shape; Sorting; Springs;
Journal_Title :
Computational Science & Engineering, IEEE