Theoretical Computer Science

Similar documents
MAXIMAL PERIODS OF (EHRHART) QUASI-POLYNOMIALS

arxiv:math/ v1 [math.co] 6 Dec 2005

Packing Congruent Bricks into a Cube

On Locating-Dominating Codes in Binary Hamming Spaces

Theoretical Computer Science

A Characterization of (3+1)-Free Posets

On the Sequence A and Its Combinatorial Interpretations

The edge-diametric theorem in Hamming spaces

Theoretical Computer Science. Completing a combinatorial proof of the rigidity of Sturmian words generated by morphisms

Balanced configurations of 2n + 1 plane vectors

On the mean connected induced subgraph order of cographs

Course 212: Academic Year Section 1: Metric Spaces

Equitable list colorings of planar graphs without short cycles

On the maximum number of isosceles right triangles in a finite point set

Covering the Plane with Translates of a Triangle

Multivalued functions in digital topology

Set, functions and Euclidean space. Seungjin Han

Introduction to Topology

A parallelogram tile fills the plane by translation in at most two distinct ways

Lebesgue Measure on R n

TORIC WEAK FANO VARIETIES ASSOCIATED TO BUILDING SETS

On zero-sum partitions and anti-magic trees

SELECTIVELY BALANCING UNIT VECTORS AART BLOKHUIS AND HAO CHEN

The small ball property in Banach spaces (quantitative results)

Mid Term-1 : Practice problems

The Singapore Copyright Act applies to the use of this document.

Combinatorics for algebraic geometers

Domino tilings with barriers. In memory of Gian-Carlo Rota

A geometrical characterization of factors of multidimensional Billiard words and some applications

Introduction to Real Analysis Alternative Chapter 1

A REFINED ENUMERATION OF p-ary LABELED TREES

Rose-Hulman Undergraduate Mathematics Journal

Parity Versions of 2-Connectedness

Covering the Convex Quadrilaterals of Point Sets

ARTICLE IN PRESS Theoretical Computer Science ( )

Tactical Decompositions of Steiner Systems and Orbits of Projective Groups

arxiv:math/ v1 [math.co] 21 Jun 2005

