Online detection of repetitions with backtracking

From MaRDI portal
Publication:2942265

DOI10.1007/978-3-319-19929-0_25zbMATH Open1432.68591arXiv1412.4471OpenAlexW1772969887MaRDI QIDQ2942265FDOQ2942265


Authors: Dmitry Kosolobov Edit this on Wikidata


Publication date: 20 August 2015

Published in: Combinatorial Pattern Matching (Search for Journal in Brave)

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 gee in the string. 1. The first algorithm supports the backtrack operation removing the last letter of the input string. This solution runs in O(nlogm) 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(nlogsigma) time and O(n) space, where n is the length of the input string and sigma 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.


Full work available at URL: https://arxiv.org/abs/1412.4471




Recommendations




Cites Work


Cited In (7)





This page was built for publication: Online detection of repetitions with backtracking

Report a bug (only for logged in users!)Click here to report a bug for this page (MaRDI item Q2942265)