Research indexJournal article
Efficient String Matching on Coded Texts
Breslauer
BRICS Report Series14 Dec 1994Open access
NobleIDark:/48914/w1/20260523/73D85E70DOI10.7146/brics.v1i42.21600
Efficient String Matching on Coded Texts
Breslauer · BRICS Report Series · 1994
NobleIDark:/48914/w1/20260523/73D85E70DOI10.7146/brics.v1i42.21600
Abstract
The so called "four Russians technique'' is often used to speed up algorithms by encoding several data items in a single memory cell. Given a sequence of n symbols over a constant size alphabet, one can encode the sequence into O(n / lambda) memory cells in O(log(lambda) ) time using n / log(lambda) processors.<br /> <br />This paper presents an efficient CRCW-PRAM string-matching algorithm for coded texts that takes O(log log(m/lambda)) time making only O(n / lambda ) operations, an improvement by a factor of lambda = O(log n) on the number of operations used in previous algorithms. Using this string-matching algorithm one can test if a string is square-free and find all palindromes in a string in O(log log n) time using n / log log n processors.