In this paper we present an algorithm which has as input a convex polyomino P and computes its degree of convexity, defined as the smallest integer k such that any two cells of P can be joined by a monotone path inside P with at most k changes of direction. The algorithm uses space O(m+n) to represent a polyomino P with n rows and m columns, and has a running time O(min(m,rk)), where r is the number of corners of P. Moreover, the algorithm leads naturally to a decomposition of P into simpler polyominoes.

On Computing the Degree of Convexity of Polyominoes / Stefano Brocchi; Giuseppa Castiglione; Paolo Massazza. - In: ELECTRONIC JOURNAL OF COMBINATORICS. - ISSN 1077-8926. - ELETTRONICO. - 22:(2015), pp. 1-13.

On Computing the Degree of Convexity of Polyominoes

BROCCHI, STEFANO;MASSAZZA, PAOLO
2015

Abstract

In this paper we present an algorithm which has as input a convex polyomino P and computes its degree of convexity, defined as the smallest integer k such that any two cells of P can be joined by a monotone path inside P with at most k changes of direction. The algorithm uses space O(m+n) to represent a polyomino P with n rows and m columns, and has a running time O(min(m,rk)), where r is the number of corners of P. Moreover, the algorithm leads naturally to a decomposition of P into simpler polyominoes.
2015
22
1
13
Stefano Brocchi; Giuseppa Castiglione; Paolo Massazza
File in questo prodotto:
Non ci sono file associati a questo prodotto.

I documenti in FLORE sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificatore per citare o creare un link a questa risorsa: https://hdl.handle.net/2158/960690
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 3
  • ???jsp.display-item.citation.isi??? 2
social impact