POLYOMINOES_PRINT
Print an Array of Polyominoes


POLYOMINOES_PRINT, a MATLAB program which prints an array of polyominoes.

A polyomino is a shape formed by connecting unit squares edgewise.

A polyomino P can be represented by an MPxNP matrix, whose entries are 1 for squares that are part of the polyomino, and 0 otherwise.

Several polyominoes can be packed into a single (M,N,P_NUM) array. In this case, the array dimensions M and N must be large enough to accommodate the various shapes of the polyominoes. We typically store each polyomino in a "top-left tight" format, so that there is a 1 in the first column and the first row, while there may be trailing rows and columns of zeros if there is excess space.

POLYOMINOES_PRINT extracts each separate polyomino from the array, discards the unneeded zeros rows and columns, and prints the polyomino.

Licensing:

The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.

Languages:

polyominoes_print is available in a MATLAB version.

Related Data and Programs:

polyominoes_print_test

Source Code:


Last revised on 06 March 2019.