作者: Golnaz Badkobeh , Hideo Bannai , Keisuke Goto , Tomohiro I , Costas S. Iliopoulos
DOI: 10.1016/J.DAM.2016.04.009
关键词: Space (mathematics) 、 Combinatorics 、 SIMPLE algorithm 、 Factorization 、 String (computer science) 、 Mathematics 、 Substring 、 Time complexity 、 Sequence 、 Position (vector)
摘要: A closed string is a with proper substring that occurs in the as prefix and suffix, but not elsewhere. Closed strings were introduced by Fici (2011) objects of combinatorial interest study Trapezoidal Sturmian words. In this paper we present algorithms for computing factors (substrings) strings. First, consider problem greedily factorizing into sequence longest factors. We describe an algorithm uses linear time space. then related computing, every position string, factor starting at position. simple runs O ( n log / ) time, where length string. This also leads to compute maximal containing (i.e.źcovering) each time. factorize shortest least two, two minimal