Abstract

Given a string PP of length mm over an alphabet ΣΣ of size σσ, a swapped version of PP is a string derived from PP by a series of local swaps, i.e., swaps of adjacent symbols, such that each symbol can participate in at most one swap. We present a theoretical analysis of the nondeterministic finite automaton for the language ⋃P′∈ΠPΣ∗P′\bigcup_{P'\inΠ_P}Σ^*P' (swap automaton for short), where ΠPΠ_P is the set of swapped versions of PP. Our study is based on the bit-parallel simulation of the same automaton due to Fredriksson, and reveals an interesting combinatorial property that links the automaton to the one for the language Σ∗PΣ^*P. By exploiting this property and the method presented by Cantone et al. (2010), we obtain a bit-parallel encoding of the swap automaton which takes $O(σ^2\ceil{k/w})$ space and allows one to simulate the automaton on a string of length nn in time $O(n\ceil{k/w})$, where $\ceil{m/σ}\le k\le m$.

Explore this paper’s authors, topics and related work.

Building this map preview

BZPEER is loading the nearby papers, people, topics and institutions for this page.

Reviews 0

Write a reviewWrite

No reviews yet.

Discussion 0

Add a commentWrite

No comments yet.