An Alphabet-Independent Optimal Parallel Search for Three Dimensional Patterns
Title | An Alphabet-Independent Optimal Parallel Search for Three Dimensional Patterns |
Publication Type | Technical Report |
Year of Publication | 1993 |
Authors | Karpinski, M., & Rytter W. |
Other Numbers | 858 |
Abstract | We give an alphabet-independent optimal parallel algorithm for the searching phase of three dimensional pattern- matching. All occurrences of a three dimensional pattern P of shape m x m x m in a text T of shape n x n x n are to be found. Our algorithm works in log m time with O(N log m) processors of a CREW PRAM, where N = n^3. The searching phase in three dimensions explores classification of two- dimensional periodicities of the cubic pattern. Some new projection techniques are developed to deal with three dimensions. The periodicities of the pattern with respect to its faces are investigated. The nonperiodicities imply some sparseness properties, while periodicities imply other special useful properties (i.e. monotonicity) of the set of occurrences. Both types of properties are useful in deriving an efficient algorithm.The search phase is preceded by the preprocessing phase (computation of the witness table). Our main results concern the searching phase, however we present shortly a new approach to the second phase also. Usefulness of the dictionaries of basic factors (DBF's), see [CR 91], in the computation of the three dimensional witness table is presented. The DBF approach gains simplicity at the expense of a small increase in time. It gives a (nonoptimal) O(log m) time algorithm using m processors of a CRCW PRAM. The alphabet-independent optimal preprocessing is very complex even in the case of two dimensions, see [GP 92]. For large alphabets the DBF's give asymptotically the same complexity as the (alphabet-dependent) suffix trees approach (but avoids suffix trees and is simpler).However, the basic advantage of the DBF approach is its simplicity of dealing with three (or more) dimensions.The algorithm can be easily adjusted to the case of unequally sided patterns. |
URL | http://www.icsi.berkeley.edu/ftp/global/pub/techreports/1993/tr-93-070.pdf |
Bibliographic Notes | ICSI Technical Report TR-93-070 |
Abbreviated Authors | M. Karpinski and W. Rytter |
ICSI Publication Type | Technical Report |