English

On a compact encoding of the swap automaton

Formal Languages and Automata Theory 2013-07-02 v1 Data Structures and Algorithms

Abstract

Given a string PP of length mm over an alphabet Σ\Sigma of size σ\sigma, 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\Pi_P}\Sigma^*P' (swap automaton for short), where ΠP\Pi_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\Sigma^*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\ceilk/w)O(\sigma^2\ceil{k/w}) space and allows one to simulate the automaton on a string of length nn in time O(n\ceilk/w)O(n\ceil{k/w}), where \ceilm/σkm\ceil{m/\sigma}\le k\le m.

Keywords

Cite

@article{arxiv.1307.0099,
  title  = {On a compact encoding of the swap automaton},
  author = {Kimmo Fredriksson and Emanuele Giaquinta},
  journal= {arXiv preprint arXiv:1307.0099},
  year   = {2013}
}
R2 v1 2026-06-22T00:42:53.910Z