Lurker News

Comments (491) 209 threads

Earlier comments
catears#
I personally enjoy the Fenwick Tree: https://en.m.wikipedia.org/wiki/Fenwick_tree

What is it used for? It allows one to both query and update prefix sums in O(log n), for a normal array this would be O(n)/O(1) respectively.
The cool thing is that it can be emulated with an array and as such it takes just the same amount of space as an array.
The best part is that they can be implemented (simple version) in about 10 lines of C++ code.

kevlar1818#
The backpropagation algorithm is at once simple and incredible. It enables automatic parameter optimization for millions of parameters for extremely complex, nonlinear functions, all with just a basic knowledge of calculus.
jeromebaek#
Can you elaborate on how this is related to diagonalization (other than the surface resemblance)?
oddthink#
I always thought there was something almost magical about this one.
skrebbel2 replies#
Long division, because it shows that you don't need computers to run algorithms and that, in fact, any kid can do it.
killaken2000#
I find it pretty cool that it also works with polynomials in what's often called 'algebraic long division'

Load more comments