Re: binary search with reference to append
- Posted by DerekParnell (admin) Jun 14, 2014
- 1884 views
petelomax said...
I'd never seen this before. Can someone please enlighten me.
That's not how I remember first writing the primes routine. I thought that if the next prime was a small one, a sequential search of the first 'X' would be faster than doing a binary search of a large table. I don't know why a ranged binary search is there.