“…Finally, weight functions can take values in an arbitrary commutative ring. In particular, taking values in the boolean ring B = {0, 1, and, xor}, our results provide algorithms to decide, for example, whether a given hypercube (or pixel, in the bi-dimensional case) belongs to an hypercubic configuration (or polyomino) using a suitable weight on its boundary (see [1,2,3], for similar examples in the case of polyominoes).…”