Deterministic indexing for packed strings

From MaRDI portal



Abstract: Given a string S of length n, the classic string indexing problem is to preprocess S into a compact data structure that supports efficient subsequent pattern queries. In the emph{deterministic} variant the goal is to solve the string indexing problem without any randomization (at preprocessing time or query time). In the emph{packed} variant the strings are stored with several character in a single word, giving us the opportunity to read multiple characters simultaneously. Our main result is a new string index in the deterministic emph{and} packed setting. Given a packed string S of length n over an alphabet sigma, we show how to preprocess S in O(n) (deterministic) time and space O(n) such that given a packed pattern string of length m we can support queries in (deterministic) time Oleft(m/alpha+logm+loglogsigmaight), where alpha=w/logsigma is the number of characters packed in a word of size w=Theta(logn). Our query time is always at least as good as the previous best known bounds and whenever several characters are packed in a word, i.e., logsigmallw, the query times are faster.











This page was built for publication: Deterministic indexing for packed strings

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