I've been thinking about rating systems. Some sites have simple up/down systems where you can vote a link up one point or down one point; and if you think it's high enough already, you can leave it. Many websites use averages of votes on a scale; the problem here is that when you have enough people voting, it's always in your favor to vote 1 or
(
Read more... )
Comments 1
Start with n=b, acc=0. REPEAT: acc=acc+B_n. if acc>D(n), stop with victor=n. otherwise :REPEAT
This is O(b), which is not bad at all. The sort is O(u) (not really sorting in the general sense, but it's all we need). In practice b will be fixed, so the entire process is O(u). That entire cost can be distributed over long periods of time (as the votes are cast). It should be obvious that the constants are small, too.
Taking a mean is also O(u), and the constants are comparable. A median can be found the same as in this method but with D(n) a constant u/2.
Reply
Leave a comment