Counting the possible number of shapes.

Additionally, any shapes that are similar when rotated in any direction are considered as one shape, further limiting the total possible number of distinct shapes.
  • #1
John_Andrews0
1
0
Hello,

I have an 8 by 8 binary matrix. Define a shape as a cluster of 1's. For instance, consider the following sample:

Code:
0 [COLOR="Red"]1[/COLOR] 0 0 0 0 0 0
0 [COLOR="Red"]1[/COLOR] 0 0 0 0 0 0
0 0 [COLOR="Red"]1 1[/COLOR] 0 0 0 0
0 0 0 [COLOR="Red"]1[/COLOR] 0 0 0 [COLOR="Blue"]1[/COLOR]
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 [COLOR="DarkOliveGreen"]1 1[/COLOR] 0
0 0 0 0 0 [COLOR="DarkOliveGreen"]1 1[/COLOR] 0

As you can see, there are three shapes in the above binary matrix. Given the constraint that the matrix cannot have more than 32 ones inside, then how many possible shapes can I get in an 8 by 8 matrix? The shapes which are similar if you rotate them in any direction are considered as one shape...

Thank you!
 
Physics news on Phys.org
  • #2
There are technically an infinite number of possible shapes that can be created in an 8 by 8 matrix, but the total number of distinct shapes is limited by the 32 ones constraint. Because there are 64 squares in the matrix, and each one can contain either a 0 or a 1, this gives a total of 2^64 possible combinations. However, since you have a constraint that the matrix cannot have more than 32 ones, then this limits the total possible shapes to 2^32 (or 4,294,967,296).
 

1. How do you determine the number of possible shapes?

The number of possible shapes can be determined by using the formula 2^n, where n represents the number of sides or edges of the shape. This formula applies to both 2D and 3D shapes.

2. Are there any limitations to counting the possible shapes?

There are limitations to counting the possible shapes, as the number of shapes can become infinite when considering irregular or non-geometric shapes. Also, the formula may not be applicable to very complex shapes with overlapping or intersecting edges.

3. Can the number of possible shapes be calculated for any dimension?

Yes, the formula for counting the possible shapes can be applied to any dimension, as long as the shape has a defined number of sides or edges. This includes 2D, 3D, and even higher dimensions such as 4D or 5D.

4. Does the order of the sides or edges matter in counting the possible shapes?

Yes, the order of the sides or edges does matter in counting the possible shapes. For example, a triangle with sides of 2, 3, and 4 units would be considered a different shape from a triangle with sides of 3, 4, and 2 units.

5. How can counting the possible shapes be useful in real-world applications?

Counting the possible shapes can be useful in fields such as mathematics, computer science, and engineering. It can help in problem-solving, designing structures or objects, and understanding the properties and relationships of different shapes.

Similar threads

Replies
4
Views
1K
  • Advanced Physics Homework Help
Replies
11
Views
1K
Replies
6
Views
1K
  • Calculus and Beyond Homework Help
Replies
2
Views
364
  • Differential Geometry
Replies
0
Views
619
  • Precalculus Mathematics Homework Help
Replies
32
Views
818
Replies
2
Views
275
  • Classical Physics
Replies
1
Views
733
Replies
1
Views
1K
  • Introductory Physics Homework Help
Replies
29
Views
884
Back
Top