Skip to main content
QUICK REVIEW

[Paper Review] The number of Latin rectangles

Peter G. Doyle|ArXiv.org|Mar 29, 2007
Algorithms and Data CompressionComputer Science1 references5 citations
TL;DR

This paper presents a general method to compute the number of $k$-line Latin rectangles using inclusion-exclusion over reduced configurations, extending Ryser's formula for derangements. The resulting expression for the number of reduced $k$-line Latin rectangles, $R_k(n)$, requires approximately $n^{(2^{k-1})}$ arithmetic operations to evaluate, with the complexity growing exponentially in $k$. The approach leverages Möbius inversion on the lattice of set partitions of a $(k-1)$-element set.

ABSTRACT

We show how to generate an expression for the number of k-line Latin rectangles for any k. The computational complexity of the resulting expression, as measured by the number of additions and multiplications required to evaluate it, is on the order of n^(2^(k-1)). These expressions generalize Ryser's formula for derangements.

Motivation & Objective

  • To derive a closed-form expression for the number of $k$-line Latin rectangles for any fixed $k$, treating $n$ as a variable.
  • To generalize Ryser’s inclusion-exclusion formula for derangements to higher-order Latin rectangles.
  • To quantify the computational complexity of evaluating the number of $k$-line Latin rectangles.
  • To show that while expressions for $R_k(n)$ exist and are computable, they grow rapidly in complexity with $k$, making them impractical for large $k$.

Proposed method

  • Apply inclusion-exclusion over reduced lonely-hall configurations to count $k$-line Latin rectangles.
  • Use Möbius inversion on the lattice of partitions of a $(k-1)$-element set to derive the core generating function $g_k$.
  • Express $R_k(n)$ as a multivariate sum over non-negative integer solutions to $\sum s_{\sigma} = n$, where $\sigma$ ranges over subsets of $\{1,\dots,k-1\}$.
  • Define the function $g_k(\mathbf{t})$ recursively via inclusion-exclusion on the partition lattice, with terms involving products of partial sums $f_I$.
  • Construct the final expression as a sum over all $s_{\sigma}$ with multinomial coefficients and powers of $g_k(\mathbf{t})$, weighted by alternating signs.
  • Leverage the identity $L_k(n) = n! \cdot R_k(n)$ to recover the count for non-reduced rectangles.

Experimental results

Research questions

  • RQ1Can a general formula be derived for the number of $k$-line Latin rectangles for any fixed $k$?
  • RQ2What is the computational complexity of evaluating such a formula in terms of $n$?
  • RQ3How does the structure of the inclusion-exclusion process relate to the lattice of set partitions of a $(k-1)$-element set?
  • RQ4Why is the reduced rectangle formulation more tractable than the general case?
  • RQ5Is it possible to write a single expression for $L_k(n)$ that captures the dependence on both $k$ and $n$ without exponential blowup?

Key findings

  • The number of reduced $k$-line Latin rectangles, $R_k(n)$, can be expressed as a $(2^{k-1} - 1)$-fold sum over non-negative integers summing to $n$, with each term involving multinomial coefficients and powers of a function $g_k$.
  • The computational complexity of evaluating $R_k(n)$ is on the order of $n^{(2^{k-1})}$ additions and multiplications.
  • For $k=2$, the formula reduces to Ryser’s known inclusion-exclusion formula for derangements.
  • For $k=3$, the expression involves a sum over four variables $s_{00}, s_{10}, s_{01}, s_{11}$, with the function $g_3(t_{00}, t_{10}, t_{01}, t_{11}) = f_1 f_2 - f_{1,2}$, where $f_1 = t_{00} + t_{01}$, $f_2 = t_{00} + t_{10}$, and $f_{1,2} = t_{00}$.
  • For $k=4$, the expression involves a sum over eight variables $s_{\sigma}$, with $g_4(\mathbf{t}) = f_1 f_2 f_3 - f_{1,2} f_3 - f_{2,3} f_1 - f_{1,3} f_2 + 2f_{1,2,3}$, reflecting Möbius inversion on the partition lattice of a 3-set.
  • The formula for the non-reduced case $L_k(n)$ has higher complexity, requiring approximately $n^{(2^k)}$ operations, making it significantly less efficient than the reduced case.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.