TY - GEN
T1 - String Factorization via Prefix Free Families
AU - Kraus, Matan
AU - Lewenstein, Moshe
AU - Popa, Alexandru
AU - Porat, Ely
AU - Sadia, Yonathan
N1 - Publisher Copyright: © 2023 Schloss Dagstuhl- Leibniz-Zentrum fur Informatik GmbH, Dagstuhl Publishing. All rights reserved.
PY - 2023/6
Y1 - 2023/6
N2 - A factorization of a string S is a partition of w into substrings u1, . . ., uk such that S = u1u2 · · · uk. Such a partition is called equality-free if no two factors are equal: ui ≠ uj, ∀i, j with i ≠ j. The maximum equality-free factorization problem is to find for a given string S, the largest integer k for which S admits an equality-free factorization with k factors. Equality-free factorizations have lately received attention because of their applications in DNA self-assembly. The best approximation algorithm known for the problem is the natural greedy algorithm, that chooses iteratively from left to right the shortest factor that does not appear before. This algorithm has a √n approximation ratio (SOFSEM 2020) and it is an open problem whether there is a better solution. Our main result is to show that the natural greedy algorithm is a Θ(n1/4) approximation algorithm for the maximum equality-free factorization problem. Thus, we disprove one of the conjectures of Mincu and Popa (SOFSEM 2020) according to which the greedy algorithm is a Θ(√n) approximation. The most challenging part of the proof is to show that the greedy algorithm is an O(n1/4) approximation. We obtain this algorithm via prefix free factor families, i.e. a set of non-overlapping factors of the string which are pairwise non-prefixes of each other. In the paper we show the relation between prefix free factor families and the maximum equality-free factorization. Moreover, as a byproduct we present another approximation algorithm that achieves an approximation ratio of O(n1/4) that we believe is of independent interest and may lead to improved algorithms. We then show that the natural greedy algorithm has an approximation ratio that is Ω(n1/4) via a clever analysis which shows that the greedy algorithm is Θ(n1/4) for the maximum equality-free factorization problem.
AB - A factorization of a string S is a partition of w into substrings u1, . . ., uk such that S = u1u2 · · · uk. Such a partition is called equality-free if no two factors are equal: ui ≠ uj, ∀i, j with i ≠ j. The maximum equality-free factorization problem is to find for a given string S, the largest integer k for which S admits an equality-free factorization with k factors. Equality-free factorizations have lately received attention because of their applications in DNA self-assembly. The best approximation algorithm known for the problem is the natural greedy algorithm, that chooses iteratively from left to right the shortest factor that does not appear before. This algorithm has a √n approximation ratio (SOFSEM 2020) and it is an open problem whether there is a better solution. Our main result is to show that the natural greedy algorithm is a Θ(n1/4) approximation algorithm for the maximum equality-free factorization problem. Thus, we disprove one of the conjectures of Mincu and Popa (SOFSEM 2020) according to which the greedy algorithm is a Θ(√n) approximation. The most challenging part of the proof is to show that the greedy algorithm is an O(n1/4) approximation. We obtain this algorithm via prefix free factor families, i.e. a set of non-overlapping factors of the string which are pairwise non-prefixes of each other. In the paper we show the relation between prefix free factor families and the maximum equality-free factorization. Moreover, as a byproduct we present another approximation algorithm that achieves an approximation ratio of O(n1/4) that we believe is of independent interest and may lead to improved algorithms. We then show that the natural greedy algorithm has an approximation ratio that is Ω(n1/4) via a clever analysis which shows that the greedy algorithm is Θ(n1/4) for the maximum equality-free factorization problem.
KW - NP-hard problem
KW - approximation algorithm
KW - string factorization
UR - http://www.scopus.com/inward/record.url?scp=85165984497&partnerID=8YFLogxK
U2 - https://doi.org/10.4230/LIPIcs.CPM.2023.19
DO - https://doi.org/10.4230/LIPIcs.CPM.2023.19
M3 - منشور من مؤتمر
T3 - Leibniz International Proceedings in Informatics, LIPIcs
BT - 34th Annual Symposium on Combinatorial Pattern Matching, CPM 2023
A2 - Bulteau, Laurent
A2 - Liptak, Zsuzsanna
PB - Schloss Dagstuhl- Leibniz-Zentrum fur Informatik GmbH, Dagstuhl Publishing
T2 - 34th Annual Symposium on Combinatorial Pattern Matching, CPM 2023
Y2 - 26 June 2023 through 28 June 2023
ER -