Tetris-like combinatorial problem

  • Thread starter bitttttor
  • Start date
In summary, there are 89,088 possible combinations of 4 pieces in a 2x2 grid. Each piece can be rotated by 90° and there are 16 pieces in the grid.
  • #1
bitttttor
11
0
Hello All,

I'm programming an applet and run over a problem I can't solve (hope this is the right place to post it):
Having a 4 by 4 2d grid and 8 lineal elements: a) 1 of 4 square, b) 1 of 3 squares, c) 3 of 2 squares, and d) 3 of 1 suare:

_grid:
XXXX
XXXX
XXXX
XXXX

_elements:
a) XXXX
b) XXX
c) XX - XX - XX
d) X - X - X

How many combinations are possible? Any piece can be rotated by 90° and any combination must use all the available elements.
Any help on how to tackle the problem will be much appreciated... thank you !
 
Last edited:
Physics news on Phys.org
  • #2
what are the rules for combining them? And what's with the dashes?
 
  • #3
Hi Matterwave,
Thank you for asking

Matterwave said:
what are the rules for combining them?
The rules are: all elements need to be in the solution, without overlapping and covering the whole area of the grid. This is 1 x a, 1 x b, 3 x c, and 3 x d. Like in Tetris, all the pieces need to come together with no empty spaces between them. Also they can be rotated by 90°, i.e. they are vertical or horizontal lines, no diagonals or other shapes.

Matterwave said:
And what's with the dashes?
Sorry about the dashes, I putted them as graphic representation of separate elements: i.e. there are one element of four cells, one of three, three of two, and three of one. All together they are 16, filling the 16 cells (i.e. X) of the grid.

Is there any formalized way to analyze this, or the only way is to check possible combinations by hand and multiply them?
 
  • #4
By combination, you mean different ways to fit them together, correct?

Do you want to count different rotations differently or as the same?

For example, if I had the exact same lay out as one rotated 90 degrees, do I count those as 2 or 1?
 
  • #5
Hello,
Yes, I need to count all the possible ways to fit them together, counting different rotations of the same configuration as different solutions. A way to illustrate it it is as a http://www.tenthousandvillages.com/media/catalog/product/cache/1/image/9df78eab33525d08d6e5fb8d27136e95/6/8/6891610_1_1.jpg, I need to count all the possible configurations that fulfill the rules inside the constrained grid space.
 
  • #6
Nobody...? any similar problem? or an idea on what method to use for tackling it? a book? Anything would help
 
  • #7
Sorry, I was going to respond, but then I got side-tracked.

I can't think of a clever way to do it, and only a brute force counting is apparent to me at this point.
 
  • #8
Thank you Matterwave

Matterwave said:
only a brute force counting is apparent to me at this point

I started like that, using element size as rule. I reduced all possible locations of the element a) as 2 (border and middle):

XaXX aXXX
XaXX aXXX
XaXX aXXX
XaXX aXXX

These by 4 possible rotations, and by 2 possible mirror-like turns (not counting diagonal symmetries, but not sure if I should):

e.g. rotation of 1 by 90° to the right:

XXXX
aaaa
XXXX
XXXX

etc.

Then, in the remaining space of these two (X's), I found 6 possible arrangements of the element b) also by 4 rotations, and by 2 mirror turns. E.g.:

XXXX
aaaa
bXXX
bXXX
bXXX

etc.

Then, using the elements c), was able to find 116 possible arrangements of the combination c) - d). This gives me 116 x 48 x 16 = 89,088 combinations... but now the problem is to be sure that 116 is the right number, or to eliminate similarities between groups (e.g. in the group of elements a) some symmetries are similar to some rotations).

Any help/comment is more than welcomed... thanks
 
Last edited:
  • #9
The problem I see is that I don't think the answer can simply be some numbers multiplied together since putting some pieces in different ways will preclude some possibilities. For example, if I put my XXXX piece on an edge, then I have 10 ways I can put my XXX piece, but if I put my XXXX piece in the center somewhere then I only have 6 ways to put the XXX piece.
 
  • #10
i think you'll need brute force and heavy use of symmetries. for example, when placing xxx piece on the 3x4 subboard, while there are 10 total placements, there are only 4 that are distinct. [edit] also notice that some subconfigurations are not possible with the remaining pieces.
 
Last edited:
  • #11
Thanks, I'll try this way and post any advances,
 

FAQ: Tetris-like combinatorial problem

What is a "Tetris-like combinatorial problem"?

A "Tetris-like combinatorial problem" refers to a type of mathematical problem that involves arranging different shapes or objects in a specific way to fill a given space, similar to how the game Tetris requires players to fit falling blocks together to create complete rows.

What makes a problem "Tetris-like"?

A problem is considered "Tetris-like" if it involves arranging and fitting different objects together in a specific way, often with limited space and constraints. This type of problem can be found in various fields such as mathematics, computer science, and engineering.

What are some real-life applications of "Tetris-like combinatorial problems"?

Some examples of real-life applications of "Tetris-like combinatorial problems" include optimizing packing and shipping of goods, designing efficient layouts for computer chips, and creating effective traffic flow patterns.

How do scientists approach solving "Tetris-like combinatorial problems"?

Scientists use a variety of approaches and techniques, including mathematical modeling, algorithm design, and computer simulations, to solve "Tetris-like combinatorial problems." They also often rely on trial and error and constantly refining their strategies to find the most efficient solutions.

Can "Tetris-like combinatorial problems" be solved efficiently?

It depends on the specific problem and its complexity. While some "Tetris-like combinatorial problems" can be solved efficiently with existing methods, others may require more time and resources. Ongoing research and advancements in technology continue to improve our ability to solve these types of problems more efficiently.

Similar threads

Back
Top