English

The Swap Matching Problem Revisited

Data Structures and Algorithms 2013-09-19 v2

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.

Keywords

Cite

@article{arxiv.1309.1981,
  title  = {The Swap Matching Problem Revisited},
  author = {Pritom Ahmed and Costas S. Iliopoulos and A. S. M. Sohidull Islam and M. Sohel Rahman},
  journal= {arXiv preprint arXiv:1309.1981},
  year   = {2013}
}

Comments

23 pages, 3 Figures and 17 Tables

R2 v1 2026-06-22T01:22:58.091Z