Sorting/Ints/testCountingSort.c File Reference

Test the Counting Sort algorithm on small example. A test case for Counting Sort. More...

#include <assert.h>
#include <stdio.h>

Defines

#define NUM   7
 sample size.

Functions

void countingSort (int *ar, int n, int k)
 Definition of counting sort.
int main (int argc, char **argv)
 Sample code for Figure 4-17 Counting Sort fact sheet.


Detailed Description

Test the Counting Sort algorithm on small example. A test case for Counting Sort.

Author:
George Heineman
Date:
6/15/08

Define Documentation

#define NUM   7

sample size.


Function Documentation

void countingSort ( int *  ar,
int  n,
int  k 
)

Definition of counting sort.

int main ( int  argc,
char **  argv 
)

Sample code for Figure 4-17 Counting Sort fact sheet.

Algorithm Development Kit 1.0