1998
DOI: 10.1006/jcta.1997.2843
|View full text |Cite
|
Sign up to set email alerts
|

How Many Squares Can a String Contain?

Abstract: All our words (strings) are over a fixed alphabet. A square is a subword of the form uu=u 2 , where u is a nonempty word. Two squares are distinct if they are of different shape, not just translates of each other. A word u is primitive if u cannot be written in the form u=v j for some j 2. A square u 2 with u primitive is primitive rooted. Let M(n) denote the maximum number of distinct squares, P(n) the maximum number of distinct primitive rooted squares in a word of length n. We prove: no position in any word… Show more

Help me understand this report

Search citation statements

Order By: Relevance

Paper Sections

Select...
2
2
1

Citation Types

0
85
0

Year Published

1999
1999
2017
2017

Publication Types

Select...
3
3
2

Relationship

0
8

Authors

Journals

citations
Cited by 113 publications
(85 citation statements)
references
References 4 publications
0
85
0
Order By: Relevance
“…Every substring of a directed labeled tree corresponds to a directed path in the tree. The following fact is a simple generalization of the upper bound of 2n on the number of squares in a string of length n; see [9,12]. A proof of this fact was also implicitly presented in [15].…”
Section: Labeled Treesmentioning
confidence: 90%
See 1 more Smart Citation
“…Every substring of a directed labeled tree corresponds to a directed path in the tree. The following fact is a simple generalization of the upper bound of 2n on the number of squares in a string of length n; see [9,12]. A proof of this fact was also implicitly presented in [15].…”
Section: Labeled Treesmentioning
confidence: 90%
“…A proof of this fact was also implicitly presented in [15]. Proof It suffices to note that there are at most two topmost occurrences of different squares starting at each node of the tree; see [9,12].…”
Section: Labeled Treesmentioning
confidence: 96%
“…In this paper we present an improved algorithm for constructing MAST(S) with preprocessing time O(n log n), and prove that MAST(S) requires space O(n), which follows from a recent theorem of Fraenkel and Simpson [9].…”
Section: Introductionmentioning
confidence: 91%
“…To bound the size of a minimal augmented suffix tree we need the following theorem of Fraenkel and Simpson, who proved that a string can at most contain a linear number of distinct squares [9]. The proof given below is a slight simplification of [9, Theorem 1].…”
Section: Lemma 5 the Maximum Number Of Non-overlapping Occurrences Ofmentioning
confidence: 99%
“…On the other hand, one may try to maximize the number of square factors in a word. The theorem of Fraenkel and Simpson states that a word of length n contains always less than 2n distinct squares [6]. A very short proof for this and an improved upper bound 2n − Θ(log n) was given by Ilie in [9] and [10].…”
Section: Introductionmentioning
confidence: 99%