2 IGOR PAK so we loose some information about the structure of the tilings since there could be many tilings of with the same multiset of tiles (see e

Applied Mathematics Letters

A note on quantum products of Schubert classes in a Grassmannian

Partitions, rooks, and symmetric functions in noncommuting variables

Conflict-Free Colorings of Rectangles Ranges

Lecture Notes 1: Vector spaces

COMPLEX NUMBERS WITH BOUNDED PARTIAL QUOTIENTS

Intrinsic products and factorizations of matrices

Quasimultiples of Geometric Designs

Szemerédi-Trotter theorem and applications

The Pigeonhole Principle

Topology, Math 581, Fall 2017 last updated: November 24, Topology 1, Math 581, Fall 2017: Notes and homework Krzysztof Chris Ciesielski

Sergey Fomin* and. Minneapolis, MN We consider the partial order on partitions of integers dened by removal of

Fuchsian groups. 2.1 Definitions and discreteness

On the intersection of infinite matroids

NOTES ON PLANAR SEMIMODULAR LATTICES. IV. THE SIZE OF A MINIMAL CONGRUENCE LATTICE REPRESENTATION WITH RECTANGULAR LATTICES

Hamilton Cycles in Digraphs of Unitary Matrices

On Antichains in Product Posets

A multiplicative deformation of the Möbius function for the poset of partitions of a multiset

NOTES ON PLANAR SEMIMODULAR LATTICES. IV. THE SIZE OF A MINIMAL CONGRUENCE LATTICE REPRESENTATION WITH RECTANGULAR LATTICES

Some congruences for Andrews Paule s broken 2-diamond partitions

arxiv: v1 [math.co] 2 Dec 2008

An enumeration of equilateral triangle dissections

MULTI-ORDERED POSETS. Lisa Bishop Department of Mathematics, Occidental College, Los Angeles, CA 90041, United States.

Combining the cycle index and the Tutte polynomial?

On the existence of a convex point subset containing one triangle in the plane

Asymptotics for minimal overlapping patterns for generalized Euler permutations, standard tableaux of rectangular shapes, and column strict arrays

A Formula for the Specialization of Skew Schur Functions

The cycle polynomial of a permutation group

A NOTE ON TENSOR CATEGORIES OF LIE TYPE E 9

Tough graphs and hamiltonian circuits

CONSTRAINED PERCOLATION ON Z 2

2 (Bonus). Let A X consist of points (x, y) such that either x or y is a rational number. Is A measurable? What is its Lebesgue measure?

Jeong-Hyun Kang Department of Mathematics, University of West Georgia, Carrollton, GA

The Number of Independent Sets in a Regular Graph

Visual cryptography schemes with optimal pixel expansion

Spectra of Multiplication Operators as a Numerical Tool. B. Vioreanu and V. Rokhlin Technical Report YALEU/DCS/TR-1443 March 3, 2011

arxiv: v1 [math.co] 14 Nov 2018

36th United States of America Mathematical Olympiad

Chord properties of digital straight line segments

Zero-Sum Flows in Regular Graphs

All Ramsey numbers for brooms in graphs

Efficient packing of unit squares in a square

On Minimal Perimeter Polyminoes

Auerbach bases and minimal volume sufficient enlargements

Sanjay Mishra. Topology. Dr. Sanjay Mishra. A Profound Subtitle

12-neighbour packings of unit balls in E 3

ON THE UNIQUENESS PROPERTY FOR PRODUCTS OF SYMMETRIC INVARIANT PROBABILITY MEASURES

Continuous extension in topological digital spaces

Problem Set 2: Solutions Math 201A: Fall 2016

The Gaussian coefficient revisited

MATH 433 Applied Algebra Lecture 22: Review for Exam 2.

A misère-play -operator

UNIFORM EMBEDDINGS OF BOUNDED GEOMETRY SPACES INTO REFLEXIVE BANACH SPACE

DISTANCE SETS OF WELL-DISTRIBUTED PLANAR POINT SETS. A. Iosevich and I. Laba. December 12, 2002 (revised version) Introduction

DISCRIMINANTS, SYMMETRIZED GRAPH MONOMIALS, AND SUMS OF SQUARES

DETERMINING THE HURWITZ ORBIT OF THE STANDARD GENERATORS OF A BRAID GROUP

A class of trees and its Wiener index.

The discrete Green Theorem and some applications in discrete geometry

Math 341: Convex Geometry. Xi Chen

Discrete Mathematics

A NATURAL EXTENSION OF THE YOUNG PARTITIONS LATTICE

LOWER BOUNDARY HYPERPLANES OF THE CANONICAL LEFT CELLS IN THE AFFINE WEYL GROUP W a (Ãn 1) Jian-yi Shi

Transcription:

Theoretical Computer Science 406 008) 3 4 Contents lists available at ScienceDirect Theoretical Computer Science journal homepage: www.elsevier.com/locate/tcs Discrete sets with minimal moment of inertia S. Brlek, G. Labelle, A. Lacasse LaCIM, Université du Québec à Montréal, C. P. 8888 Succursale Centre-Ville, Montréal QC), Canada H3C 3P8 a r t i c l e i n f o a b s t r a c t Article history: Received 6 September 007 Received in revised form 0 June 008 Accepted June 008 Keywords: Discrete sets Moment of inertia Polyominoes Lattice paths We analyze the moment of inertia IS), relative to the center of gravity, of finite plane lattice sets S. We classify these sets according to their roundness: a set S is rounder than a set T if IS) < IT). We introduce the notion of quasi-discs and show that roundest sets are strongly-convex quasi-discs in the discrete sense. We use weakly unimodal partitions and an inequality for the radius to make a table of roundest discrete sets up to size 40. Surprisingly, it turns out that the radius of the smallest disc containing a roundest discrete set S is not necessarily the radius of S as a quasi-disc. Crown Copyright 008 Published by Elsevier B.V. All rights reserved.. Introduction In this paper we consider plane sets up to translations. By a discrete set we mean a finite set of lattice points or a finite union of lattice closed unit squares pixels) Fig. a)). In particular, the word polyomino is defined as a 4-connected finite union of pixels in the plane. This means the neighboring squares are required to share an edge Fig. b)). These sets are well-known combinatorial objects in discrete geometry. The dual of a discrete set of pixels is the set of the centers of its pixels. The dual of a polyomino is usually called an animal Fig. c)). Using a, ) shift, we can always assume that the dual of a discrete set of pixels is a subset of the discrete plane Z Z. Fig.. Moreover, a polyomino is called v-convex resp. h-convex) if all its columns resp. rows) are connected see Fig. a), b)). We say that a polyomino is hv-convex Fig. c)) if all its columns and rows are connected and strongly-convex Fig. d)) if given any two points u and v in its corresponding animal, the lattice points in the segment [u, v] are all in the animal. In the case of polyominoes, as Kim [,] showed, this notion coincides with the MP-convexity of Minsky and Papert [3] since animals are 4-connected. The goal of this paper is to study the roundest discrete sets S of pixels or points), over the class of all discrete sets with the same number of pixels or points), in the sense of having minimal moment of inertia IS), relative to the center of gravity. This problem was raised in previous papers [4,5] in the context of the study of incremental With the support of SERC Canada). Corresponding author. Tel.: + 54 987 3000. E-mail addresses: brlek@lacim.uqam.ca S. Brlek), labelle.gilbert@lacim.uqam.ca G. Labelle), lacasse@lacim.uqam.ca A. Lacasse). 0304-3975/$ see front matter Crown Copyright 008 Published by Elsevier B.V. All rights reserved. doi:0.06/j.tcs.008.06.05

