Example (test case) for median sort and produces image. More...
#include <stdio.h>
#include <assert.h>
#include "dot.h"
Functions | |
void | mediansort (int id, long *ar, int(*cmp)(const long *a, const long *b), int left, int right) |
externally provided | |
int | cmp (const long *a, const long *b) |
used only for longs for ascending sorting. | |
void | debug (long *a, int n) |
Useful function for debugging. | |
int | main (int argc, char **argv) |
Run the test case. |
Example (test case) for median sort and produces image.
int cmp | ( | const long * | a, | |
const long * | b | |||
) |
used only for longs for ascending sorting.
void debug | ( | long * | a, | |
int | n | |||
) |
Useful function for debugging.
int main | ( | int | argc, | |
char ** | argv | |||
) |
Run the test case.
void mediansort | ( | int | id, | |
long * | ar, | |||
int(*)(const long *a, const long *b) | cmp, | |||
int | left, | |||
int | right | |||
) |
externally provided
Algorithm Development Kit 1.0