C/C++
russell.lst
Associated article: A Generic Heapsort Algorithm in C
Tags: C/C++ Tools
_A GENERIC HEAPSORT ALGORITHM IN C_
by Stephen Russell
[LISTING ONE]
/*
* The Heapsort to sort an array of n integers.
*/
static
fixheap(h, i, n)
int *h;
unsigned i, n;
{
unsigned k;
int tmp;
while ((k = 2 * i) <= n) /* h[...