3 S. Brlek et al. / Theoretical Computer Science 406 008) 3 4 Fig.. A polyomino a) v-convex b) h-convex c) hv-convex d) strongly-convex. algorithms based on the discrete Green theorem. The present notion of roundness is distinct from the one given in [6] where they consider minimizing the site perimeter of lattice sets, that is the number of points with Manhattan distance from the sets. For a given, Eq. ) below ensures that minimizing IS) is equivalent to minimizing IA), where A is the dual of the discrete set S. In this paper, the Euclidean distance u v ) + u v ) between two points u = u, u ) and v = v, v ) in the plane, is denoted by u v. In Section, we recall some basic notions about the moment of inertia of discrete sets. Section 3 is devoted to properties of roundest discrete sets. More precisely, we introduce the notion of discrete quasi-disc and prove that roundest discrete sets are animals which are strongly-convex quasi-discs. Then a method is developed for computing the roundest discrete sets according to size 40) and some parameters associated to them. Finally, we briefly indicate in Section 4, how to extend our results to other kinds of lattices.. Continuous and discrete moments of inertia We recall definitions of the basic geometric parameters: Definition. Let S be a measurable subset of the real plane R R such that z dx dy <. S The center of gravity g = gs) and the moment of inertia I = IS) relative to the center of gravity, of the set S, are defined by the following equations: g = gs) = zdx dy AreaS) S and I = IS) = z g dx dy = z dx dy S AreaS) zdx dy, S where AreaS) = dx dy. S ote that, in particular, if S = P P is a union of distinct pixels, the condition P P P z dx dy < is obviously satisfied and gs) and IS) are well-defined. ote also that the moment of inertia of any single pixel P is IP) = 6 geometrical center. S ) and its center of gravity corresponds to its Definition. Let T = {a,..., a } Z Z be a set of distinct points in the discrete plane where the point a k has a non-negative mass m k, for k =,...,. The center of gravity g = gt) and the moment of inertia I = IT) relative to the center of gravity, of the set T are defined by g = gt) = m k a k, m + + m and I = IT) = m k a k g = m k a k m m + + m k a k = m k m l a k a l. m + + m It is easily checked that the following relation holds for any discrete set: k<l

S. Brlek et al. / Theoretical Computer Science 406 008) 3 4 33 Lemma 3. Let S = P P P be a union of distinct pixels P,..., P and the set A of their centers, = A. Then, IS) = IA) + 6. ) A straightforward computation of the moment of inertia of a set of n equidistant points yields the following formula which will be used in Section 3. for the computation of discrete sets of minimal moment of inertia. Lemma 4. Let A be a set of n equidistant points, each of unit mass, on a line. Then, IA) = n3 n d 3) where d is the distance between successive points. 3. Properties of roundest discrete sets From now on, we assume that every measurable subset of R R, satisfies ). The next lemma generalizes ) and is a consequence of the classical parallel axis theorem [7] stating that, for any point p and any measurable set S, the moment of inertia of S relative to p, denoted by I p S) and defined by ) I p S) = z p dx dy or m k a k p, S satisfies I p S) = IS) + m p g, where g = gs) and m is the mass of S. Lemma 5. Let S, S,..., S be a sequence of disjoint measurable or finite) subsets Z Z. Then IS S ) = = = IS k ) + I{g,..., g }) IS k ) + m k g k m m k g k IS k ) + m k m l g k g l, m k<l 4) where g k is the center of gravity of S k with mass m k = S k dx dy. Proof. By 4), we can write, for any p Z Z, I p S k ) = IS k ) + m k p g k, k =,...,. By additivity of I p, we have I p S S ) = I p S ) + + I p S ) = IS ) + + IS ) + m p g + + m p g. Taking p = gs S ) = m g + + m g )/m, we get IS S ) = I g S S ) = IS ) + + IS ) + m g g + + m g g = IS ) + + IS ) + I {g,..., g }). ote that formula ) corresponds to the special case S = P,..., S = P with g k = gp k ). More precisely, IS) = IP P ) = IP k ) + I{g,..., g }) = 6 + IA), since IP k ) = and A is the corresponding set of centers of gravity of the pixels of S. 6

