TY - BOOK
T1 - On the Computation of Longest Previous Non-overlapping Factors
AU - Ohlebusch, Enno
AU - Weber, Pascal
N1 - Publisher Copyright:
© 2019, Springer Nature Switzerland AG.
PY - 2019/10/3
Y1 - 2019/10/3
N2 - The f-factorization of a string is similar to the well-known Lempel-Ziv (LZ) factorization, but differs from it in that the factors must be non-overlapping. There are two linear time algorithms that compute the f-factorization. Both of them compute the array of longest previous non-overlapping factors (LPnF-array), from which the f-factorization can easily be derived. In this paper, we present a simple algorithm that computes the LPnF-array from the LPF-array and an array prevOcc that stores positions of previous occurrences of LZ-factors. The algorithm has a linear worst-case time complexity if prevOcc contains leftmost positions. Moreover, we provide an algorithm that computes the f-factorization directly. Experiments show that our first method (combined with efficient LPF-algorithms) is the fastest and our second method is the most space efficient way to compute the f-factorization.
AB - The f-factorization of a string is similar to the well-known Lempel-Ziv (LZ) factorization, but differs from it in that the factors must be non-overlapping. There are two linear time algorithms that compute the f-factorization. Both of them compute the array of longest previous non-overlapping factors (LPnF-array), from which the f-factorization can easily be derived. In this paper, we present a simple algorithm that computes the LPnF-array from the LPF-array and an array prevOcc that stores positions of previous occurrences of LZ-factors. The algorithm has a linear worst-case time complexity if prevOcc contains leftmost positions. Moreover, we provide an algorithm that computes the f-factorization directly. Experiments show that our first method (combined with efficient LPF-algorithms) is the fastest and our second method is the most space efficient way to compute the f-factorization.
UR - http://www.scopus.com/inward/record.url?scp=85075700840&partnerID=8YFLogxK
U2 - https://doi.org/10.1007/978-3-030-32686-9_26
DO - https://doi.org/10.1007/978-3-030-32686-9_26
M3 - Collection
SN - 978-3-030-32685-2
T3 - Lecture Notes in Computer Science
BT - On the Computation of Longest Previous Non-overlapping Factors
PB - Springer
ER -