Gotjosh
Gotjosh

Reputation: 1049

Help with Ruby on Rails 5 points ranking algorithm

I'm currently in the process of developing a digg-like Ruby on Rails application for my degree's Final Project and I'm stuck in the 5 point ranking algorithm.

There are a couple of factors that need to be involved, here's a breakdown :

Users

Stories

In the end, i have 3 rankings. The avg user ranking, the ranking of the user per category and the ranking of each story.

I've found this link : http://www.seomoz.org/blog/reddit-stumbleupon-delicious-and-hacker-news-algorithms-exposed

It decomposes various ranking algorithms, the Reddit algorithm seems to adapt my needs, I believe that it's just a matter of replacing the X = D - U variable with a proper equation that avgs the 1-5 points that can be given.

What do you guys think?

Thank you, Josh

Upvotes: 1

Views: 1283

Answers (1)

AVB
AVB

Reputation: 4024

It seems to me from your question that you are over-concerned with the initial ranking. The massive public response (or the lack of it) will overweight any initial ranking pretty fast.

Also, you can see from the linked article that all the formulas are merely simple analytic approximations to whatever behavior the creators had in mind (or, more likely, had sketched as a rough graph on a piece of paper). Thus, my recommendation will be - think what do you want to happen to the ranking as the time passes and people cast their votes; do some sketches of this behavior; think of a function that does more-or-less what you want; play with the constants until satisfied with the result.

Sorry about being rather vague, but this is homework, after all, and you gave a fairly vague description yourself. You are always welcome with further questions.

Upvotes: 1

Related Questions