Bite 3.5.10 · Modelling Challenges

Beyond 0 and 1, the binary sudoku

Challenge your mind and learn to solve this puzzle of zeros and ones

Image by Eva Gorobets · Unsplash

Binary Sudoku (also known as Takuzu or Binairo) is a logic puzzle played on an $n \times n$ grid board, where $n$ is an even number. The goal is to fill all empty cells with only zeros and ones while respecting three fundamental rules:

  1. Balance: Each row and each column must contain exactly the same number of zeros and ones.
  2. Consecutive limit: No more than two identical numbers can be adjacent (neither horizontally nor vertically).
  3. Uniqueness: No two rows and no two columns can be identical.

A Binary Sudoku puzzle starts with some cells already filled with initial values. Below is an example of an $8 \times 8$ board:

Would you like to try solving it logically before looking at its mathematical formulation?


Binary Sudoku can be formulated as a binary linear optimization model, do you dare to try it?

Keep following the series

← Previous · 3.5.9Queens Dominating the Board Modelling Challenges Next · 3.5.11 →Knight's Tour on the Chess Board

How to cite

Cite this post

Martín-Campo, F. Javier (2026). Beyond 0 and 1, the binary sudoku. https://www.fjmartincampo.com/blog/2026/binarysudoku/

As a BibTeX entry:

@misc{martín-campo2026beyond-0-and-1-the-binary-sudoku,
  title   = {Beyond 0 and 1, the binary sudoku},
  author  = {Martín-Campo, F. Javier},
  year    = {2026},
  month   = {jul},
  url     = {https://www.fjmartincampo.com/blog/2026/binarysudoku/}
}

This post is published under a CC BY-NC-SA 4.0 license.