Fastest way to search the table ( or array )
I got one, two dimensional array.
Both the array i.e.
are filled with some values.
We will have minimum and maximun value for both the columns.
For value_0 = 4.056 the minimum_v_0 = 4.05 and maximum_v_0 = 4.057
value_1 = -201.375 the minimum_v_1 = -201.380 and maximum_v_1 = -201.370
Now with each element in the array:
MyArray......MyArray will be checked, whether it is falling with minimum_v_0
MyArray......MyArray will be checked, whether it is falling with minimum_v_1
If both the column elements in a particular row will have values between corresponding
minimum and maximum value for that column then that row will be selected.
Make sure here both the column values must fall within corresponding range.
Please help me to do the fastest method for reaching to the value. We may require to arrange the
existing data in some structured form and develop the search algorithm.