Syntactic View of Sigma-Tau Generation of Permutations

  • Wojciech Rytter
  • Wiktor ZubaEmail author
Conference paper
Part of the Lecture Notes in Computer Science book series (LNCS, volume 11417)


We give a syntactic view of the Sawada-Williams \((\sigma ,\tau )\)-generation of permutations. The corresponding sequence of \(\sigma \tau \)-operations, of length \(n!-1\) is shown to be highly compressible: it has \(\mathcal {O}(n^2\log n)\) bit description. Using this compact description we design fast algorithms for ranking and unranking permutations.


  1. 1.
    Chan, T.M., Patrascu, M.: Counting inversions, offline orthogonal range counting, and related problems. In: Charikar, M. (ed.) Proceedings of the Twenty-First Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2010, Austin, Texas, USA, 17–19 January 2010, pp. 161–173. SIAM (2010).
  2. 2.
    Dietz, P.F.: Optimal algorithms for list indexing and subset rank. In: Dehne, F., Sack, J.-R., Santoro, N. (eds.) WADS 1989. LNCS, vol. 382, pp. 39–46. Springer, Heidelberg (1989). Scholar
  3. 3.
    Ruskey, F., Williams, A.: An explicit universal cycle for the \((\text{n}-1)\)-permutations of an n-set. ACM Trans. Algorithms 6(3), 45:1–45:12 (2010). Scholar
  4. 4.
    Rytter, W.: Grammar compression, LZ-encodings, and string algorithms with implicit input. In: Díaz, J., Karhumäki, J., Lepistö, A., Sannella, D. (eds.) ICALP 2004. LNCS, vol. 3142, pp. 15–27. Springer, Heidelberg (2004). Scholar
  5. 5.
    Sawada, J., Williams, A.: Solving the sigma-tau problem.
  6. 6.
    Sawada, J., Williams, A.: A Hamilton path for the sigma-tau problem. In: Proceedings of the Twenty-Ninth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2018, New Orleans, LA, USA, 7–10 January 2018, pp. 568–575 (2018). Scholar
  7. 7.
    Sawada, J., Williams, A., Wong, D.: A surprisingly simple de Bruijn sequence construction. Discret. Math. 339(1), 127–131 (2016). Scholar

Copyright information

© Springer Nature Switzerland AG 2019

Authors and Affiliations

  1. 1.Institute of InformaticsUniversity of WarsawWarsawPoland

Personalised recommendations