in reply to Re^2: Pattern enumeration.
in thread Pattern enumeration.
I started playing with a recursive solution that builds grids from smaller grids. Bonus: This method naturally omits permutations.
For example, given
One can overlap the 2x2 grids to form:2x2, 2 syms: AA AB AB BB AB BA
3x3, 2 syms: 13 22 31 33 33 13 33 31 22 33 AAB ABA ABB ABA ABA BBA ABA BAA BAB BAB AAB BAB ABB BAB ABA
I think it might be possible to turn this into an efficient solution for counting the arrangements instead of generating them.
That's all I had time to do for now.
Update: At time of writing, I thought
wasn't allowed. The concept still applies, although there would be a lot more possible grids.F FF
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Pattern enumeration.
by BrowserUk (Patriarch) on Jul 27, 2010 at 22:25 UTC | |
by JavaFan (Canon) on Jul 27, 2010 at 23:39 UTC | |
by BrowserUk (Patriarch) on Jul 27, 2010 at 23:47 UTC | |
by JavaFan (Canon) on Jul 28, 2010 at 00:42 UTC | |
by BrowserUk (Patriarch) on Jul 28, 2010 at 01:51 UTC |