How many double squares can a string contain?
نویسندگان
چکیده
Counting the types of squares rather than their occurrences, we consider the problem of bounding the number of distinct squares in a string. In 1998 Fraenkel and Simpson showed that a string of length n contains at most 2n distinct squares. In 2007 Ilie provided an asymptotic upper bound of 2n−Θ(log n). We show that a string of length n contains at most b5n/3c distinct squares. This new upper bound is obtained by investigating the combinatorial structure of double squares and showing that a string of length n contains at most b2n/3c double squares.
منابع مشابه
How Many Squares Must a Binary Sequence Contain?
Let g(n) be the length of a longest binary string containing at most n distinct squares (two identical adjacent substrings). Then g(0) = 3 (010 is such a string), g(1) = 7 (0001000) and g(2) = 18 (010011000111001101). How does the sequence { g(n) } behave? We give a complete answer.
متن کاملHow Many Squares Can a String Contain?
All our words (strings) are over a fixed alphabet. A square is a subword of the form uu=u, 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 with u primitive is primitive rooted. Let M(n) denote the maximum number of distinct squares, P(n)...
متن کاملString rewriting for double coset systems
In this paper we show how string rewriting methods can be applied to give a new method of computing double cosets. Previous methods for double cosets were enumerative and thus restricted to finite examples. Our rewriting methods do not suffer this restriction and we present some examples of infinite double coset systems which can now easily be solved using our approach. Even when both enumerati...
متن کاملCombinatorics of the Interrupted Period
This article is about discrete periodicities and their combinatorial structures. It presents and describes the unique structure caused by the alteration of a pattern in a repetition. Those alterations of a pattern arise in the context of double squares and were discovered while working on bounding the number of distinct squares in a string. Nevertheless, they can arise in other phenomena and ar...
متن کاملComputing All Distinct Squares in Linear Time for Integer Alphabets
Given a string on an integer alphabet, we present an algorithm that computes the set of all distinct squares belonging to this string in time linear to the string length. As an application, we show how to compute the tree topology of the minimal augmented suffix tree in linear time. Asides from that, we elaborate an algorithm computing the longest previous table in a succinct representation usi...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید
ثبت ناماگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید
ورودعنوان ژورنال:
- Discrete Applied Mathematics
دوره 180 شماره
صفحات -
تاریخ انتشار 2015