34 S. Brlek et al. / Theoretical Computer Science 406 008) 3 4 Fig. 3. a) A discrete) disc and b) a discrete) quasi-disc. 3.. Roundest discrete sets are quasi-discs From now on we call roundest a set having minimal moment of inertia among the discrete sets consisting of a fixed number of points. In order to analyze properties of roundest sets we introduce the notion of discrete quasi-disc. Definition 6. Let c R R, and S Z Z be a finite set of lattice points. Then S is called a: i) discrete) disc centered at c of radius r if S = {z : z c r} Z Z), ii) discrete) quasi-disc centered at c of radius r if {z : z c < r} Z Z) S {z : z c r} Z Z), where r = max s S s c. A disc and a quasi-disc of radius r = 5 are shown in Fig. 3 a) and b) respectively. ote that every lattice point on the circumference must belong to a disc while at least only one is necessary in the case of a quasi-disc. In both cases, every lattice point lying within the circumference must belong to the disc and quasi-disc. Lemma 7. Let A be a quasi-disc. Then: i) A is a strongly-convex set; ii) if A contains points, then A is an animal. Proof. i) Let A be a quasi-disc of radius r centered at c. Given any two distinct points u, v A, any lattice point w [u, v], w u, w v, is necessarily in the topological interior of the disc {z : z c r}. Hence, by Definition 6, w A. ii) For = the result is obvious, and for = it is false since the quasi-disc {0, 0),, )} is not an animal. Let A be a quasi-disc of 3 points with radius r > 0 centered at c R R. Let u, v be two distinct lattice points in A. We must show that there is a path γ from u to v made only of vertical and horizontal unit steps. If u and v are both on a vertical or horizontal segment then by i), we can choose γ as the linear path from u to v. Otherwise, u and v are not on a same vertical or horizontal segment, and we consider the lattice rectangle R with vertices u, v, v, u, given by ote that, u = u, u ), v = v, u ), v = v, v ), u = u, v ). r u c + v c = u c + v c. 5) If at least one of the lattice points u or v, say p, is in A, then since A is a quasi-disc, we can choose, for γ, the L-shaped path [u, p] [p, v]) Z Z from u to v. Taking 5) into account, the remaining possibility is that u and v are both on the circumference z c = r. In other words u c = v c = r. This means that z c = r is the circumcircle of the rectangle R having vertices u A, v / A, v A, u / A. In this case, R cannot be a unit square see Figure a)) since 3. Hence, R is a m n-rectangle with m > or n > and there obviously exists a path γ from u to v made only of vertical and horizontal unit steps see Figure b)).

