Small-Space Algorithms for the Online Language Distance Problem for Palindromes and Squares
Gabriel Bathie, Tomasz Kociumaka, Tatiana Starikovskaya

TL;DR
This paper introduces space-efficient online algorithms for computing minimal distances to palindrome and square languages, focusing on low-distance regimes using streaming and deterministic methods.
Contribution
It presents novel streaming and deterministic algorithms for the online language distance problem for palindromes and squares, with improved space and time complexity in low-distance scenarios.
Findings
Streaming algorithms use $O(k ext{poly} \\log n)$ space and time per character.
Deterministic algorithms also achieve $O(k ext{poly} \\log n)$ space, with $O(k^4 ext{poly} \\log n)$ time in the edit-distance case.
Algorithms are randomized or deterministic, with error probabilities inverse-polynomial in $n$.
Abstract
We study the online variant of the language distance problem for two classical formal languages, the language of palindromes and the language of squares, and for the two most fundamental distances, the Hamming distance and the edit (Levenshtein) distance. In this problem, defined for a fixed formal language , we are given a string of length , and the task is to compute the minimal distance to from every prefix of . We focus on the low-distance regime, where one must compute only the distances smaller than a given threshold . In this work, our contribution is twofold: - First, we show streaming algorithms, which access the input string only through a single left-to-right scan. Both for palindromes and squares, our algorithms use space and time per character in the Hamming-distance case and space…
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.
