|
Algorithms_in_C 1.0.0
Set of algorithms implemented in C.
|
Sorting of array list using bead sort More...
#include <stdio.h>#include <stdlib.h>Macros | |
| #define | BEAD(i, j) beads[i * max + j] |
| Create easy access of elements from a 2D matrix stored in memory as a 1D array. | |
Functions | |
| void | display (const int *arr, int n) |
| Displays the array, passed to this method. | |
| void | bead_sort (int *a, size_t len) |
| This is where the sorting of the array takes place. | |
| int | main (int argc, const char *argv[]) |
| Main function. | |
Sorting of array list using bead sort
| int main | ( | int | argc, |
| const char * | argv[] | ||
| ) |
Main function.