S. Brlek et al. / Theoretical Computer Science 406 008) 3 4 35 Theorem 8. Let S be a roundest discrete set of pixels. Then S is a polyomino whose associated animal A is a quasi-disc centered at g = ga) with radius r = max a A a g. Proof. Let A be the dual of a roundest discrete set S. Since the result is obviously true for, we assume that 3. Take a 0 A such that r = a 0 g = max a A a g and consider the closed disc Γ a0 = {z R R : z g a0 a 0 g a0 }, where g a0 = ga \ {a 0 }). Let us prove first that every lattice point in the interior of the disc Γ a0 is in A. This is a consequence of Lemma 5 with = : IS S ) = IS ) + IS ) + m m m + m g g, with S = {a 0 }, S = A \ {a 0 }, g = a 0, g = g a0, m =, m =. Then, IA) = I{a 0 }) + IA \ {a 0 }) + = IA \ {a 0 }) + a0 g a0 a0 g a0 since I{a 0 }) = 0. Assume now that Γ a0 contains in its interior, a lattice point b A, that means b g a0 < a 0 g a0. Replace a 0 by b and consider the set B = A \ {a 0 }) {b}). Then, IB) = IA \ {a 0 }) {b}) = IA \ {a 0 }) + b g a 0 < IA), which contradicts the minimality of the moment of inertia of A. Consider now the closed disc C a0 = {z R R : z g r}. Then, by definition of C a0, we obviously have, A C a0 Z Z). Furthermore, it is easy to check that g a 0 = g a 0 a 0 ). This implies that g belongs to the segment [g a0, a 0 ]. Hence, C a0 Γ a0 as we can see in the following figure: 6) But we have seen that every lattice point in the interior of Γ a0 is in A. In particular all those in the interior of C a0 must be also in A: int C a0 ) Z Z) A. Using 6), this implies that A is a quasi-disc of radius r, centered at g. Finally, by Lemma 7, A is a strongly-convex animal, since 3.

36 S. Brlek et al. / Theoretical Computer Science 406 008) 3 4 Fig. 4. Examples and counter examples for Theorem 8. ote that the above proof shows that A is also a quasi-disc centered at g a0 with radius a 0 g a0 > r. Fig. 4 a) illustrates Theorem 8 with = 5. By contraposition, the 7 7 lattice set A in Fig. 4 b) is not minimal since the disc C a0 contains lattice points not in A. ote that the converse of Theorem 8 is false since, for = 3, the quasi-disc of Fig. 4 c) is not minimal with I = ). The minimal one for = 3 with I = 4 < ) is shown in Fig. 4d). 3 To pursue our study of roundest discrete sets we now give an upper bound for the radius r of the disc C a0 as a function of the size. This result reduces the number of candidates to be tested in the search of roundest animals in Section 3.. Lemma 9. Let A be a roundest animal having points. Then, the radius r = a 0 g = max a A a g of the disc C a0 centered at g = ga) satisfies r + π. Proof. Let S be the polyomino associated to the animal A. We will show that the open disc B g, r ), of radius r, centered at g satisfies B g, r ) S 7) and the result will follow since 7) implies that π r ) area S) =. To establish 7), consider an arbitrary point z B g, r ). We must show that there exists ν A such that z pix ν, where pix ν is the pixel centered at ν. So, let z = x, y) be such that z g < r. Then there exist integers ν, ν such that, x = ν + f, y = ν + f where f, f. Let ν = ν, ν ) and f = f, f ). We have z = ν + f pix ν. There remains to show that ν A. We have, by the triangular inequality ν g f ν g + f = z g < r. Hence, ν g < r + f r + = r since f = f + f ) + ) =. By Theorem 8, we conclude that ν A since every lattice point in the open disc B g, r) necessarily belongs to A.

S. Brlek et al. / Theoretical Computer Science 406 008) 3 4 37 Fig. 5. Column C k is the set of points in S above the point k, 0). 3.. Computation of the roundest discrete sets according to size In order to generate all the roundest animals of a given size, we classify animals according to the sequence n,..., n s ) of their vertical projections, where n k is the number of points in the kth column for k =,..., s and n + + n s =. If n k is even resp. odd), the kth column is said to be even resp. odd). Let A n,...,n s be the set of all animals having the sequence n, n,..., n s ) of vertical projections with = n + n + + n s. We first characterize animals A A n,...,n s such that IA) = min{ib) : B A n,...,n s }. 8) The roundest animals of size are those that minimize IA) under the condition n + + n s =. Due to the convexity properties of roundest animals, we can reduce our analysis to sequences n, n,..., n s ) satisfying 0 < n n n k < n k+ = = n l > n l n s n s > 0. Such sequences are called weakly unimodal partitions of or stack or planar partitions of ), see Stanley [8]. We have the following result. Lemma 0. Let n,..., n s ) be a weakly unimodal partition of. Then, i) if n,..., n s have the same parity, there is a unique animal A A n,...,n s, up to translation, with minimal moment of inertia over A n,...,n s. This animal is symmetric relative to an horizontal axis; ii) otherwise, there are exactly two animals A, A A n,...,n s, up to translation, with minimal moment of inertia over A n,...,n s. These animals are symmetric to each other. The centers of gravity of the odd resp. even) columns of each of these two animals, A and A, are all on a same horizontal axis X resp. X ). The distance between X and X is /. Moreover, the moment of inertia of A and A ) is given by the formula IA) = s n 3 k + ) ) s k n k s kn k + n k) n k. 9) 4 n k even n k odd Proof. Let S be an animal with projections n, n,..., n s ) having columns C, C,..., C s. More precisely, C k is the column of points in S over the point k, 0), k =,..., s see Fig. 5). Let g k be the center of gravity of C k, k s. ote that there exists ν k Z such that, for k =,..., s, { k, νk ) if n g k = k is odd, k, ν k + ) if n k is even. In other words, g k = k, ν k + ) χ evenn k ) k =,..., s where χ even n) =, if n is even and 0 otherwise.

