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.

HAKMEM (1972)

132 pointsby Cieplakover 7 years ago

9 comments

EdwardCoffinover 7 years ago
Item 70, The chess problem &quot;stolen from Chess for Fun, Chess for Blood&quot; by Lasker is problem 66 from that book [1]. The problem as stated in the memo is wrong: the white bishop is on the eighth rank, not the seventh, so it should say Bishop on KB8, not on KB7. The problem in FEN is then:<p>5B2&#x2F;6P1&#x2F;1p6&#x2F;8&#x2F;1N6&#x2F;kP6&#x2F;2K5&#x2F;8 w - - 1 1<p>The version from Lasker&#x27;s book is <i>much</i> more interesting. It happens that the version from HAKMEM is also a mate-in-3, but kind of a mundane one, relative to Lasker&#x27;s anyway.<p>[1] Lasker&#x27;s book is on Google Books, and you can see the relevant page (page 145) <a href="https:&#x2F;&#x2F;books.google.ca&#x2F;books?id=y90UTQeLeeIC&amp;pg=PA145" rel="nofollow">https:&#x2F;&#x2F;books.google.ca&#x2F;books?id=y90UTQeLeeIC&amp;pg=PA145</a> (spoiler: the solution is described on that page).
SeanLukeover 7 years ago
It&#x27;s worth mentioning that many aspects of HAKMEM have found their way into &quot;Hacker&#x27;s Delight&quot;, one of the more impressive CS books ever published IMHO.<p><a href="http:&#x2F;&#x2F;www.hackersdelight.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.hackersdelight.org&#x2F;</a><p>See also Guy Steele&#x27;s forward to the book, in which he talks about its relationship to HAKMEM.<p><a href="http:&#x2F;&#x2F;www.hackersdelight.org&#x2F;foreword.pdf" rel="nofollow">http:&#x2F;&#x2F;www.hackersdelight.org&#x2F;foreword.pdf</a>
评论 #15374964 未加载
hakmemover 7 years ago
There are a lot of pearls in this - I would call it lab book.<p>A while ago, I made a slow Clojure implementation of a generalized version of Bill Gospers continued fraction arithmetics from the HAKMEM<p><a href="http:&#x2F;&#x2F;github.com&#x2F;timrichardt&#x2F;stern-brocot-tree" rel="nofollow">http:&#x2F;&#x2F;github.com&#x2F;timrichardt&#x2F;stern-brocot-tree</a>
评论 #15372769 未加载
评论 #15372312 未加载
vogover 7 years ago
Interestingly, there&#x27;s not only theorems but also conjectures in this list.<p>Interesting bit:<p><i>&gt; ITEM 125 (Polya):</i><p><i>&gt; CONJECTURE: If a function has a power series with integer coefficients and radius of convergence 1, then either the function is rational or the unit circle is a natural boundary.</i><p><i>&gt; Reference: Polya, Mathematics and Plausible Reasoning, volume 2, page 46.</i><p>Has this conjecture been proved or disproved by now?
评论 #15372259 未加载
drallisonover 7 years ago
This is a classic. IMHO, HAKMEM should be required reading for everyone who programs computers. Likewise, everyone should own and read Hank Warren&#x27;s <i>Hackers Delight</i>. For advanced practitioners, Knuth&#x27;s <i>Art of Computer Programming</i> (particularly Volume 4) has some similar material. All explore the deep relationship between mathematics and programming.
conistonwaterover 7 years ago
Item 1 (expressing (p&#x2F;q)! in terms of other (p&#x2F;q)!) has no general solution still, as far as I know, but can easily be handled empirically for medium-sized n with the PSLQ algorithm.<p>Item 96 (&quot;Solve go&quot;) can be made tractable by setting the board size to n=2.
评论 #15375515 未加载
mietekover 7 years ago
<i>&gt; Programs below this line are considered unfeasible.</i><p><a href="http:&#x2F;&#x2F;www.inwap.com&#x2F;pdp10&#x2F;hbaker&#x2F;hakmem&#x2F;proposed.html#item94" rel="nofollow">http:&#x2F;&#x2F;www.inwap.com&#x2F;pdp10&#x2F;hbaker&#x2F;hakmem&#x2F;proposed.html#item9...</a>
brassattaxover 7 years ago
I&#x27;m glad they provided this in &#x27;html&#x27; format.
评论 #15372662 未加载
vowellessover 7 years ago
Is there a modern (latex) version? Reading the math on those pages is an arduous undertaking.
评论 #15372208 未加载
评论 #15372184 未加载