Heap sorting is attractive because selecting the smallest M elements from a dataset of size N (N being much larger than M) requires storing only M elements in memory at any one time.That means that he can very well store the entire heap, the M elements, in memory.
Makeshifts last the longest.
In reply to Re^5: Heap sorting in perl
by Aristotle
in thread Heap sorting in perl
by blakem
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |