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) |
| int | cmp (const long *a, const long *b) |
| used only for longs. | |
| void | debug (long *a, int n) |
| Debugging output. | |
| int | main (int argc, char **argv) |
| Launch the application. | |
Example (test case) for median sort and produces image.
| int cmp | ( | const long * | a, | |
| const long * | b | |||
| ) |
used only for longs.
| void debug | ( | long * | a, | |
| int | n | |||
| ) |
Debugging output.
| int main | ( | int | argc, | |
| char ** | argv | |||
| ) |
Launch the application.
| void mediansort | ( | int | id, | |
| long * | ar, | |||
| int(*)(const long *a, const long *b) | cmp, | |||
| int | left, | |||
| int | right | |||
| ) |
Algorithm Development Kit 1.0