English

Algorithms for Pattern Containment in 0-1 Matrices

Discrete Mathematics 2017-04-19 v1 Combinatorics

Abstract

We say a zero-one matrix AA avoids another zero-one matrix PP if no submatrix of AA can be transformed to PP by changing some ones to zeros. A fundamental problem is to study the extremal function ex(n,P)ex(n,P), the maximum number of nonzero entries in an n×nn \times n zero-one matrix AA which avoids PP. To calculate exact values of ex(n,P)ex(n,P) for specific values of nn, we need containment algorithms which tell us whether a given n×nn \times n matrix AA contains a given pattern matrix PP. In this paper, we present optimal algorithms to determine when an n×nn \times n matrix AA contains a given pattern PP when PP is a column of all ones, an identity matrix, a tuple identity matrix, an LL-shaped pattern, or a cross pattern. These algorithms run in Θ(n2)\Theta(n^2) time, which is the lowest possible order a containment algorithm can achieve. When PP is a rectangular all-ones matrix, we also obtain an improved running time algorithm, albeit with a higher order.

Keywords

Cite

@article{arxiv.1704.05207,
  title  = {Algorithms for Pattern Containment in 0-1 Matrices},
  author = {P. A. CrowdMath},
  journal= {arXiv preprint arXiv:1704.05207},
  year   = {2017}
}

Comments

12 pages

R2 v1 2026-06-22T19:19:44.297Z