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.

Labor of Division (2010)

18 pointsby Cieplakalmost 5 years ago

2 comments

dvtalmost 5 years ago
As I was reading, I was slowly understanding that N-bit division would require (in the worst case) an N + 1 bit magic number. How in the world could this be solvable in the general case? My assumption was that we just did division for those numbers the &quot;old-fashioned&quot; way.<p>But, at the end of the day, the <i>actual</i> solution -- ((n − q) ≫ 2) + q -- is ingenious, fantastic article!
kanoboalmost 5 years ago
For more algorithm fun exactly like this, check out the classic Hacker&#x27;s Delight book (<a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Hacker%27s_Delight" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Hacker%27s_Delight</a>)
评论 #24137583 未加载