Computing Minimal and Maximal Suffixes of a Substring Revisited

  • Maxim Babenko
  • Paweł Gawrychowski
  • Tomasz Kociumaka
  • Tatiana Starikovskaya
Part of the Lecture Notes in Computer Science book series (LNCS, volume 8486)


We revisit the problems of computing the maximal and the minimal non-empty suffixes of a substring of a longer text of length n, introduced by Babenko, Kolesnichenko and Starikovskaya [CPM’13]. For the minimal suffix problem we show that for any 1 ≤ τ ≤ logn there exists a linear-space data structure with \(\mathcal{O}(\tau)\) query time and \(\mathcal{O}(n \log n / \tau)\) preprocessing time. As a sample application, we show that this data structure can be used to compute the Lyndon decomposition of any substring of the text in \(\mathcal{O}(k \tau)\) time, where k is the number of distinct factors in the decomposition. For the maximal suffix problem we give a linear-space structure with \(\mathcal{O}(1)\) query time and \(\mathcal{O}(n)\) preprocessing time, i.e., we manage to achieve both the optimal query and the optimal construction time simultaneously.


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.


  1. 1.
    Babenko, M., Kolesnichenko, I., Starikovskaya, T.: On minimal and maximal suffixes of a substring. In: Fischer, J., Sanders, P. (eds.) CPM 2013. LNCS, vol. 7922, pp. 28–37. Springer, Heidelberg (2013)CrossRefGoogle Scholar
  2. 2.
    Bender, M.A., Farach-Colton, M.: The LCA problem revisited. In: Gonnet, G.H., Panario, D., Viola, A. (eds.) LATIN 2000. LNCS, vol. 1776, pp. 88–94. Springer, Heidelberg (2000)CrossRefGoogle Scholar
  3. 3.
    Chen, K.T., Fox, R.H., Lyndon, R.C.: Free differential calculus, IV. The quotient groups of the lower central series. The Annals of Mathematics 68(1), 81–95 (1958)CrossRefMathSciNetGoogle Scholar
  4. 4.
    Crochemore, M., Hancart, C., Lecroq, T.: Algorithms on Strings. Cambridge University Press (2007)Google Scholar
  5. 5.
    Duval, J.-P.: Factorizing words over an ordered alphabet. J. Algorithms 4(4), 363–381 (1983)CrossRefzbMATHMathSciNetGoogle Scholar
  6. 6.
    Puglisi, S.J., Smyth, W.F., Turpin, A.: A taxonomy of suffix array construction algorithms. ACM Comput. Surv. 39(2) (2007)Google Scholar

Copyright information

© Springer International Publishing Switzerland 2014

Authors and Affiliations

  • Maxim Babenko
    • 1
  • Paweł Gawrychowski
    • 2
  • Tomasz Kociumaka
    • 3
  • Tatiana Starikovskaya
    • 1
  1. 1.National Research University Higher School of Economics (HSE)Russia
  2. 2.Max-Planck-Institut für InformatikGermany
  3. 3.Institute of InformaticsUniversity of WarsawPoland

Personalised recommendations