Transposition invariant pattern matching for multi-track strings
Year: 2003
Type: article
Abstract: We consider the problem of multi-track string matching. The task is to find the occurrences of a pattern across parallel strings. Given an alphabet Σ of natural numbers and a set S over Σ of h stringsAn application of the problem is music retrieval where occurrences of a monophonic query pattern are searched in a polyphonic music database. In music retrieval it is even more pertinent to allow invariance for pitch level transpositions, i.e., the task is to find whether there are occurrences of p in S such that the formulation above becomes p 1 = s i 1 j + c, p 2 = s i 2 j+1 + c, . . ., p m = s i m j+m-1 + c for some constant c.We present several algorithms solving the problem. Our main contribution, the MP algorithm, is a transposition-invariant bit-parallel filtering algorithm for static databases. After an O(nhe) time preprocessing, it finds candidates for transposition invariant occurrences in time O(n⌈m/w⌉ + m + d) where w, e, and d denote the size of the machine word in bits and two factors dependent on the size of the alphabet, respectively.A straightforward algorithm is used to check whether the candidates are proper occurrences. The algorithm needs time O(hm) per candidate.
Authors: Kjell Lemström, Jorma Tarhio
Institution: University of Helsinki
Language: English
Subfield: Theoretical Computer Science
Field: Mathematics
Domain: Physical Sciences
Open Access status: green
OpenAlex ID: W1546874007
