Answer the question
In order to leave comments, you need to log in
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
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.
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
You can use predictionIO . It has pretty smart similarity and recommendation algorithms.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question