Computing All Distinct Squares in Linear Time for Integer Alphabets

Hideo Bannai, Shunsuke Inenaga, Dominik Köppl
10/11/2016
25 citations
cs.DS

Official code: koeppl/distinct_squares (2 stars, C++, BSD-2-Clause, last commit 2022-03-30).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

BSD-2-Clause

Computing All Distinct Squares

20C++, CMakeJan 14, 20174 years agoBSD-2-Clause
combinatoricssquarestandem-repeats

Similar Papers

Cite this paper

@article{bannai2016computing,
  title  = {Computing All Distinct Squares in Linear Time for Integer Alphabets},
  author = {Hideo Bannai and Shunsuke Inenaga and Dominik Köppl},
  year   = {2016},
  eprint = {1610.03421},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1610.03421}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1610.03421.svg)](https://codeofpaper.com/paper/1610.03421)

Discussion