News for hackers. Stuff that matters.
Re:Backpropagation is a leaky abstraction by masklinn on Tuesday December 20, 2016 @04:04AM (#13218439)
> What is O(n log n)? Time complexity?

And then worst case? Best case? Average case? Which applies to random input? Nearly-sorted input? What's the overhead for a "short sort", can/should I use this to sort small sequences in a tight-ish loop or is it only for large sequences?

Re:Backpropagation is a leaky abstraction by dkersten on Tuesday December 20, 2016 @06:15AM (#13218911)
And then worst case? Best case? Average case?

I was under the illusion that Big-O was always asymptotic complexity (ie worst case) and that other notations (little-o, big-omega, big-thetha etc) were used for best/average/etc case. Perhaps I'm wrong, however.

Which applies to random input? Nearly-sorted input? What's the overhead for a "short sort", can/should I use this to sort small sequences in a tight-ish loop or is it only for large sequences?

Indeed. The details matter.

My favourite example is how a naive linear search can perform better than a non-linear search with a better (in O() terms) algorithm if, for example, the linear search can do most of its work in cache (eg small input sizes or otherwise regular access patterns (predictable for prefetch)).

Re:Backpropagation is a leaky abstraction by 4ad on Tuesday December 20, 2016 @08:18AM (#13219505)
> I was under the illusion that Big-O was always asymptotic complexity (ie worst case) and that other notations (little-o, big-omega, big-thetha etc) were used for best/average/etc case. Perhaps I'm wrong, however.

No, asymptotic notation only refers to the behaviour of the function (or algorithm) as you take the limit N->inf, e.g. changes to the size of the input. But the nature of the input often changes the behavior as well.

Re:Backpropagation is a leaky abstraction by dkersten on Tuesday December 20, 2016 @01:41PM (#13222619)
Thanks for the correction!
Re:Backpropagation is a leaky abstraction by scott_s on Tuesday December 20, 2016 @09:55AM (#13220283)
You can have Big-O of worst case and Big-O of average case. "Asymptotic complexity" itself does not imply worst case; the assumptions you make to construct the function itself determine worst case or average case.