# Algorithms for Pattern Containment in 0-1 Matrices

**Authors:** P.A. CrowdMath

arXiv: 1704.05207 · 2017-04-19

## TL;DR

This paper develops optimal algorithms with quadratic time complexity for detecting specific pattern matrices within larger zero-one matrices, aiding in extremal function calculations.

## Contribution

It introduces the first optimal quadratic-time algorithms for pattern containment in zero-one matrices for several key patterns, improving computational efficiency.

## Key findings

- Algorithms run in Θ(n^2) time for key patterns.
- Optimal algorithms are achieved for certain pattern matrices.
- Improved algorithms for rectangular all-ones pattern detection.

## Abstract

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

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/1704.05207/full.md

## References

10 references — full list in the complete paper: https://tomesphere.com/paper/1704.05207/full.md

---
Source: https://tomesphere.com/paper/1704.05207