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.

The 892 unique ways to partition a 3 x 4 grid

35 pointsby psawayaalmost 13 years ago

6 comments

btillyalmost 13 years ago
Really? They have a patent on this??<p>This simply does not seem like a hard problem to solve. Certainly easier than, say, many Project Euler problems.
joejohnsonalmost 13 years ago
It's too bad they don't post the MATLAB program used to generate these partitions. It is not known whether there exists a polynomial-time algorithm for finding orbits. I wonder what the largest grid size (n×m) is for which they've enumerated all possible partions.
评论 #4023043 未加载
lloekialmost 13 years ago
Out of the blue (I did not look into the paper) I would have taken a stab at it like so:<p>I would start from the 12 case then remove one internal edge, which makes for all the 11 cases, then removing two edges (or one more edge if we're building a tree), and so on down to 1. We'll have to evaluate a few constraints on edges so as to ensure to only retain forms when they are rectangles.<p>After that (or at each step if you don't want the full list) we look for duplicates through rotation and symmetry. A possible implementation of the latter would be to model each case by numbering edges, and absence/presence of edges will set that bit/power of two, thus each case is a bitfield/integer, upon which we could apply a rotation function that tilts the bits, and then merely compare the resulting integers.<p>I guess this would be very close to a worst case in terms of complexity since it's essentially brute-force. Well, there are 17 edges to consider so that's 2<i></i>17 possibilities.
sparknlaunch12almost 13 years ago
Really great image however I was confused by one comment on the page suggesting there are more than 892 variations.<p><i>"I was confused at first because so many partitions are not on the poster. I see that this poster has culled horizontal and vertical symmetries, but the entry is titled “the 892 unique ways to partition a 3×4 grid.” Given this, I think a poster with all 3,164 partitions would have been (counter intuitively) more elegant. Or if the poster had just been titled “892 unique ways to partition a 3×4 grid.”</i>
评论 #4022156 未加载
robinhoustonalmost 13 years ago
I love this sort of grid.<p>Along similar lines, last year I made a grid of all the possible 3x3 weave mazes. I think it would make a cool poster. <a href="https://github.com/robinhouston/maze-experiments/blob/master/three-by-three/all-the-3x3-weave-mazes.png" rel="nofollow">https://github.com/robinhouston/maze-experiments/blob/master...</a><p>(The classification is not difficult, in this case: <a href="https://github.com/robinhouston/maze-experiments/tree/master/three-by-three" rel="nofollow">https://github.com/robinhouston/maze-experiments/tree/master...</a>)
评论 #4022872 未加载
dsirijusalmost 13 years ago
I don't follow. What are they exactly patenting here (i.e. what doesn't one want to do not to get his behind sued)?<p>Partioning a grid? An algorithm for efficiently partitioning it?<p>In effect, what? Windows 8 gets sued? <a href="http://blog.docstoc.com/wp-content/uploads/2012/03/windows-8-screenshot.jpg" rel="nofollow">http://blog.docstoc.com/wp-content/uploads/2012/03/windows-8...</a>