47 for (
int i=0;i<
size;i++){
49 if (data[i]<min) min=data[i];
52 cout<<
"min="<<min<<endl;
55 for (
int i=0;i<
size;i++){
56 unsigned int hashIndex=hashFunction(data[i],min);
59 arrays[hashIndex][arrays[hashIndex].
len()]=data[i];
62 for (
int i=0;i<arrays.
len();i++){
int hashFunction(int input, int min)
Arrays< Array< HTYPE > > arrays
Arrays(unsigned int size)
void hashSort(unsigned int size, int *data)