The Number of Repetitions in 2D-Strings
Panagiotis Charalampopoulos, Jakub Radoszewski, Wojciech Rytter,, Tomasz Wale\'n, Wiktor Zuba

TL;DR
This paper extends the combinatorial understanding of repetitions in 2D-strings by establishing upper bounds on the number of 2D-runs and quartics, and explores their algorithmic applications in 2D pattern matching.
Contribution
It provides the first tight upper bounds on the number of 2D-runs and quartics in 2D-strings, advancing the theoretical foundation for 2D pattern matching algorithms.
Findings
Number of 2D-runs in an n x n 2D-string is O(n^2 log^2 n)
Number of distinct quartics in an n x n 2D-string is O(n^2 log^2 n)
Algorithmic implications for 2D pattern matching
Abstract
The notions of periodicity and repetitions in strings, and hence these of runs and squares, naturally extend to two-dimensional strings. We consider two types of repetitions in 2D-strings: 2D-runs and quartics (quartics are a 2D-version of squares in standard strings). Amir et al. introduced 2D-runs, showed that there are of them in an 2D-string and presented a simple construction giving a lower bound of for their number (TCS 2020). We make a significant step towards closing the gap between these bounds by showing that the number of 2D-runs in an 2D-string is . In particular, our bound implies that the run-time of the algorithm of Amir et al. for computing 2D-runs is also . We expect this result to allow for exploiting 2D-runs algorithmically in the area of 2D pattern…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
