THE NUMBER OF SQUARE ISLANDS ON A RECTANGULAR SEA

Similar documents
SURVEY ON ISLANDS a possible research topic, even for students

Szigetek. K. Horváth Eszter. Szeged, április 27. K. Horváth Eszter () Szigetek Szeged, április / 43

A GENERAL FRAMEWORK FOR ISLAND SYSTEMS

Islands: from coding theory to enumerative combinatorics and to lattice theory - overview and open problems. Eszter K. Horváth

Notes on CD-independent subsets

The p n sequences of semigroup varieties generated by combinatorial 0-simple semigroups

Restricted b-matchings in degree-bounded graphs

Shifting Lemma and shifting lattice identities

Mathematics in Good Will Hunting II: Problems from the students perspective

Packing Arborescences

Combinatorial Optimisation, Problems I, Solutions Term /2015

The cocycle lattice of binary matroids

A note on congruence lattices of slim semimodular

ON THE THREE-ROWED CHOMP. Andries E. Brouwer Department of Mathematics, Technical University Eindhoven, P.O. Box 513, 5600MB Eindhoven, Netherlands

Mathematics. Lecture and practice. Norbert Bogya. University of Szeged, Bolyai Institute. Norbert Bogya (Bolyai Institute) Mathematics / 27

THE MAXIMAL SUBGROUPS AND THE COMPLEXITY OF THE FLOW SEMIGROUP OF FINITE (DI)GRAPHS

GENERATING SINGULAR TRANSFORMATIONS

Solving a linear equation in a set of integers II

Non-TDI graph-optimization with supermodular functions (extended abstract)

Using Laplacian Eigenvalues and Eigenvectors in the Analysis of Frequency Assignment Problems

A characterization of the identity function

Downloaded 03/01/17 to Redistribution subject to SIAM license or copyright; see

On reducible and primitive subsets of F p, II

Geometry. The k Most Frequent Distances in the Plane. József Solymosi, 1 Gábor Tardos, 2 and Csaba D. Tóth Introduction

THE JOIN OF TWO MINIMAL CLONES AND THE MEET OF TWO MAXIMAL CLONES. Gábor Czédli, Radomír Halaš, Keith A. Kearnes, Péter P. Pálfy, and Ágnes Szendrei

#A45 INTEGERS 9 (2009), BALANCED SUBSET SUMS IN DENSE SETS OF INTEGERS. Gyula Károlyi 1. H 1117, Hungary

ON KRONECKER PRODUCTS OF CHARACTERS OF THE SYMMETRIC GROUPS WITH FEW COMPONENTS

An estimate for the probability of dependent events

Journal of Inequalities in Pure and Applied Mathematics

Alternating paths revisited II: restricted b-matchings in bipartite graphs

SUBSPACE LATTICES OF FINITE VECTOR SPACES ARE 5-GENERATED

A note on [k, l]-sparse graphs

A UNIVERSAL SEQUENCE OF CONTINUOUS FUNCTIONS

A DEGREE VERSION OF THE HILTON MILNER THEOREM

Near-domination in graphs

A structure theorem of semimodular lattices and the Rubik s cube

Reachability of recurrent positions in the chip-firing game

Exhaustive Classication of Finite Classical Probability Spaces with Regard to the Notion of Causal Up-to-n-closedness

Reachability-based matroid-restricted packing of arborescences

On primitive sets of squarefree integers

Rectangles as Sums of Squares.

