Algorithms_in_C  1.0.0
Set of algorithms implemented in C.
bead_sort.c File Reference

Sorting of array list using bead sort More...

#include <stdio.h>
#include <stdlib.h>
Include dependency graph for bead_sort.c:

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. More...
 
void bead_sort (int *a, size_t len)
 This is where the sorting of the array takes place. More...
 
int main (int argc, const char *argv[])
 Main function.
 

Detailed Description

Sorting of array list using bead sort