in reply to Re^4: performance issues with grepping large sorted arrays
in thread performance issues with grepping large sorted arrays
The point is: ...
If you think that this is The point, could you elaborate on its practical relevance with respect to the statement I originally (implicitly) made, which is just that skipping unnecessary iterations/comparisons is faster (in the typical case) than doing full iterations every time (like grep). This holds even though the upper bound expressed in both algorithms' Big O complexity classification is the same. I never made any statement as to the method being O(N) or not. Also, no doubt that a binary search on a sorted list would be faster...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: performance issues with grepping large sorted arrays
by mr_mischief (Monsignor) on Jul 24, 2007 at 20:13 UTC |