Papers
Topics
Authors
Recent
Search
2000 character limit reached

Searching 2D-Strings for Matching Frames

Published 4 Oct 2023 in cs.DS | (2310.02670v2)

Abstract: We introduce the natural notion of a matching frame in a $2$-dimensional string. A matching frame in a $2$-dimensional n×mn\times m string MM, 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 MM is a tuple (u,d,ℓ,r)(u,d,\ell,r) such that M[u][ℓ..r]=M[d][ℓ..r]M[u][\ell ..r] = M[d][\ell ..r] and M[u..d][ℓ]=M[u..d][r]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 MM in O~(n<sup>2.5)\tilde{O}(n<sup>{2.5}) time (assuming n≥m)n \ge m). Additionally, for every constant $\epsilon&gt; 0$ we present a near-linear (1−ϵ)(1-\epsilon)-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.

Citations (1)

Summary

No one has generated a summary of this paper yet.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Continue Learning

We haven't generated follow-up questions for this paper yet.

Tweets

Sign up for free to view the 1 tweet with 0 likes about this paper.