Hello,(adsbygoogle = window.adsbygoogle || []).push({});

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

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...Code (Text):

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

Thank you!

**Physics Forums - The Fusion of Science and Community**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Counting the possible number of shapes.

Can you offer guidance or do you also need help?

Draft saved
Draft deleted

Loading...

Similar Threads - Counting possible number | Date |
---|---|

Counting Degrees of Freedom in Tensor | May 4, 2015 |

Is it possible to convert 2D coordinates of point to 3D form ? | Jun 9, 2014 |

How to make the total length of a trail as short as possible? | May 22, 2012 |

How to place circles that there will be no gap. Use least number of circles possible. | Apr 21, 2012 |

Box counting dimension please help | May 4, 2011 |

**Physics Forums - The Fusion of Science and Community**