mlsanityData to 14 Oct 2026

Efficient Generation of Binary Magic Squares

arXiv 2511.00547 ↗First posted 1 Nov 2025cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

We propose a simple algorithm for generating Binary Magic Squares (BMS), i.e., square binary matrices where the sum of all rows and all columns are equal. We show by induction that our algorithm always returns valid BMS with optimal theoretical complexity. We then extend our study to non-square Binary Magic Squares, formalize conditions on the sum of rows and columns for these BMS to exist, and show that a slight variant of our first algorithm can generate provably generate them. Finally, we publicly release two implementations of our algorithm as Python packages, including one that can generate several BMS in parallel using GPU acceleration.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 3 of its 8 references that are in the map. First posted on arXiv 1 Nov 2025.

Builds on

3 of 8 references.

References · 3

  1. 2020Non-Uniform Sampling of Fixed Margin Binary Matricescited by 2
  2. 2017Reconstructing binary matrices under window constraints from their row and column sumscited by 1
  3. 2019A Fast MCMC for the Uniform Sampling of Binary Matrices with Fixed Marginscited by 1

Built on by

Not cited yet.