Detalles Bibliográficos
Título: |
Set Intersection and Sequence Matching with mismatch counting. |
Autores: |
Shiftan, Ariel1 shiftaa@cs.biu.ac.il, Porat, Ely1 porately@cs.biu.ac.il |
Fuente: |
Theoretical Computer Science. Jul2016, Vol. 638, p3-10. 8p. |
Términos de Temas: |
*PATTERN matching, *MONTE Carlo method software, *MATHEMATICAL sequences, *LINEAR time invariant systems, *PROBABILITY theory, *ALGORITHMS, *MATHEMATICAL programming |
Resumen: |
In the classical pattern-matching problem, one is given a text and a pattern both of which are sequences of letters. The requirement is to find all occurrences of the pattern in the text. We studied two modifications of the classical problem, where each letter in the text and pattern is a set ( Set Intersection Matching problem) or a sequence ( Sequence Matching problem). Two “letters” are found to match if the intersection of the corresponding sets is not empty or if the two sequences have a common element in the same index. We first show that the two problems are similar by establishing a linear time reduction between them. We then show the first known non-trivial and efficient algorithms for these problems, when the maximum set/sequence size d is small. The first is a Monte Carlo randomized algorithm for Set Intersection Matching , that takes Θ ( 4 d n log n log m ) time, where n and m are the lengths of the text and the pattern, respectively; the failure probability is less than 1 n 2 . This algorithm can also be used, with slight modifications, when up to k mismatches is allowed. In addition, it can be used to maintain an approximation of factor 1 ± ϵ of the mismatch count in Θ ( 1 ϵ 2 4 d n log n log m ) time; the failure probability is bounded by 1 n . The second is a deterministic algorithm for Set Intersection Matching that can be used to count the number of matches at each index of the text in a total running time Θ ( ∑ i = 1 d ( σ i ) n log m ) = O ( σ d n log m ) , where σ is the size of the alphabet. The third algorithm, also deterministic, solves the Sequence Matching problem in Θ ( 4 d n log m ) time. [ABSTRACT FROM AUTHOR] |
|
Copyright of Theoretical Computer Science is the property of Elsevier B.V. and its content may not be copied or emailed to multiple sites or posted to a listserv without the copyright holder's express written permission. However, users may print, download, or email articles for individual use. This abstract may be abridged. No warranty is given about the accuracy of the copy. Users should refer to the original published version of the material for the full abstract. (Copyright applies to all Abstracts.) |
Base de Datos: |
Academic Search Premier |