steve_bank
Diabetic retinopathy and poor eyesight. Typos ...
I have been doodling to get back into it.
Sorting abd searching are najor areas. Although computer speeds have increased so has the size of data sets. Data ming requires multiple searches and corelations on large data bases.
starting simple finding a a nax or min value is easy. C is my language but it should be readable.
int find_max(int *list[]){ // pass a pointer to the start of the list
// finds max number in an integer array
// array is passed by pointer
int number_entries, i, max_value;
number_entries = szeof(list)/sizeof(list[0]); // Divide total size of list by size of one entry
max_value = list[0]; // initialize to first element c arrays start at 0 not 1
For (i = 1; i < number_entries; i++){
if(list > max_value) max_value = list;
}
return(max_value);
}// find_max() end
integer array 2, 0, 4, 1
max_value 2, 2, 4, 4
I'd have to run it to make sure it worked for negative numbers
Sorting abd searching are najor areas. Although computer speeds have increased so has the size of data sets. Data ming requires multiple searches and corelations on large data bases.
starting simple finding a a nax or min value is easy. C is my language but it should be readable.
int find_max(int *list[]){ // pass a pointer to the start of the list
// finds max number in an integer array
// array is passed by pointer
int number_entries, i, max_value;
number_entries = szeof(list)/sizeof(list[0]); // Divide total size of list by size of one entry
max_value = list[0]; // initialize to first element c arrays start at 0 not 1
For (i = 1; i < number_entries; i++){
if(list > max_value) max_value = list;
}
return(max_value);
}// find_max() end
integer array 2, 0, 4, 1
max_value 2, 2, 4, 4
I'd have to run it to make sure it worked for negative numbers