(0,1)-Matrix

DOWNLOAD Mathematica Notebook

A (0,1)-matrix is an integer matrix in which each element is a 0 or 1. It is also called a logical matrix, binary matrix, relation matrix, or Boolean matrix. The number of m×n binary matrices is 2^(mn), so the number of square n×n binary matrices is 2^(n^2) which, for n=1, 2, ..., gives 2, 16, 512, 65536, 33554432, ... (OEIS A002416).

The numbers of positive eigenvalued n×n (0,1)-matrices for n=1, 2, ... are 1, 3, 25, 543, 29281, ... (OEIS A003024). Weisstein's conjecture proposed that these matrices were in one-to-one correspondence with labeled acyclic digraphs on n nodes, and this was subsequently proved by McKay et al. (2003, 2004). Counts of both are therefore given by the beautiful recurrence equation

 a_n=sum_(k=1)^n(-1)^(k-1)(n; k)2^(k(n-k))a_(n-k)

with a_0=1 (Harary and Palmer 1973, p. 19; Robinson 1973, pp. 239-273).

The numbers of n×n binary matrices with no adjacent 1s (in either columns or rows) for n=1, 2, ..., are given by 2, 7, 63, 1234, ... (OEIS A006506). For example, the 2×2 binary matrices with no adjacent 1s are

 [0 0; 0 0],[0 0; 0 1],[0 0; 1 0],[0 1; 0 0],[0 1; 1 0],[1 0; 0 0],[1 0; 0 1].

These numbers are closely related to the hard square entropy constant. The numbers of n×n binary matrices with no three adjacent 1s for n=1, 2, ..., are given by 2, 16, 265, 16561, ... (OEIS A050974).

For an n×n (0,1)-matrix, the largest possible determinants (Hadamard's maximum determinant problem) for n=1, 2, ... are 1, 1, 2, 3, 5, 9, 32, 56, 144, 320, 1458, 3645, 9477, ... (OEIS A003432). The numbers of distinct n×n binary matrices having the largest possible determinant are 1, 3, 3, 60, 3600, 529200, 75600, 195955200, 13716864000, ... (OEIS A051752).

Wilf (1997) considers the complexity of transforming an m×n binary matrix A into a triangular matrix by permutations of the rows and columns of A, and concludes that the problem falls in difficulty between a known easy case and a known hard case of the general NP-complete problem.

Wolfram Web Resources

Mathematica »

The #1 tool for creating Demonstrations and anything technical.

Wolfram|Alpha »

Explore anything with the first computational knowledge engine.

Wolfram Demonstrations Project »

Explore thousands of free applications across science, mathematics, engineering, technology, business, art, finance, social sciences, and more.

Computerbasedmath.org »

Join the initiative for modernizing math education.

Online Integral Calculator »

Solve integrals with Wolfram|Alpha.

Step-by-step Solutions »

Walk through homework problems step-by-step from beginning to end. Hints help you try the next step on your own.

Wolfram Problem Generator »

Unlimited random practice problems and answers with built-in Step-by-step solutions. Practice online or make a printable study sheet.

Wolfram Education Portal »

Collection of teaching and learning tools built by Wolfram education experts: dynamic textbook, lesson plans, widgets, interactive Demonstrations, and more.

Wolfram Language »

Knowledge-based programming for everyone.