作者: Domenico Cantone , Simone Faro
DOI: 10.1007/978-3-540-95891-8_25
关键词: 3-dimensional matching 、 General algorithm 、 Pattern matching 、 Combinatorics 、 Disjoint sets 、 Swap (finance) 、 Sigma 、 Mathematics 、 Time complexity
摘要: The Pattern Matching problem with Swaps consists in finding all occurrences of a pattern P text T , when disjoint local swaps the are allowed. In Approximate one seeks, for every location swapped match number necessary to obtain at location. In this paper, we present new approach solving both Swap and linear time, case short patterns. particular, devise $\mathcal{O}(nm)$ general algorithm, named Cross-Sampling show an efficient implementation it, based on bit-parallelism, which achieves $\mathcal{O}(n)$ worst-case time $\mathcal{O}(\sigma)$-space complexity, patterns whose length is comparable word-size target machine.