Given a string on an integer alphabet, we present an algorithm that computes the set of all distinct squares belonging to this string in time linear to the string length. As an application, we show how to compute the tree topology of the minimal augmented suffix tree in linear time. Asides from that, we elaborate an algorithm computing the longest previous table in a succinct representation using compressed working space.
@InProceedings{bannai_et_al:LIPIcs.CPM.2017.22, author = {Bannai, Hideo and Inenaga, Shunsuke and K\"{o}ppl, Dominik}, title = {{Computing All Distinct Squares in Linear Time for Integer Alphabets}}, booktitle = {28th Annual Symposium on Combinatorial Pattern Matching (CPM 2017)}, pages = {22:1--22:18}, series = {Leibniz International Proceedings in Informatics (LIPIcs)}, ISBN = {978-3-95977-039-2}, ISSN = {1868-8969}, year = {2017}, volume = {78}, editor = {K\"{a}rkk\"{a}inen, Juha and Radoszewski, Jakub and Rytter, Wojciech}, publisher = {Schloss Dagstuhl -- Leibniz-Zentrum f{\"u}r Informatik}, address = {Dagstuhl, Germany}, URL = {https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.CPM.2017.22}, URN = {urn:nbn:de:0030-drops-73224}, doi = {10.4230/LIPIcs.CPM.2017.22}, annote = {Keywords: tandem repeats, distinct squares, counting algorithms} }
Feedback for Dagstuhl Publishing