Online Detection of Repetitions with Backtracking

Abstract

In this paper we present two algorithms for the following problem: given a string and a rational e > 1, detect in the online fashion the earliest occurrence of a repetition of exponent e in the string. 1. The first algorithm supports the backtrack operation removing the last letter of the input string. This solution runs in O(n m) time and O(m) space, where m is the maximal length of a string generated during the execution of a given sequence of n read and backtrack operations. 2. The second algorithm works in O(nσ) time and O(n) space, where n is the length of the input string and σ is the number of distinct letters. This algorithm is relatively simple and requires much less memory than the previously known solution with the same working time and space. a string generated during the execution of a given sequence of n read and backtrack operations.

0

Turn this paper into a lesson

ArcXiv compiles a structured reading guide from this paper's metadata: plain-English importance, contributions, prerequisite concepts, which sections to read first, flashcards, and a quiz. Grounded in the abstract, never invented.

Discussion (0)

Sign in to join the discussion.

Loading comments…