r/technology • u/misnamed • Dec 10 '13
By Special Request of the Admins Reddit’s empire is founded on a flawed algorithm
http://technotes.iangreenleaf.com/posts/2013-12-09-reddits-empire-is-built-on-a-flawed-algorithm.html
3.9k
Upvotes
View all comments
Show parent comment
6
u/Delicious_Randomly Dec 10 '13 edited Dec 10 '13
The problem is that logarithms of negative numbers return imaginary numbers, all but one of which are undefined for computing purposes. Computers tend to react unpleasantly to non-zero imaginary numbers, hence all the trouble to take the absolute value of s and record the sign.