38 S. Brlek et al. / Theoretical Computer Science 406 008) 3 4 Fig. 6. a) Every n k is odd, b) Every n k is even, c) Some n k odd, some n k even. Then, by Lemma 5 and formula 3), we have IS) = IC C s ) = IC ) + + IC s ) + I{g,, g s }) s n 3 = k n k + ) n k n l k l, ν k ν l + χ evenn k ) χ even n l )) k<l = s n 3 k + n k n l k l) + n k n l ν k ν l + ) χ evenn k ) χ even n l )) k<l k,l ) = s n 3 k s + k n k s kn k + Ω, where, after rearrangements, Ω = n k n l ν k ν l ) + n k n l mod ) n k even,n l odd This last expression attains its minimal value if and only if ν k = ν l, whenever n k n l mod ) and ν k ν l + ) = 4, whenever n k is even and n l is odd. n k n l ν k ν l + ) ). In other words, the minimal value of Ω is attained if and only if, for some p Z, { νk = p for even n ν k = p for every k, or k, ν l = p for odd n l. Since the moment of inertia is invariant under translation, we can assume that p = 0 and we conclude that the structure of a roundest animal A with projections n,..., n s ) falls into one of the following three exclusive cases: Case. If every n k is odd, then g k = k, 0) for k =,..., s Fig. 6 a)). Case. If every n k is even, then g k = k, ) for k =,..., s Fig. 6 b)). Case 3. Otherwise, two subcases can occur: 3.i) g k = k, 0), for n k odd and g k = k, ), for nk even Fig. 6c)i), 3.ii) g k = k, 0), for n k odd and g k = k, ), for nk even Fig. 6c)ii). Fig. 6 illustrates the situation. It is easily checked that the minimal value of Ω is given by ) ) Ω = n k n k, 4 n k even n k odd which establishes 9) and concludes the proof. Using the computer algebra software Maple [9], we now generate all roundest animals with size 40. Our strategy is the following: we first encode the weakly unimodal sequences by λ, b, h, µ) where λ, µ are integer partitions and b, h. The sequences n, n,..., n s ) are given by λ λ λ k < h } = {{ = h } > µ l µ l µ, 0) b

