arXiv · 1309.1981
The Swap Matching Problem Revisited
Abstract
In this paper, we revisit the much studied problem of Pattern Matching with Swaps (Swap Matching problem, for short). We first present a graph-theoretic model, which opens a new and so far unexplored avenue to solve the problem. Then, using the model, we devise two efficient algorithms to solve the swap matching problem. The resulting algorithms are adaptations of the classic shift-and algorithm. For patterns having length similar to the word-size of the target machine, both the algorithms run in linear time considering a fixed alphabet.
Explore related subjects
Keep this discovery
Pritom Ahmed, Costas S. Iliopoulos, A. S. M. Sohidull Islam, M. Sohel Rahman. 2013-09-08. The Swap Matching Problem Revisited. https://arxiv.org/abs/1309.1981
Cite the original work for its findings. Save a collection to share your selection of sources.