<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园__分类_算法</title><id>http://feed.cnblogs.com/blog/u/47054/category/218258/rss</id><updated>2012-05-31T17:09:56Z</updated><generator>feed.cnblogs.com</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/dooom/category/218258.html"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/47054/category/218258/rss"/><entry><id>http://www.cnblogs.com/dooom/archive/2010/04/20/1716430.html</id><title type="text">热门排行算法</title><summary type="text">文章热门排行要用到算法，没个思路，找了一些资料，借来用了。 给个公式：A 为某篇文章的具体发布时间，精确到秒；B 为一个固定的时间常量，2008-12-01 00:00:00。则可以计算得到 A 和 B 间隔的秒数 ts。 ts =A-B M表示某篇文章的来自于文章总推荐次数，R代表阅读数，C代表评论数。引入不同权重因子，则可以计算得到变量Z：R=3*A+2*C+1*RZ=M*3+R*1最后定义 ...</summary><published>2010-04-20T10:27:00Z</published><updated>2010-04-20T10:27:00Z</updated><author><name>clound</name><uri>http://www.cnblogs.com/dooom/</uri></author><link rel="alternate" href="http://www.cnblogs.com/dooom/archive/2010/04/20/1716430.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/dooom/archive/2010/04/20/1716430.html"/><content type="text">文章热门排行要用到算法，没个思路，找了一些资料，借来用了。 给个公式：A 为某篇文章的具体发布时间，精确到秒；B 为一个固定的时间常量，2008-12-01 00:00:00。则可以计算得到 A 和 B 间隔的秒数 ts。 ts =A-B M表示某篇文章的来自于文章总推荐次数，R代表阅读数，C代表评论数。引入不同权重因子，则可以计算得到变量Z：R=3*A+2*C+1*RZ=M*3+R*1最后定义 ...</content></entry></feed>
