r/technology • • 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
4.0k Upvotes

2.2k comments sorted by

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.

1

u/deong Dec 10 '13

Computers are fine with complex numbers. Arithmetic is well defined on them, and if your programming language doesn't support them, then it's pretty easy to define them yourself.

Humans tend to react unpleasantly to complex numbers.

There's also the downside that, as a scoring system, complex numbers aren't suitable as there's no total ordering on the set that makes sense as a ranking.