3 ms·
I'd say when you have big n, smart algorithms O(n) are better. But most of the time you have small n. better to optimize just the real big N in your program, fo
by makapuf 10y ago
I'd say when you have big n, smart algorithms O(n) are better.
But most of the time you have small n. better to optimize just the real big N in your program, for what you profiled, than using complex and "optimized" algos when N<1000.
(I cannot retrieve the article this was taken from)
- adrianN 10y ago"It's okay for my n!" http://accidentallyquadratic.tumblr.com/ http://accidentallyquadratic.tumblr.com/