#include <stdlib.h>
#include "report.h"
#include "bucketLinkedListSortPtr.h"
Functions | |
| void | extract (BUCKET *buckets, int(*cmp)(const void *, const void *), void **ar, int n) |
| One by one remove and overwrite ar. | |
| void | sortPointers (void **ar, int n, int(*cmp)(const void *, const void *)) |
| Invoke BucketSort on the given array. | |
Variables | |
| static BUCKET * | buckets = 0 |
| static int | num = 0 |
| Number of buckets. | |
| void extract | ( | BUCKET * | buckets, | |
| int(*)(const void *, const void *) | cmp, | |||
| void ** | ar, | |||
| int | n | |||
| ) |
One by one remove and overwrite ar.
| void sortPointers | ( | void ** | ar, | |
| int | n, | |||
| int(*)(const void *, const void *) | cmp | |||
| ) |
Invoke BucketSort on the given array.
Insert each element and increment counts
int num = 0 [static] |
Number of buckets.
Algorithm Development Kit 1.0