Grouping Rules for 3 Inputs

[Menu]   A   B   C   D   E   F   G   H   I

• Look for rectangular groups made up of 1's
Group sizes:
  Form of Contribution
        8 (=4x2)
        1
        4 (=2x2 or 4x1)
        A   or   B'
        2 (=2x1 or 1x2)
        B'C
        1 (=1x1)
        A'BC'
• Look for larger groups before smaller groups
• Groups can overlap with other groups
• Groups can wrap around the two vertical edges