Advertisement

Longest Common Abelian Factors and Large Alphabets

  • Golnaz BadkobehEmail author
  • Travis Gagie
  • Szymon Grabowski
  • Yuto Nakashima
  • Simon J. Puglisi
  • Shiho Sugimoto
Conference paper
Part of the Lecture Notes in Computer Science book series (LNCS, volume 9954)

Abstract

Two strings X and Y are considered Abelian equal if the letters of X can be permuted to obtain Y (and vice versa). Recently, Alatabbi et al. (2015) considered the longest common Abelian factor problem in which we are asked to find the length of the longest Abelian-equal factor present in a given pair of strings. They provided an algorithm that uses \(O(\sigma n^2)\) time and \(O(\sigma n)\) space, where n is the length of the pair of strings and \(\sigma \) is the alphabet size. In this paper we describe an algorithm that uses \(O(n^2\log ^2n\log ^*n)\) time and \(O(n\log ^2n)\) space, significantly improving Alatabbi et al.’s result unless the alphabet is small. Our algorithm makes use of techniques for maintaining a dynamic set of strings under split, join, and equality testing (Melhorn et al., Algorithmica 17(2), 1997).

Keywords

Suffix Tree Extra Space Alphabet Size Factor Length Alphabet Symbol 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

References

  1. 1.
    Alatabbi, A., Iliopoulos, C.S., Langiu, A., Rahman, M.S.: Algorithms for longest common abelian factors, arXiv:1503.00049 (2015)
  2. 2.
    Amir, A., Chan, T.M., Lewenstein, M., Lewenstein, N.: On hardness of jumbled indexing. In: Esparza, J., Fraigniaud, P., Husfeldt, T., Koutsoupias, E. (eds.) ICALP 2014. LNCS, vol. 8572, pp. 114–125. Springer, Heidelberg (2014)Google Scholar
  3. 3.
    Apostolico, A., Crochemore, M., Farach-Colton, M., Galil, Z., Muthukrishnan, S.: 40 years of suffix trees. Commun. ACM 59(4), 66–73 (2016)CrossRefGoogle Scholar
  4. 4.
    Cicalese, F., Gagie, T., Giaquinta, E., Laber, E.S., Lipták, Z., Rizzi, R., Tomescu, A.I.: Indexes for jumbled pattern matching in strings, trees and graphs. In: Kurland, O., Lewenstein, M., Porat, E. (eds.) SPIRE 2013. LNCS, vol. 8214, pp. 56–63. Springer, Heidelberg (2013)CrossRefGoogle Scholar
  5. 5.
    Gagie, T., Gawrychowski, P., Kärkkäinen, J., Nekrich, Y., Puglisi, S.J.: LZ77-based self-indexing with faster pattern matching. In: Pardo, A., Viola, A. (eds.) LATIN 2014. LNCS, vol. 8392, pp. 731–742. Springer, Heidelberg (2014)CrossRefGoogle Scholar
  6. 6.
    Hui, L.C.K.: Color set size problem with applications to string matching. In: Apostolico, A., Crochemore, M., Galil, Z., Manber, U. (eds.) CPM 1992. LNCS, vol. 644, pp. 230–243. Springer, Heidelberg (1992). doi: 10.1007/3-540-56024-6_19 CrossRefGoogle Scholar
  7. 7.
    Kociumaka, T., Starikovskaya, T., Vildhøj, H.W.: Sublinear space algorithms for the longest common substring problem. In: Schulz, A.S., Wagner, D. (eds.) ESA 2014. LNCS, vol. 8737, pp. 605–617. Springer, Heidelberg (2014)Google Scholar
  8. 8.
    Mehlhorn, K., Sundar, R., Uhrig, C.: Maintaining dynamic sequences under equality tests in polylogarithmic time. Algorithmica 17(2), 183–198 (1997)MathSciNetCrossRefzbMATHGoogle Scholar

Copyright information

© Springer International Publishing AG 2016

Authors and Affiliations

  • Golnaz Badkobeh
    • 1
    Email author
  • Travis Gagie
    • 2
  • Szymon Grabowski
    • 3
  • Yuto Nakashima
    • 4
    • 5
  • Simon J. Puglisi
    • 2
  • Shiho Sugimoto
    • 4
  1. 1.Department of Computer ScienceUniversity of WarwickConventryUK
  2. 2.Department of Computer Science, Helsinki Institute for Information TechnologyUniversity of HelsinkiHelsinkiFinland
  3. 3.Institute of Applied Computer ScienceLodz University of TechnologyŁódźPoland
  4. 4.Department of InformaticsKyushu UniversityKyushuJapan
  5. 5.Japan Society for the Promotion of ScienceTokyoJapan

Personalised recommendations