Sorting/PointerBased/heapSort.c File Reference

Generic Heap Sort implementation

Contains an optimized Heap Sort implementation for sorting strings. More...

#include "report.h"

Functions

void sortPointers (char **arr, int N, int(*cmp)(const void *, const void *))
 Execute Heap Sort on the string array.


Detailed Description

Generic Heap Sort implementation

Contains an optimized Heap Sort implementation for sorting strings.

Implementation taken from:

http://en.wikibooks.org/wiki/Algorithm_implementation/Sorting/Heapsort

Author:
George Heineman
Date:
6/15/08

Function Documentation

void sortPointers ( char **  arr,
int  N,
int(*)(const void *, const void *)  cmp 
)

Execute Heap Sort on the string array.

Algorithm Development Kit 1.0