S. Brlek et al. / Theoretical Computer Science 406 008) 3 4 39 Fig. 7. a) Encoding, b) vertical projections, c) animal to test, up to rotation. Table Roundest animals with size up to = 4, up to symmetry Vertical projections IA) ga) r ca) r min A) [] 0, 0) 0 0, 0) 0 [, ] 3, 0) 3, 0) 4 3 [, ] 5, ) 3 3 3 3 5 3, ) 4 [, ] 3, ) 3, ) 5a [,, ] 4 9, ) ) 5 5 5 0, 5 5b [, 3, ] 4, 0), 0) ) ) 33 6 [,, ] 6, 5, ) ) 5 5 7 [, 3, ] 7, 9 7 7, 5 4 4 78 8 [3, 3, ] 5, ) 8 8 8 8 30, 0) 08 9 [3, 3, 3], 0) 9, 0) 56 0 [3, 3, 3, ], 0) 9 7, 0) 5 0 5 5 3 3 a [, 4, 4, ] 6, ) 5 349 5, ) 0 b [3, 4, 3, ] 4, ) 0 9, ) 5 4 4 4 64 [, 4, 4, ] 5, ) 0 5, ) 0 340 3 [3, 4, 4, ] 3, ) 5 8 3 3 3 3 3, ) 3 3 0 0 0 45 4 [3, 4, 4, 3] 5, ) 3 4 7 4 85 5, ) 6 6 30 58 5 [4, 4, 4, 3], ) 5 5 5 5 3 5, ) 3 ) ) 640 6a [, 4, 4, 4, ] 6 3, 7 3, 7 640 6b [4, 4, 4, 4] 5, ) 3 6 5, ) 3 780 7a [4, 5, 5, 3] 4, ) 40, 0) 7 7 7 7 5 ) ) 780 7b [, 4, 5, 4, ] 7 3, 6 40 7 7 3, 3 6 6 95 8 [3, 4, 5, 4, ] 6, ) 5 8 9 8 8 685 3, 0) 5 084 9 [3, 5, 5, 4, ] 54, ) 3 9 9 9 9 937 3, 0) 5 55 0 [3, 5, 5, 5, ] 9, ) 0 0 0 0 65 3, 0) 5 48 [3, 5, 5, 5, 3] 3, 0) 5 3, 0) 5 664 [3, 5, 5, 5, 4] 34, ) 45, ) 3 5 4 4 4 96 3 [5, 5, 5, 5, 3] 65, 0) 3 3 3 970, 0) 5 8 8 7 83 4 [, 5, 5, 5, 5, 3] 89, 0) 65 8, 0) 3 4 4 4 5 5 with λ +bh+ µ = see Fig. 7). Then, using the package combinat, we generate all λ, b, h, µ) such that the associated animal A minimizes the moment of inertia IA) given by formula 9). Taking Lemma 3 into account, we restrict the generation of the 4-tuples λ, b, h, µ) to those satisfying the further conditions s r + and h r +, that is maxs, h) + π +. ) Fig. 8 gives, for each 40, a set of representatives, up to dihedral symmetry, of the roundest animals of size. As an indication, for = 40, we had to test 76 396 4-tuples λ, b, h, µ) satisfying 0) and ), instead of 407 763 for those satisfying only 0). Various parameters associated to these roundest animals 40) are given in Tables and. The first five columns give the size, the vertical projections, the moment of inertia, the center of gravity and the radius of the disc C a0 of the roundest animals, up to dihedral symmetry.

40 S. Brlek et al. / Theoretical Computer Science 406 008) 3 4 Remark. Let C min = {z R R : z c r min }, be the smallest closed disc containing a given roundest animal A of size. The value of c and r min are given in the last two columns of Table. One may think that A is a quasi-disc centered at c having radius r min. In other words, we can replace the disc C a0 of Theorem 8 by C min. It turns out that this is false in general. As an example, consider for = 7 the roundest animal A in row 7a of Table. Its projections are 4, 5, 5, 3) and the smallest closed disc C min containing it has radius r min = 5 and center c =, 0). In this case C a0 has radius r = 40 and center g = 4, 7 7 7). Then A is not a quasi-disc of radius r min = 5. Indeed, the lattice point + cross) belongs to the open disc C min but is not an element of A. It turns out that the only occurrence of such an animal, up to = 40, is precisely A. This suggests the following conjecture. Conjecture. There exists an infinite family of roundest animals A which is not a quasi-disc of radius r min, where r min is the radius of the smallest closed disc containing A. 4. Conclusion While the recognition of digital straight lines is a well-understood problem [0], both from the Euclidean and combinatorial approaches, the recognition of circles is still a challenging problem in discrete geometry. The border of discrete quasi-discs introduced in Section 3., appears as a good candidate for a circle. This fact begs for a thorough study of their properties, perhaps useful for circle recognition. The above results can be extended to other families of lattices. For instance, in the context of regular triangular lattices, a discrete set S is a union of distinct regular hexagonal cells and the set A of the centers of these hexagons satisfies the following formula, analogous to ), IS) = IA) + IH) where H is the fundamental hexagon of the lattice. The lattice set Z Z must be replaced by the set T R R of the centers of all hexagons. The associated notions of strong convexity, discrete) disc and quasi-disc are easily defined using T. Theorem 8 still holds. The radius estimate of Lemma 9 must be replaced by r α + β with suitable constants α, β according to the lattice). The computation of the roundest discrete sets can be established using an adaptation of the strategy described in Section 3.. Moreover, extensions to higher dimensional lattices are also possible. Table Roundest animals with size up to = 40, up to symmetry Vertical projections IA) ga) r ca) r min A) 474 5 [3, 5, 5, 5, 5, ] 7, ) 5 5 5 5 480 7, 0) 9 769 6 [3, 5, 5, 5, 5, 3] 7, 0) 6 9 7, 0) 9 36 7 [, 4, 6, 6, 6, 4] 35, ) 3 3 7 9 7 7 37 5, ) 5 4 4 5 3464 8 [4, 6, 6, 6, 4, ] 45, ) 8 4 4 570 3, ) 5 4 4 5 385 9 [, 5, 6, 6, 6, 4] 08, ) 0 9 9 9 9 74 7, ) 34 458 30 [4, 6, 6, 6, 5, 3] 0, ) 30 30 30 30 79 7, ) 34 4688 3 [3, 6, 6, 6, 6, 4], ) 4 3 3 3 3 864 7, ) 34 50 3 [4, 6, 6, 6, 6, 4] 7, ) 3 34 7, ) 34 5680 33a [4, 6, 6, 6, 6, 5] 8, ) 4 80 33 33 33 33 67, ) 5 4 8 8 8 5680 33b [4, 6, 6, 6, 6, 4, ] 9, ) 6 80 33 33 33 33 3, ) 6 6 370 64 34 [4, 6, 7, 7, 6, 4] 7, ) 5 34 7 34 833 7, ) 6 6 370 686 35 [5, 6, 7, 7, 6, 4] 4, ) 8 35 7 35 35 3 309 9, ) 7 38 38 38 5 70 7406 36 [3, 5, 6, 7, 7, 5, 3] 45, ) 36 36 36 3 546 4, 0) 0 799 37 [3, 5, 7, 7, 7, 5, 3] 4, 0) 37 0 4, 0) 0 8689 38 [4, 5, 7, 7, 7, 5, 3] 49, ) 37 38 38 9 38 3 3, ) 6 6 6 40 9388 39 [3, 5, 7, 7, 7, 6, 4] 6, ) 5 39 39 39 39 7 873 5, ) 6 6 6 40 07 40 [3, 6, 7, 7, 7, 6, 4] 63, ) 40 40 5 40 9 433 35, ) 5 58 58 58 39 44

