Algorithms_in_C
1.0.0
Set of algorithms implemented in C.
|
Convert decimal to binary using recursion algorithm. More...
#include <assert.h>
Functions | |
int | decimal_to_binary (unsigned int number) |
Decimal to binary using recursion algorithm. More... | |
void | test () |
Test function. More... | |
int | main () |
Driver Code. | |
Convert decimal to binary using recursion algorithm.
int decimal_to_binary | ( | unsigned int | number | ) |
Decimal to binary using recursion algorithm.
For example, if number = 5, the function returns the decimal integer 101.
number | positive integer number to convert |
test | ( | ) |
Test function.
A function to test the kMeans function Generates 100000 points in a circle of radius 20.0 with center at (0,0) and cluster them into 5 clusters