Cargando…
Faster Online Computation of the Succinct Longest Previous Factor Array
We consider the problem of computing online the Longest Previous Factor array LPF[1, n] of a text T of length n. For each [Formula: see text], LPF[i] stores the length of the longest factor of T with at least two occurrences, one ending at i and the other at a previous position [Formula: see text]....
Autores principales: | , |
---|---|
Formato: | Online Artículo Texto |
Lenguaje: | English |
Publicado: |
2020
|
Materias: | |
Acceso en línea: | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7309487/ http://dx.doi.org/10.1007/978-3-030-51466-2_31 |
_version_ | 1783549217043644416 |
---|---|
author | Prezza, Nicola Rosone, Giovanna |
author_facet | Prezza, Nicola Rosone, Giovanna |
author_sort | Prezza, Nicola |
collection | PubMed |
description | We consider the problem of computing online the Longest Previous Factor array LPF[1, n] of a text T of length n. For each [Formula: see text], LPF[i] stores the length of the longest factor of T with at least two occurrences, one ending at i and the other at a previous position [Formula: see text]. We present an improvement over the previous solution by Okanohara and Sadakane (ESA 2008): our solution uses less space (compressed instead of succinct) and runs in [Formula: see text] time, thus being faster by a logarithmic factor. As a by-product, we also obtain the first online algorithm computing the Longest Common Suffix (LCS) array (that is, the LCP array of the reversed text) in [Formula: see text] time and compressed space. We also observe that the LPF array can be represented succinctly in 2n bits. Our online algorithm computes directly the succinct LPF and LCS arrays. |
format | Online Article Text |
id | pubmed-7309487 |
institution | National Center for Biotechnology Information |
language | English |
publishDate | 2020 |
record_format | MEDLINE/PubMed |
spelling | pubmed-73094872020-06-23 Faster Online Computation of the Succinct Longest Previous Factor Array Prezza, Nicola Rosone, Giovanna Beyond the Horizon of Computability Article We consider the problem of computing online the Longest Previous Factor array LPF[1, n] of a text T of length n. For each [Formula: see text], LPF[i] stores the length of the longest factor of T with at least two occurrences, one ending at i and the other at a previous position [Formula: see text]. We present an improvement over the previous solution by Okanohara and Sadakane (ESA 2008): our solution uses less space (compressed instead of succinct) and runs in [Formula: see text] time, thus being faster by a logarithmic factor. As a by-product, we also obtain the first online algorithm computing the Longest Common Suffix (LCS) array (that is, the LCP array of the reversed text) in [Formula: see text] time and compressed space. We also observe that the LPF array can be represented succinctly in 2n bits. Our online algorithm computes directly the succinct LPF and LCS arrays. 2020-06-24 /pmc/articles/PMC7309487/ http://dx.doi.org/10.1007/978-3-030-51466-2_31 Text en © Springer Nature Switzerland AG 2020 This article is made available via the PMC Open Access Subset for unrestricted research re-use and secondary analysis in any form or by any means with acknowledgement of the original source. These permissions are granted for the duration of the World Health Organization (WHO) declaration of COVID-19 as a global pandemic. |
spellingShingle | Article Prezza, Nicola Rosone, Giovanna Faster Online Computation of the Succinct Longest Previous Factor Array |
title | Faster Online Computation of the Succinct Longest Previous Factor Array |
title_full | Faster Online Computation of the Succinct Longest Previous Factor Array |
title_fullStr | Faster Online Computation of the Succinct Longest Previous Factor Array |
title_full_unstemmed | Faster Online Computation of the Succinct Longest Previous Factor Array |
title_short | Faster Online Computation of the Succinct Longest Previous Factor Array |
title_sort | faster online computation of the succinct longest previous factor array |
topic | Article |
url | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7309487/ http://dx.doi.org/10.1007/978-3-030-51466-2_31 |
work_keys_str_mv | AT prezzanicola fasteronlinecomputationofthesuccinctlongestpreviousfactorarray AT rosonegiovanna fasteronlinecomputationofthesuccinctlongestpreviousfactorarray |