THE LARGEST INTERSECTION LATTICE OF A CHRISTOS A. ATHANASIADIS. Abstract. We prove a conjecture of Bayer and Brandt [J. Alg. Combin.

Congurations of periodic orbits for equations with delayed positive feedback

Packing Congruent Bricks into a Cube

Copyright 2013 Springer Science+Business Media New York

IMA Preprint Series # 2385

Irredundant Families of Subcubes

A bijective proof of Shapiro s Catalan convolution

1 I A Q E B A I E Q 1 A ; E Q A I A (2) A : (3) A : (4)

An algorithm to increase the node-connectivity of a digraph by one

Absolutely convergent Fourier series and classical function classes FERENC MÓRICZ

Linear independence, a unifying approach to shadow theorems

Abstract. We show that a proper coloring of the diagram of an interval order I may require 1 +

Chromatic Ramsey number of acyclic hypergraphs

Excluded permutation matrices and the Stanley Wilf conjecture

INTEGRABILITY CONDITIONS PERTAINING TO ORLICZ SPACE

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

arxiv: v1 [math.co] 2 Dec 2013

On the bipartite graph packing problem

12-neighbour packings of unit balls in E 3

ON A PROBLEM OF PILLAI AND ITS GENERALIZATIONS

Game saturation of intersecting families

ON SUM OF SQUARES DECOMPOSITION FOR A BIQUADRATIC MATRIX FUNCTION

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

Chapter 1. Comparison-Sorting and Selecting in. Totally Monotone Matrices. totally monotone matrices can be found in [4], [5], [9],

Arithmetic Progressions with Constant Weight

Hanna Furmańczyk EQUITABLE COLORING OF GRAPH PRODUCTS

Polynomial functions over nite commutative rings

Edge-disjoint induced subgraphs with given minimum degree

Standard Koszul standardly stratied algebras

Some remarks on the Shannon capacity of odd cycles Bruno Codenotti Ivan Gerace y Giovanni Resta z Abstract We tackle the problem of estimating the Sha

The matrix approach for abstract argumentation frameworks

ON SOME CLASSES OF TREE AUTOMATA AND TREE LANGUAGES

Almost Cross-Intersecting and Almost Cross-Sperner Pairs offamilies of Sets

Transversal designs and induced decompositions of graphs

About Maximal Partial 2-Spreads in PG(3m 1, q)

Boolean Inner-Product Spaces and Boolean Matrices

Lines With Many Points On Both Sides

A Collection of MTA ELTE GAC manuscripts

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

Families that remain k-sperner even after omitting an element of their ground set

TOWARDS A SPLITTER THEOREM FOR INTERNALLY 4-CONNECTED BINARY MATROIDS IV

TORIC WEAK FANO VARIETIES ASSOCIATED TO BUILDING SETS

Nordhaus-Gaddum Theorems for k-decompositions

IMA Preprint Series # 2066

The small ball property in Banach spaces (quantitative results)

CDMTCS Research Report Series Explicit Denition of the Binary Reected Gray Codes Marston Conder Department of Mathematics University of Auckland Auckl

TOWARDS A SPLITTER THEOREM FOR INTERNALLY 4-CONNECTED BINARY MATROIDS VII

2 Exercises 1. The following represent graphs of functions from the real numbers R to R. Decide which are one-to-one, which are onto, which are neithe

Countable Menger s theorem with finitary matroid constraints on the ingoing edges

Lecture 1. Toric Varieties: Basics

Reconstructibility of trees from subtree size frequencies

MULTIPLICITIES OF MONOMIAL IDEALS

The Advantage Testing Foundation Olympiad Solutions

Graphs with Large Variance

Algorithmic Approach to Counting of Certain Types m-ary Partitions

Approximation Algorithms for Maximum. Coverage and Max Cut with Given Sizes of. Parts? A. A. Ageev and M. I. Sviridenko

TILING ABELIAN GROUPS WITH A SINGLE TILE

Key words and phrases. Hausdorff measure, self-similar set, Sierpinski triangle The research of Móra was supported by OTKA Foundation #TS49835

The Complete Intersection Theorem for Systems of Finite Sets

Transcription:

THE NUMBER OF SQUARE ISLANDS ON A RECTANGULAR SEA ESZTER K. HORVÁTH, GÁBOR HORVÁTH, ZOLTÁN NÉMETH, AND CSABA SZABÓ Abstract. The aim of the present paper is to carry on the research of Czédli in determining the maximum number of rectangular islands on a rectangular grid. We estimate the maximum of the number of square islands on a rectangular grid. Address (1): Bolyai Institute, University of Szeged, Aradi vértanúk tere 1, 6720 Szeged, Hungary E-mail address: horeszt@math.u-szeged.hu Address (2): Department of Media and Communications, Room V914, London School of Economics, Houghton Street, London, WC2A 2AE, United Kingdom E-mail address: G.Horvath@lse.ac.uk Address (): Bolyai Institute, University of Szeged, Aradi vértanúk tere 1, 6720 Szeged, Hungary E-mail address: znemeth@math.u-szeged.hu Address (4): Eötvös Loránd University, Department of Algebra and Number Theory, 1117 Budapest, Pázmány Péter sétány 1/c, Hungary E-mail address: csaba@cs.elte.hu AMS subject classication: 06D99, 05A05 Date: February 27, 2011. Key words and phrases. Lattice, distributive lattice, weakly independent subset, weak basis, full segment, square island, rectangular grid. The rst author was partially supported by the Hungarian National Foundation for Scientic Research grant T0494, and by the Provincial Secretariat for Science and Technological Development, Autonomous Province of Vojvodina, grant Lattice methods and applications. The second and the fourth author were partially supported by the Hungarian National Foundation for Scientic Research grants K67870 and N67867. 1

2 E. K. HORVÁTH, G. HORVÁTH, Z. NÉMETH, AND CS. SZABÓ 1. Introduction Recently, the notion of islands on a grid caught the attention of several researchers. The original combinatorial problem was raised in connection with instantaneous (prex-free) codes, see []. For every square (cell) of a rectangular grid a positive real number a ij is given, its height. The height of the bottom (above sea level) is constant 0 on each cell. Now a rectangle R is called a rectangular island i there is a possible water level such that R is an island of the lake in the usual sense. There are other examples requiring only m n cells; for example, a ij may mean a colour on a gray-scale (before we convert the picture to black and white), transparency (against X-rays), or melting temperature can be modelled with the three dimensional version of the problem. Czédli [2] has considered a rectangular lake whose bottom is divided into (m + 2) (n + 2) cells. In other words, we identify the bottom of the lake with the table {0, 1,..., m + 1} {0, 1,..., n + 1}. In his paper, he shows that the maximum number of rectangular islands is (mn+m+n 1)/2. Pluhár [6], generalizing the earlier methods gave upper and lower bounds in higher dimensions. In [5] the dual problem of Czédli is investigated: the minimal size of a maximal system of islands is presented. Czédli's work is continued on dierent surfaces (torus, cylinder) in [1]. In [4], the maximum number of triangular islands on the triangular grid is investigated. There, the methods for nding the proper lower and upper bounds are highly non-trivial and dierent from the rectangular cases. This gave us the motivation to investigate the number of square islands on a rectangular grid. For n N let n = [1, n] = {1,..., n}. For m, n N the set m n will be called a table of size m n. We will consider m n as a collection of cells: (i, j) will mean the j-th cell in the i-th row. We identify m n by the rectangular grid { 0, 1,..., m } { 0, 1,..., n }, and the cell (i, j) is identied by the set { (i 1, j 1), (i, j 1), (i 1, j), (i, j) } of four gridpoints. Geometrically m n is identied with a rectangle of sidelengths m and n, and the cell (i, j) is identied with the unit subsquare whose upper-right vertex is gridpoint (i, j). Two cells are called neighbouring cells if the distance of their centers is at most 2. That is, two cells are neighbouring if their corresponding unit subsquares intersect by a side or by a vertex, i.e. if they have a common gridpoint. By a height function of m n we mean a mapping h: m n R, (i, j) a ij. Let R be an arbitrary subsquare of m n. We say that R

THE NUMBER OF SQUARE ISLANDS is a square island of the height function h if h((i, j)) < min(h R ) holds for each (i, j) (m n) \ R such that (i, j) is neighbouring with some cell of R. The set of square islands of h will be denoted by I sqr (h). We are looking for max I sqr (h), where h runs through all possible height functions. In Section 2 we prove that for the rectangular grid (m 1) (n 1) the maximum number of square islands max I sqr (h) satises the following inequalities: 1 (mn 2m 2n) max I sqr(h) 1 (mn 1). Then in Section we generalize our two dimensional results to higher dimensions. The key of all proofs for the upper estimates is an ingenious observation of Czédli: in the rectangular case the number of islands can be measured by the area of the rectangle, and this was the case for triangular islands, as well. Let Sq m,n denote the set of subsquares in m n and T 1, T 2 Sq m,n be two squares of m n. We say that T 1 and T 2 are far from each other, if they are disjoint and no cell of T 1 is neighbouring with any cell of T 2. Obviously, the role of T 1 and T 2 is symmetric in the denition. The following statement is from Section 2 of [2]. Lemma 1. Let H be a subset of Sq m,n. The following two conditions are equivalent: (i) There exists a height function h such that H = I sqr (h). (ii) For any T 1, T 2 H either T 1 T 2 or T 2 T 1 or T 1 and T 2 are far from each other. Moreover, if m = n, then m n H. In the sequel, subsets H of Sq m,n satisfying the (equivalent) conditions of Lemma 1 will be called systems of square islands. Let L m n denote the set of gridpoints contained in the rectangle (m 1) (n 1). Indeed, these gridpoints form an m by n grid. For a rectangle (or square) T let L(T ) denote the set of gridpoints contained in T. Lemma 1 can be reformulated on the following way: Lemma 2. Let H be a subset of Sq m,n. The following two conditions are equivalent: (i) There exists a height function h such that H = I sqr (h). (ii) For any T 1, T 2 H either L(T 1 ) L(T 2 ) or L(T 2 ) L(T 1 ) or L(T 1 ) and L(T 2 ) are disjoint. Moreover, if m = n, then m n H. Proof. We only have to observe, that two squares T 1 and T 2 are far if and only if L(T 1 ) L(T 2 ) =.

4 E. K. HORVÁTH, G. HORVÁTH, Z. NÉMETH, AND CS. SZABÓ 2. Estimating the number of islands Let f (m, n) denote the maximum number of square islands on the rectangular grid (m 1) (n 1), or equivalently on gridpoints L m n. In this Section we prove the following inequalities: 1 (mn 2m 2n) f (m, n) 1 (mn 1). First in Subsection 2.1 we inductively construct a set H = S (m 1) (n 1) of squares on the rectangular grid (m 1) (n 1) (or equivalently on gridpoints L m n ) satisfying condition (ii) of Lemma 1 (or equivalently Lemma 2). Hence S (m 1) (n 1) is a system of square islands. Let s (m, n) = S (m 1) (n 1). Clearly, s(m, n) is a lower bound for f (m, n), that is s (m, n) f (m, n) holds. We prove that 1 (mn 2m 2n) s (m, n) in Subsection 2.2, which nishes the proof of the lower bound. Secondly, we prove the upper bound in Subsection 2. by calculating the number of gridpoints covered by the maximal elements of an arbitrary set of rectangular islands. We shall see that our upper bound is sharp, when m = n = 2 k for some positive integer k. 2.1. Constructing the set S (m 1) (n 1). Let m, n be arbitrary positive integers. For the table T = (m 1) (n 1) (i.e. where L m n is an m n grid) we dene a system of square islands, S T. Then we calculate the number s (m, n) = S (m 1) (n 1). We dene S T by induction on m and n. For technical reasons we dene S (m 1) (0) = S (0) (n 1) as the emptyset and hence we dene s(m, 0) = s (0, n) = 0. First we dene our system of islands when m = n = 2 i (for some positive integer i), then for m = 2 i, n = 2 j (for some positive integers i j) and nally for arbitrary positive integers m, n of not the above form. If m = 1 or n = 1, then let S (m 1) (n 1) =. Now, let T be a square of 2 i 2 i gridpoints, i.e. m = n = 2 i. Into this square we draw four subsquares of 2 i 1 2 i 1 gridpoints as shown in Figure 1. Let us denote these squares by T 1, T 2, T and T 4. Now, let S (m 1) (n 1) = { T } S T1 S T2 S T S T4. Let T = (m 1) (n 1) such that m = 2 i, n = 2 j, for some positive integers i j. Let us assume that i < j, the other case can be handled similarly. Into T we draw 2 j i -many equilateral subsquares of 2 i 2 i gridpoints as shown in Figure 2. Let these squares be T 1, T 2,..., T 2 j i. Now, let S (m 1) (n 1) = S T1 S T2 S T2 j i.

THE NUMBER OF SQUARE ISLANDS 5 Figure 1. Construction of S (m 1) (n 1) for m = n = 8. Figure 2. Construction of S (m 1) (n 1) for m = 4, n = 16. Finally, let m and n be arbitrary positive integers not of the above form, i.e. at least one of m and n is not a power of 2. Let the binary form of m be a k a k 1... a 1 a 0, i.e. m = k i=0 a i 2 i. Similarly, let the binary form of n be b l b l 1... b 1 b 0, i.e. n = l j=0 b j 2 j. Let us divide the sides of the grid L m n into segments of legths a i 2 i and b j 2 j (for 0 i k and 0 j l). This denes a (rectangular) tiling on L m n (and thus on T = (m 1) (n 1)) by taking the direct products of the appropriate intervals. A general rectangle is of the form (a i 2 i ) (b j 2 j ). Figure shows this tiling for m = 6, n = 14. Let us denote by T i,j the subrectangle of gridpoints 2 i 2 j, if a i = b j = 1. Now, if m n then let S (m 1) (n 1) = S Ti,j, 0 i k 0 j l a i =1 b j =1

6 E. K. HORVÁTH, G. HORVÁTH, Z. NÉMETH, AND CS. SZABÓ if m = n, then let S (m 1) (n 1) = { T } S Ti,j. 0 i k 0 j l a i =1 b j =1 Figure. Construction of S (m 1) (n 1) for m = 6, n = 14. 2.2. Lower bound. Let { 1, if m = n and is not a power of 2, ε (m, n) = 0, otherwise, We remind the reader that s (m, n) = S(m 1) (n 1). From our construction it is easy to see that s satises the following properties: (1) (2) () (4) s (m, 1) = s (1, n) = 0, s ( 2 i, 2 i) = 4 s ( 2 i 1, 2 i 1) + 1, s ( 2 i, 2 j) = 2 j i s ( 2 min{ i,j }, 2 min{ i,j }), k l s (m, n) = a i b j s ( 2 i, 2 j) + ε (m, n), i=0 j=0 where the binary form of m is a k a k 1... a 1 a 0 and the binary form of n is b l b l 1... b 1 b 0. Theorem. Let the binary form of m be a k a k 1... a 1 a 0 and let the binary form of n be b l b l 1... b 1 b 0. Then s (m, n) = 1 mn 1 k l a i b j 2 i j + ε (m, n). i=0 j=0

THE NUMBER OF SQUARE ISLANDS 7 Proof. By induction on i we can easily deduce from (2) that s ( 2 i, 2 i) = 1 (4 i 1 ). By applying () we immediately obtain for i < j that similarly for j < i we have s ( 2 i, 2 j) = 1 (2 i+j 2 j i), s ( 2 i, 2 j) = 1 (2 i+j 2 i j). The formula s (2 i, 2 j ) = 1 (2 i+j 2 i j ) summarizes our previous two remarks. Now let the binary form of m be a k a k 1... a 1 a 0 and let the binary form of n be b l b l 1... b 1 b 0. Then k l s (m, n) = a i b j s ( 2 i, 2 j) + ε (m, n) i=0 = 1 j=0 k i=0 l a i b j (2 i+j 2 i j ) + ε (m, n), j=0 = 1 mn 1 k i=0 l a i b j 2 i j + ε (m, n). Lemma 4. Let the binary form of m be a k a k 1... a 1 a 0 and let the binary form of n be b l b l 1... b 1 b 0. Then k l a i b j 2 i j 2 (m + n). i=0 Proof. We have k l a i b j 2 i j i=0 j=0 j=0 k a i 2 i i=0 j=0 l b j 2 j + j=i k a i 2 i n + i=0 2 (m + n). l b j 2 j j=0 l b j 2 j m j=0 k a i 2 i i=j

8 E. K. HORVÁTH, G. HORVÁTH, Z. NÉMETH, AND CS. SZABÓ Corollary 5. f (m, n) 1 (mn 2m 2n). Proof. Let the binary form of m be a k a k 1... a 1 a 0 and let the binary form of n be b l b l 1... b 1 b 0. Then we have f (m, n) s (m, n) = 1 mn 1 k l a i b j 2 i j + ε (m, n) i=0 j=0 1 (mn 2m 2n). 2.. Upper bound. Theorem 6. The following inequality holds: f(m, n) 1 (mn 1). Proof. We prove the statement by induction on m and n. For m 2 or for n 2 the statement is clear. The induction hypothesis is, that for any rectangle T with uv-many gridpoints, such that u m, v n, (u, v) (m, n), we have f(u, v) 1 (uv 1). We dene µ(u, v) := uv, which is exactly the number of gridpoints of the rectangle of sidelengths u 1, v 1. Let the two sides of the rectangle T contain u T and v T -many gridpoints. Let ε (m, n) = { 1, if m = n, 0, if m n, Let H be a system of square islands of (m 1) (n 1), such that H = f (m, n). Let max H be the set of maximal islands in H \

THE NUMBER OF SQUARE ISLANDS 9 { (m 1) (n 1) }. Now, f(m, n) = ε (m, n) + f(u T, v T ) ε (m, n) + 1 (u T v T 1) = ε (m, n) + T maxh 1 (µ(u T, v T ) 1) = ε (m, n) 1 max(h ) + µ(u T, v T ) ε (m, n) 1 µ(m, n) max(h ) + = ε (m, n) 1 max(h ) + mn. Recall that ε (m, n) = 0, whenever m n and ε (m, n) = 1 if m = n. Thus, if m n or max(h ) 4 then we obtained that f(m, n) 1 (mn 1). For the remaining cases we assume that m = n. We use induction on m. If max(h ) = 1, then the maximum number of the square islands is f (m 1, m 1) + 1. In this case by the induction hypothesis f (m, m) = f (m 1, m 1) + 1 = 1 ((m 1) 2 1 ) + 1 = 1 (m 2 2m + ) 1 (m 2 1 ). If max(h ) = 2, then the maximum number of the square islands is f(k, k) + f(m k, m k) + 1 for some k where 2 k m 2. In this case by the induction hypothesis f (m, m) = f (k, k) + f (m k, m k) + 1 = 1 (k 2 1 + (m k) 2 1 ) + 1 = 1 (m 2 2mk + 2k 2 + 1 ) 1 (m 2 1 ).

10 E. K. HORVÁTH, G. HORVÁTH, Z. NÉMETH, AND CS. SZABÓ If max(h ) =, then at least one gridpoint does not belong to any of the maximal islands, consequently, f(m, m) = 1 + f(u T, v T ) 1 + 1 (u T v T 1) = 1 + T maxh 1 (µ(u T, v T ) 1) = 1 1 max(h ) + µ(u T, v T ) 1 1 + µ(m, n) 1 = 1 (mn 1). Remark 7. We note that our upper bound is sharp, whenever m = n = 2 k for some k.. Higher dimensions Now, let us consider dimension d, for d. We use the denitions from [6]. For n N let n = [1, n] = {1,..., n}. For m 1, m 2,... m d N the set m 1 m 2 m d will be called a (d dimensional) table of size m 1 m 2 m d. We consider m 1 m 2 m d as a collection of cells. As with the two-dimensional case, we identify m 1 m 2 m d by the rectangular grid { 0, 1,..., m 1 } { 0, 1,..., m d }. Geometrically m 1 m 2 m d is identied with a d-dimensional rectangular cuboid of sidelengths m 1,..., m d. A cell (i, j) is identied with the corresponding unit subcube, or with the set of its 2 d -many vertices. Two cells are called neighbouring cells if the distance of their centers is at most d. That is, two cells are neighbouring if their corresponding unit subcubes intersect by an at most (d 1)-dimensional face, i.e. if they have a common gridpoint. By an array of size m 1 m 2 m d we mean a mapping A: m 1 m 2 m d R, (h 1, h 2,..., h d ) a h1,h 2,...h d. Given A, for a cube R of the table m 1 m 2 m d let min(a R ) denote the minimum of {a h1 h 2...,h d : (h 1, h 2,..., h d ) R}. We say that R is a cube island of the array A if R is a d-dimensional subcube of the table and a h1 h 2...h d <

THE NUMBER OF SQUARE ISLANDS 11 min(a R ) holds for each (h 1, h 2,..., h d ) (m 1 m 2 m d )\R such that (h 1, h 2,..., h d ) is neighbouring with some cell of R. Let L m1 m d denote the set of gridpoints contained in the table (m 1 1) (m d 1). These gridpoints form an m 1 m d grid. The set of cube islands of A will be denoted by I sqr (A). For a given table of size (m 1 1) (m 2 1) (m d 1) (or equivalently on gridpoints L m1 m d ). Notice that Lemmas 1 and 2 can be reformulated easily for higher dimensions. Let f(m 1, m 2,..., m d ) denote the maximum number of cube islands. Using the ideas and proofs we presented in Section 2, we prove the following upper and lower bounds: f (m 1,..., m d ) 1 2 d 1 (m 1 m d 1), f (m 1,..., m d ) 1 2 d 1 (m 1 m d 2 m j1 m j2 m jd 1 ), where the sum is over the d 1 element subsets of { 1, 2,..., d }. We prove the lower bound in Theorem 8, the upper bound in Theorem 9. Considering that the proof for higher dimensional cases is pretty similar to the proof for the two dimensional case, we only sketch the proofs of these theorems. We note, that our upper bound is sharp, whenever m 1 = = m d = 2 k for some positive integer k. Theorem 8. f (m 1,..., m d ) 1 (m 2 d 1 1 m d 2 ) m j1 m j2 m jd 1, where the sum is over the d 1 element subsets of { 1, 2,..., d }. Proof. Since the proof is quite similar to the two dimensional case, we just state the key observations without further explanations. Let t (j 1,..., j d ) = d i=1 j i d min { j 1,..., j d } and let { 1, if m1 = = m ε (m 1,..., m d ) = d and is not a power of 2, 0, otherwise. The extension of the two dimensional construction in Section 2.1 to higher dimension is straightforward. The number of cubes used is denoted by s. It is a lower bound of f and its recursive description is as

12 E. K. HORVÁTH, G. HORVÁTH, Z. NÉMETH, AND CS. SZABÓ follows: 0 = s (m 1,..., m d ), if m i = 1 for some 1 i d, s ( 2 j,..., 2 j) = 2 d s ( 2 j 1,..., 2 j 1) + 1, s ( 2 j 1,... 2 d) j = 2 t(j 1,...,j d) s ( 2 min{ j 1,...,j d }, 2 ) min{ j 1,...,j d }, s (m 1,... m d ) = a (1) j 1 a (d) j d s ( 2 j 1 ),..., 2 j d 0 j 1 k 1 0 j d k d + ε (m 1,..., m d ), where the binary form of m i is a (i) k i... a (i) 0 (i.e. m i = k i j i =0 a(i) j i 2 j i ) for every 1 i d. Similarly to the two dimensional case, by induction on j we have s ( 2 j,..., 2 j) = 1 2 d 1 (2 d j 1 ). Similarly as in Subsection 2.2 we have for j 1 j d that s ( 2 j 1 ),..., 2 j 1 d = 2 d 1 (2 j 1+ +j d 2 j 2+ +j d (d 1) j 1 ) = 1 2 d 1 (2 j 1+ +j d 2 t(j 1,...,j d ) ). Let the binary form of m i be a (i) k i... a (i) 0 for every 1 i d. Now, s (m 1,..., m d ) = 0 j 1 k 1 + ε (m 1,..., m d ) = 1 2 d 1 0 j 1 k 1 a (1) j 1 0 j d k d + ε (m 1,..., m d ) = 1 2 d 1 m 1 m d 1 2 d 1 0 j 1 k 1 + ε (m 1,..., m d ). a (d) j d a (1) j 1 0 j d k d a (1) j 1 0 j d k d s ( 2 j 1 ),..., 2 j d a (d) j d (2 j 1+ +j d 2 t(j 1,...,j d ) ) a (d) j d 2 t(j 1,...,j d )

As we proved in Lemma 4, we have THE NUMBER OF SQUARE ISLANDS 1 0 j 1 k 1 d k i=1 j 1 =0 a (1) j 1 0 j d k d a (d) j d a (i) j i 2 (d 1) ji 2 t(j 1,...,j d ) k j 1,...j i 1,j i+1,...,j d =j i a (1) j 1 a (d) j d a (i) j i 2 j1+ +jd ji 2 m j1 m j2 m jd 1, where the last sum is over the d 1 element subsets of { 1, 2,..., d }. This nishes the proof of Theorem 8. Theorem 9. f (m 1,..., m d ) 1 2 d 1 (m 1 m d 1). Proof. The proof is quite similar to the two dimensional case, hence we just state the key observations without further explanations. We prove the statement by induction on m 1,..., m d. If m i 2 for all but one 1 i d, then the statement is clear. The induction hypothesis is, that for any table T with u 1... u d -many gridpoints, such that u i m i for every 1 i d, (u 1,..., u d ) (m 1,... m d ), we have f(u 1,..., u d ) 1 (u 2 d 1 1 u d 1). We dene µ(u 1,..., u d ) := u 1 u d, which is exactly the number of grid points of the table of sidelengths u 1 1,..., u d 1. Let the sides of the table T contain u T,1, u T,2,..., u T,d -many gridpoints. Let ε (m 1,..., m d ) = { 1, if m1 = = m d, 0, otherwise. Let H be a system of cube islands of (m 1 1) (m d 1), such that H = f (m 1,..., m d ). Let max H be the set of maximal islands

14 E. K. HORVÁTH, G. HORVÁTH, Z. NÉMETH, AND CS. SZABÓ in H \ { (m 1 1) (m d 1) }. Now, f(m 1,..., m d ) = ε (m 1,..., m d ) + f(u T,1,..., u T,d ) ε (m 1,..., m d ) + 1 2 d 1 (u T,1 u T,d 1) = ε (m 1,..., m d ) + T maxh 1 = ε (m 1,..., m d ) 1 2 d 1 max(h ) + µ(u T,1,..., u T,d) 2 d 1 2 d 1 (µ(u T,1,..., u T,d ) 1) ε (m 1,..., m d ) 1 2 d 1 max(h ) + µ(m 1,..., m d ) 2 d 1 = ε (m 1,..., m d ) 1 2 d 1 max(h ) + m 1 m d 2 d 1. Recall that ε (m 1,..., m d ) = 1, whenever m 1 = m 2 = = m d, otherwise ε (m 1,..., m d ) = 0. Thus if m i m j for some 1 i < j d or max(h ) 2 d then we obtained that f(m 1,..., m d ) 1 2 d 1 (m 1 m d 1). For the remaining cases we assume that m 1 = m 2 = = m d. Let m = m 1 and let t = max(h ). We only need to consider the case t 2 d 1. We use induction on m. The maximum side length of the cubes in max(h ) is denoted by m k. All the other side lengths are at most k, we denote them by k 1, k 2,..., k t 1. Then the maximum number of cube islands is 1 + f (m k,..., m k) + f (k 1,..., k 1 ) + + f (k t 1,..., k t 1 ). Now, f(m,..., m) = 1 + f(u T,1,..., u T,d ) 1 + 1 2 d 1 (u T,1 u T,d 1) = 1 1 2 d 1 max(h ) + (m k)d + k1 d + + kt 1 d 2 d 1 2d 1 t + (m k) d + (t 1) k d. 2 d 1

THE NUMBER OF SQUARE ISLANDS 15 Let g (x) = (m x) d +(t 1) x d. For x [1, m/2] we have g (x) > 0, i.e. g is convex in the interval [1, m/2], thus g (x) max { g (1), g (m/2) } for x [1, m/2]. Now, g (1) = (m 1) d + (t 1) m d + t 1 d (m 1) d 1 m d + t 1 2 d 1 m d + t 2 d, hence g (m/2) = t (m/2) d = m d md 2 d (2 d t ) m d + t 2 d, f(m,..., m) 2d 1 t + (m k) d + (t 1) k d 2 d 1 2d 1 t + m d + t 2 d 2 d 1 = 1 2 d 1 (m d 1 ). Remark 10. Our upper bound is sharp, whenever m 1 = = m d = 2 k for some k. We conjecture that f (m 1,..., m d ) = s (m 1,..., m d ) always holds, but we think that the verication would require a fair amount of technical estimations, including the distinction of several cases and subcases and might not be worth of the eort and space. This is also suggested by the fact that in most cases the arrengement of the squares is not unique. References [1] J. Barát, P. Hajnal and E. K. Horváth, Elementary proof techniques for the maximum number of islands, Europ. J. Combinatorics, submitted (2009). [2] G. Czédli, The number of rectangular islands by means of distributive lattices, Europ. J. Combinatorics, 0/1 (2009), 208215. [] S. Földes and N. M. Singhi, On instantaneous codes, J. of Combinatorics, Information and System Sci. 1 (2006), 1726. [4] E. K. Horváth, Z. Németh, G. Pluhár, The number of triangular islands on a triangular grid, Periodica Mathematica Hungarica, 58 (2009), 254. [5] Zs. Lengvárszky The minimum cardinality of maximal systems of rectangular islands, Europ. J. Combinatorics, 0/1 (2009), 216219.

16 E. K. HORVÁTH, G. HORVÁTH, Z. NÉMETH, AND CS. SZABÓ [6] G. Pluhár, The number of brick islands by means of distributive lattices, Acta Sci. Math., 75/12 (2009), 11. (1) Bolyai Institute, University of Szeged, Aradi vértanúk tere 1, 6720 Szeged, Hungary E-mail address: horeszt@math.u-szeged.hu (2) Department of Media and Communications, Room V914, London School of Economics, Houghton Street, London, WC2A 2AE, United Kingdom E-mail address: G.Horvath@lse.ac.uk () Bolyai Institute, University of Szeged, Aradi vértanúk tere 1, 6720 Szeged, Hungary E-mail address: znemeth@math.u-szeged.hu (4) Eötvös Loránd University, Department of Algebra and Number Theory, 1117 Budapest, Pázmány Péter sétány 1/c, Hungary E-mail address: csaba@cs.elte.hu