0-1矩阵的模式包含算法
Algorithms for Pattern Containment in 0-1 Matrices
摘要:
如果$A$的任何子矩阵都不能通过将某些1变为0而变换为$P$,则我们说一个0 - 1矩阵$A$避免了另一个0 - 1矩阵$P$。一个基本的问题是研究极值函数$ex(n,P)$,在一个$n \times n$ 0 - 1矩阵$A$,它避免了$P$的非零元素的最大数量。为了计算$n$的特定值的$ex(n,P)$的精确值,我们需要包含算法,该算法告诉我们给定的$n \times n$矩阵$A$是否包含给定的模式矩阵$P$。在本文中,我们提出了最佳算法,以确定当$n \times n$矩阵$A$包含一个给定的模式$P$时,$P$是一列的所有1,单位矩阵,元组单位矩阵,一个$L$形模式,或交叉模式。这些算法在$Θ(n^2)$时间内运行,这是遏制算法可以实现的最低可能阶数。当$P$是一个矩形全一矩阵,我们也得到了一个改进的运行时间算法,虽然与更高的阶。
英文摘要:
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 $Θ(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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。