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.

How wooden puzzles can destroy dev teams

19 pointsby johncsalmost 10 years ago

5 comments

ChrisLomontalmost 10 years ago
Interestingly, when I run this through an old Dancing Links [1] based solver I wrote a while back for solving general puzzles, it solves the first one in 0.04 seconds, uses 65 columns, 242 rows, does 181510 de-queues, and finds a unique solution.<p>The same solver on the hard version runs in 0.01 seconds, 67 columns, 272 rows, 245626 de-queues, and finds no solutions.<p>So as others have noted, the hard puzzle solution must be some weird rotation, and&#x2F;or not spaced on &quot;integral&quot; coordinates.<p>Since I don&#x27;t have time to write such a solver, I will leave it for now :)<p>Note: if you have not looked at the Dancing Links paper by Knuth and learned how to use it to solve backtracking problems, you should. It&#x27;s amazingly useful for solving such problems, for enumerating all solutions, and it is fast and completely general.<p>[1] <a href="http:&#x2F;&#x2F;arxiv.org&#x2F;abs&#x2F;cs&#x2F;0011047" rel="nofollow">http:&#x2F;&#x2F;arxiv.org&#x2F;abs&#x2F;cs&#x2F;0011047</a>
shardalmost 10 years ago
Assuming the solvers that they wrote searched the problem space correctly, the hard side probably violates some assumption. My guess would be that on the hard side the pieces can lock into some sort of 3D structure.
评论 #9842900 未加载
fskalmost 10 years ago
What makes this a HARD puzzle is that the pieces don&#x27;t completely fill the area. That dramatically increases the solution search space.
0x0almost 10 years ago
Any hints for the solution, then?
评论 #9842940 未加载
fredgrottalmost 10 years ago
if they ever read Penrose it would have taken less time :)