A
A
Alexander2014-01-15 13:24:43
PHP
Alexander, 2014-01-15 13:24:43

Which popular content sorting algorithm to choose?

Good afternoon, colleagues! Please push me towards the correct solution.
There is a list, for example, of articles located on the site in the appropriate section. Each article has a view count that increments by 1 each time a user views it.
The goal is to sort these articles in order of popularity, but in such a way that popular content doesn't become more popular by being at the top of the popular content list.
Indeed, in my opinion, it is quite logical that the more popular this or that content, the more popular it becomes - a positive feedback is formed.
As an answer, I gladly accepted a link to some algorithm or solution.
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Alexander, 2014-01-15
@bagger

There are many very articles on this topic (at least on Habré I definitely came across such articles).
Personally, the simplest thing that comes to mind for me is to make weight coefficients, the value of which will depend on the position of the article in the ranking (the fewer views, the greater the weight).
You can further complicate the algorithm by replacing a simple view counter with a view history and using this distribution for a more weighted ranking so that old articles do not interfere with the promotion of new ones.

D
Dmitry Prikhodchenko, 2014-01-15
@LazyProger

It is possible to add some parameter for such articles and pass it through $_GET, if it is present, then do not count the view

Z
zxmd, 2014-01-15
@zxmd

You can use predictionIO . It has pretty smart similarity and recommendation algorithms.

F
frees2, 2014-01-15
@frees2

If this is a list of other people's articles, some general news or topics, then their popularity can be determined by Google, by search, get json for example or rss/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question