کد مقاله | کد نشریه | سال انتشار | مقاله انگلیسی | نسخه تمام متن |
---|---|---|---|---|
419147 | 681747 | 2014 | 11 صفحه PDF | دانلود رایگان |
The approximate string matching problem consists in finding all locations at which a pattern pp of length mm matches a substring of a text tt of length nn, after a finite number of given edit operations.In this paper, we investigate such a problem when the edit operations are translocations of adjacent factors of equal length and inversions of factors. In particular, we first present an O(nmmax(α,β))O(nmmax(α,β))-time and O(m2)O(m2)-space algorithm, where αα and ββ are respectively the maximum lengths of the factors which can be involved in any translocation and inversion, and show that under the assumptions of equiprobability and independence of characters our algorithm has a O(nlogσm)O(nlogσm) average time complexity, for an alphabet of size σσ. We also present a very fast variant of a recently proposed algorithm for the same problem, based on an efficient filtering method, which has a O(n)O(n)-time complexity in the average case, though in the worst case it retains the same O(nmmax(α,β))O(nmmax(α,β))-time complexity.
Journal: Discrete Applied Mathematics - Volume 163, Part 3, 30 January 2014, Pages 247–257