arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2310.02670cs.DS
收藏

在二维字符串中搜索匹配帧

Searching 2D-Strings for Matching Frames

Itai Boneh, Dvir Fried, Shay Golan, Matan Kraus, Adrian Miclaus, Arseny Shur

AI总结:

该研究提出二维字符串匹配帧概念,给出最大周长匹配帧的Õ(n²·⁵)精确算法与近线性(1-ε)近似算法,同时引入新技术并发现新结构性质。

摘要:

我们引入了二维字符串中匹配帧的自然概念。在n×m的二维字符串M中,匹配帧是一个矩形,其水平边上的字符串相同,垂直边上的字符串也相同。形式化地说,M中的匹配帧是一个元组(u,d,ℓ,r),满足M[u][ℓ..r] = M[d][ℓ..r]且M[u..d][ℓ] = M[u..d][r]。\n 本文提出了一种算法,可在Õ(n²·⁵)时间内(假设n≥m)找到矩阵M中周长最大的匹配帧。此外,对于任意常数ε>0,我们提出了一种近线性时间的(1-ε)近似算法,用于求解最大周长匹配帧。\n 在上述算法的研发过程中,我们引入了创新性的技术要素,还发现了独特的结构性质,我们认为这些将引起学界的兴趣。

英文摘要:

We introduce the natural notion of a matching frame in a $2$-dimensional string. A matching frame in a $2$-dimensional $n\times m$ string $M$, is a rectangle such that the strings written on the horizontal sides of the rectangle are identical, and so are the strings written on the vertical sides of the rectangle. Formally, a matching frame in $M$ is a tuple $(u,d,\ell,r)$ such that $M[u][\ell ..r] = M[d][\ell ..r]$ and $M[u..d][\ell] = M[u..d][r]$. In this paper, we present an algorithm for finding the maximum perimeter matching frame in a matrix $M$ in $\tilde{O}(n^{2.5})$ time (assuming $n \ge m)$. Additionally, for every constant $ε> 0$ we present a near-linear $(1-ε)$-approximation algorithm for the maximum perimeter of a matching frame. In the development of the aforementioned algorithms, we introduce inventive technical elements and uncover distinctive structural properties that we believe will captivate the curiosity of the community.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