Let a text string T of n symbols and a pattern string P of m symbols from alphabet be given. A swapped version T of T is a length n string derived from T by a series of local swaps (i.e., t β t +1 and t +1 β t ), where each element can participate in no more than one swap. The pattern matching with
Inverse Pattern Matching
β Scribed by Amihood Amir; Alberto Apostolico; Moshe Lewenstein
- Publisher
- Elsevier Science
- Year
- 1997
- Tongue
- English
- Weight
- 181 KB
- Volume
- 24
- Category
- Article
- ISSN
- 0196-6774
No coin nor oath required. For personal study only.
β¦ Synopsis
Let a textstring T of n symbols from some alphabet βΊ and an integer mn be given. A pattern P of length m over βΊ is sought such that P minimizes Ε½ . alternatively, maximizes the total number of pairwise character mismatches generated when P is compared with all m-character substrings of T. Two additional variants of the problem are obtained by adding the constraint that P be Ε½ . respectively, not be a substring of T. Efficient sequential algorithms are proposed in this paper for the problem and its variants.
π SIMILAR VOLUMES
The importance of hypertext has been steadily growing over the past decade. The Internet and other information systems use hypertext format, with data organized associatively rather than sequentially or relationally. A myriad of textual problems have been considered in the pattern matching field wit
An algorithm is presented that substantially improves the algorithm of Boyer and Moore for pattern matching in strings, both in the worst case and in the average. Both the Boyer and Moore algorithm and the new algorithm assume that the characters in the pattern and in the text are taken from a given
The problem of finding sections of code that either are identical or are related by the systematic renaming of variables or constants can be modeled in terms of parameterized strings ( p-strings) and parameterized matches ( p-matches). P-strings are strings over two alphabets, one of which represent