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.

Fun with Clojure: Turning Cats into Dogs in Hanoi

40 pointsby woobyover 14 years ago

3 comments

merrakshover 14 years ago
This can be cast as a shortest path problem. Implementations on huge graphs (several million nodes), i.e. larger than the one defined by a dictionary, are very efficient and usually take advantage of both the source and destination rather than just performing breadth first search from the source. I can think of Andrew Goldberg's work, see e.g.<p><a href="http://research.microsoft.com/en-us/people/goldberg/" rel="nofollow">http://research.microsoft.com/en-us/people/goldberg/</a>
评论 #1753550 未加载
fininover 14 years ago
In the fall of 1980 I taught my first class (AI) as a professor. The TA, Jeff Shrager, suggested this word problem, which he called dog-cat, as a good homework exercise for implementing the A* search algorithm. The students had to do it for three letter words in Lisp and on a Univac computer that the University of Pennsylvania’s Moore School had at the time. I’ve been using the problem on and off for 30 years now in homework assignments.
leifover 14 years ago
Never noticed before that Hanoi states are homomorphic to Sierpinski triangles. That's gorgeous. :-)
评论 #1753716 未加载