English

Improved Algorithm for Permutation Testing

Data Structures and Algorithms 2024-01-05 v9 Computational Complexity

Abstract

For a permutation π:[K][K]\pi: [K]\rightarrow [K], a sequence f:{1,2,,n}Rf: \{1,2,\cdots, n\}\rightarrow \mathbb R contains a π\pi-pattern of size KK, if there is a sequence of indices (i1,i2,,iK)(i_1, i_2, \cdots, i_K) (i1<i2<<iKi_1<i_2<\cdots<i_K), satisfying that f(ia)<f(ib)f(i_a)<f(i_b) if π(a)<π(b)\pi(a)<\pi(b), for a,b[K]a,b\in [K]. Otherwise, ff is referred to as π\pi-free. For the special case where π=(1,2,,K)\pi = (1,2,\cdots, K), it is referred to as the monotone pattern. \cite{newman2017testing} initiated the study of testing π\pi-freeness with one-sided error. They focused on two specific problems, testing the monotone permutations and the (1,3,2)(1,3,2) permutation. For the problem of testing monotone permutation (1,2,,K)(1,2,\cdots,K), \cite{ben2019finding} improved the (logn)O(K2)(\log n)^{O(K^2)} non-adaptive query complexity of \cite{newman2017testing} to O((logn)log2K)O((\log n)^{\lfloor \log_{2} K\rfloor}). Further, \cite{ben2019optimal} proposed an adaptive algorithm with O(logn)O(\log n) query complexity. However, no progress has yet been made on the problem of testing (1,3,2)(1,3,2)-freeness. In this work, we present an adaptive algorithm for testing (1,3,2)(1,3,2)-freeness. The query complexity of our algorithm is O(ϵ2log4n)O(\epsilon^{-2}\log^4 n), which significantly improves over the O(ϵ7log26n)O(\epsilon^{-7}\log^{26}n)-query adaptive algorithm of \cite{newman2017testing}. This improvement is mainly achieved by the proposal of a new structure embedded in the patterns.

Cite

@article{arxiv.2006.08473,
  title  = {Improved Algorithm for Permutation Testing},
  author = {Xiaojin Zhang},
  journal= {arXiv preprint arXiv:2006.08473},
  year   = {2024}
}