Popularity algorithm

后端 未结 2 1001
深忆病人
深忆病人 2020-12-04 17:30

On SO 18 Joel mentioned an algorithm that would rank items based on their age and popularity and it\'s based on gravity. Could someone post this? C# would be lovely, but re

相关标签:
2条回答
  • 2020-12-04 17:35

    My understanding is that it is approximately the following from another Jeff Atwood post

    t = (time of entry post) - (Dec 8, 2005)
    x = upvotes - downvotes
    
    y = {1 if x > 0, 0 if x = 0, -1 if x < 0)
    z = {1 if x < 1, otherwise x}
    
    log(z) + (y * t)/45000
    
    0 讨论(0)
  • 2020-12-04 17:36

    alt text http://www.mt-soft.com.ar/wordpress/wp-content/plugins/wp-o-matic/cache/0ad4d_reddit_cf_algorithm.png

    0 讨论(0)
提交回复
热议问题