Tuesday, 26 February 2013

C Implementation Of Radix sort

/*Radix sort using counting sort*/ #include <stdio.h> #include <conio.h> #define max 10 void print(int arr[max],int len) {     int i;     for(i=0;i<len;i++)         printf("%d\t",arr[i]);     printf("\n"); } void counting_sort_modified(int source_array[max],int destination_array_order[max],int upper_bound,int src_array_length) {     int temp_buffer[max],i;     for(i=0;i<=upper_bound;i++)     {         temp_buffer[i]=0;     }     for(i=0;i<src_array_length;i++)     {         temp_buffer[source_array[i]]=temp_buffer[source_array[i]]+1;     }     for(i=1;i<=upper_bound;i++)     {    ...

Sunday, 14 October 2012

Introduction to Data Types in C Language

Normal 0 false false false EN-US X-NONE X-NONE /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; ...

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
@Gnosioware Solutions