S. Brlek et al. / Theoretical Computer Science 406 008) 3 4 4 Fig. 8. The roundest animals of size 40 up to dihedral symmetry). Acknowledgements The authors are grateful to the anonymous referees for the useful and accurate comments provided. References [] C. Kim, On the cellular convexity of complexes, Pattern Anal. Machine Intelligence 3 6) 98) 67 65. [] C. Kim, Digital convexity, straightness, and convex polygons, Pattern Anal. Machine Intelligence 4 6) 98) 68 66. [3] M. Minsky, S. Papert, Perceptrons: An Introduction to Computational Geometry, MIT Press, Cambridge, Mass, 969. [4] S. Brlek, G. Labelle, A. Lacasse, Incremental algorithms based on discrete green theorem, in: Discrete geometry for computer imagery, in: Lecture otes in Comput. Sci., vol. 886, Springer, Berlin, 003, pp. 77 87.

4 S. Brlek et al. / Theoretical Computer Science 406 008) 3 4 [5] S. Brlek, G. Labelle, A. Lacasse, The discrete green theorem and some applications in discrete geometry, Theoret. Comput. Sci. 346 ) 005) 00 5. [6] Y. Altshuler, V. Yanovsky, D. Vainsencher, I.A. Wagner, A.M. Bruckstein, On minimal perimeter polyominoes, in: Discrete Geometry for Computer Imagery, in: Lecture otes in Comput. Sci., vol. 445, Springer, Berlin, 006, pp. 7 8. [7] R.P. Feynman, R.B. Leighton, M. Sands, The Feynman lectures on physics, in: Mainly Mechanics, Radiation, and Heat, vol., Addison-Wesley Publishing Co., Inc., Reading, Mass.-London, 963. [8] R.P. Stanley, Enumerative Combinatorics. Vol., in: Cambridge Studies in Advanced Mathematics, vol. 49, Cambridge University Press, Cambridge, 997, with a foreword by Gian-Carlo Rota, Corrected reprint of the 986 original. [9] A. Heck, Introduction to Maple, 3rd ed., Springer-Verlag, ew York, 003. [0] R. Klette, A. Rosenfeld, Digital straightness a review, Discrete Appl. Math. 39 3) 004) 97 30.