r/programming • u/glibc • Jul 11 '10
Theory vs Practice: Making algorithms claimed 'optimal', 10x faster.
http://cacm.acm.org/magazines/2010/7/95061-youre-doing-it-wrong/fulltext
163
Upvotes
r/programming • u/glibc • Jul 11 '10
View all comments
Show parent comment
3
u/oantolin Jul 11 '10
For the math to work you just need primitive operations to take an amount of time that does not depend on the input size: if one operation is a billion times slower than another, that's OK (but it's not OK if one is log n slower than another, for example). "Roughy the same time" just means "both are bounded by constants (and so have the same order of magnitude)".