English

Variants of the Gale-Berlekamp Switching Game and their Solutions: Balancing the Rectangle and the Cube

Combinatorics 2021-08-23 v1

Abstract

The Gale-Berlekamp Light Switching Game is played on a square board of lights. Each light has two states, either on or off. There is a switch to every row and column. Turning this switch would change the state of all the lights on that row or column. The aim of the game is to minimise the imbalance in the board, defined to be the absolute difference between the number of lights switched on and that of lights switched off. We investigate variants of the game for an m×nm \times n matrix with n even and mnm \le n. We provide a constructive proof that for any m×nm \times n rectangle matrix AA, there exists x(±1)nx \in (\pm 1)^n and y(±1)my \in (\pm 1)^m such that yAx2|yAx| \le 2. i.e. column and row switches to reduce the imbalance to at most 22, construct a complete Python routine to find these switches, and test run the algorithm against randomly generated initial board configurations. We then expand the game to a three-dimensional n×n×nn \times n \times n cube, with corresponding row, column, and layer switches. We define a minimum threshold PnP_n, such that the imbalance can always be reduced to at most PnP_n, for all initial states of the cube. We then provide an existential proof that P2=2P_2 = 2 and P4=4P_4 = 4.

Keywords

Cite

@article{arxiv.2108.09290,
  title  = {Variants of the Gale-Berlekamp Switching Game and their Solutions: Balancing the Rectangle and the Cube},
  author = {Le Viet Hung and Xu Yu},
  journal= {arXiv preprint arXiv:2108.09290},
  year   = {2021}
}

Comments

Keywords: Gale-Berlekamp Light Switching Game, minimise the imbalance, balancing rectangle matrices, balancing the cube