in reply to Re^4: Modified Binary Search
in thread Modified Binary Search
You can easily find the smallest index containing your target value
How about finding the smallest index that contains a value equal or greater than your target; or highest equal or less?
And how about you post a full sub save all of us trying to recreate your thought?
It doesn't increase the run time complexity
The proof is in the pudding!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Modified Binary Search
by salva (Canon) on Jan 14, 2010 at 13:37 UTC | |
|
Re^6: Modified Binary Search
by JavaFan (Canon) on Jan 14, 2010 at 13:03 UTC | |
by BrowserUk (Patriarch) on Jan 14, 2010 at 13:06 UTC | |
by BrowserUk (Patriarch) on Jan 16, 2010 at 01:19 UTC | |
by salva (Canon) on Jan 16, 2010 at 08:44 UTC | |
by BrowserUk (Patriarch) on Jan 16, 2010 at 09:56 UTC | |
by JavaFan (Canon) on Jan 16, 2010 at 11:36 UTC |