TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Reddit, Stumbleupon, Del.icio.us and Hacker News Algorithms Exposed

67 pointsby marronealmost 17 years ago

10 comments

babulalmost 17 years ago
These are not the algorithms but an overview of the formulas.<p>For example the HN algorithm is outlined in several places e.g. <a href="http://news.ycombinator.com/item?id=38704" rel="nofollow">http://news.ycombinator.com/item?id=38704</a> and on the pg Arc site, and the reddit algorithms is<p><pre><code> def hot(ups, downs, date): s = score(ups, downs) order = log(max(abs(s), 1), 10) sign = 1 if s &#62; 0 else -1 if s &#60; 0 else 0 seconds = epoch_seconds(date) - 1134028003 return round(order + sign * seconds / 45000, 7)</code></pre>
joshualmost 17 years ago
the delicious one is wrong.
评论 #234841 未加载
gojomoalmost 17 years ago
Use of true clock time in these formulas penalizes posts that are submitted at low-traffic times.<p>Using a virtual clock, such as a tick count based on traffic (number of other submissions, votes, pageviews, etc.), could adjust for this.
评论 #235918 未加载
评论 #235061 未加载
pierrefaralmost 17 years ago
For reddit, this is the public algo released with their code. I think we should not assume that's the algo they use on reddit.com. Think about it: they could easily release a basic algo and keep the good one for their own internal use.<p>At the very least, even reddit's blog post announcement of the code mentioned they're not open sourcing the spam detection code. Surely that's part of the ranking algo in that it determines if a submission gets ranked or not.<p>For the SU one, I think there is more to the story, but that's for another post...
评论 #235888 未加载
评论 #235874 未加载
globalrevalmost 17 years ago
Not to be an ass but how hard can they be anyway? Its not a formula like a^2 + b^2 = c^2<p>it is just some variables that they tweaked until they fit.
lakeeffectalmost 17 years ago
I thought karma had an influence on how something appears. If not what is the point of karma?
评论 #236543 未加载
Jaxalmost 17 years ago
Yippee! Thats great. But how did u findout delicious's and stumbleupon's? By reverse engineering technique... like... Were these found out(or guess-worked) by constantly keeping track of the ranking of content?<p>Joshu, i think the del.icio.us formula is right, or they might just be using a different time constraint than 1 hour(maybe 2hrs or anything else). Because to findout what's popular they dont require any complex stuff. Simple math as specified in Danny's post is enough for their task.<p>Go Danny! Go!!!
评论 #235023 未加载
评论 #234966 未加载
byrneseyeviewalmost 17 years ago
It would be nice to have a less misleading title. I clicked to find out what Digg's algorithm is.
评论 #234867 未加载
redorbalmost 17 years ago
can't be to hard to finds .yc's - cause its open. i hope this doesn't send a flood of seo's ;)
Raphaelalmost 17 years ago
Mathematically speaking, would it make a difference to use p^2 / t instead of p / t^2?