A Parameterized Formulation for the Maximum Number of Runs Problem

A parameterized approach to the problem of the maximum number of runs in a string was introduced by Deza and Franek. In the approach referred to as the d-step approach, in addition to the usual parameter the length of the string, the size of the string’s alphabet is considered. The behaviour of the function ρd(n), the maximum number of runs over all strings of length n with exactly d distinct symbols, can be handily expressed in the terms of properties of a table referred to as the (d, n−d) table in which ρd(n) is the entry at the dth row and (n−d)th column. The approach leads to a conjectured upper bound ρd(n) ≤ n− d for 2 ≤ d ≤ n. The parameterized formulation shows that the maximum within any column of the (d, n − d) table is achieved on the main diagonal, i.e. for n = 2d, and motivates the investigation of the structural properties of the run-maximal strings of length n bounded by a constant times the size of the alphabet d. We show that ρd(n) = ρn−d(2n − 2d) for 2 ≤ d ≤ n < 2d, ρd(2d) ≤ ρd−1(2d − 1) + 1 for d ≥ 3, ρd−1(2d − 1) = ρd−2(2d − 2) = ρd−3(2d − 3) for d ≥ 5, and {ρd(n) ≤ n − d for 2 ≤ d ≤ n} ⇔ {ρd(9d) ≤ 8d for d ≥ 2}. The results allow for an efficient computational verification of entries in the (d, n − d) table for higher values of n and point to a plausible way of either proving the maximum number of runs conjecture by showing that possible counter-examples on the main diagonal would exhibit an impossible structure, or to discover an unexpected counter-example on the main diagonal of the (d, n−d) table. This approach provides a purely analytical proof of ρd(2d) = d for d ≤ 15 and, using the computational results of ρ2(d + 2) for d = 16, . . . , 23, a proof of ρd(2d) = d for d ≤ 23.

[1]  Gregory Kucherov,et al.  On Maximal Repetitions in Words , 1999, FCT.

[2]  Frantisek Franek,et al.  A computational framework for determining run-maximal strings , 2013, J. Discrete Algorithms.

[3]  Frantisek Franek,et al.  More results on overlapping squares , 2012, J. Discrete Algorithms.

[4]  Frantisek Franek,et al.  A Different Proof of Crochemore-Ilie Lemma Concerning Microruns 1 , 2009 .

[5]  Lucian Ilie,et al.  Towards a Solution to the "Runs" Conjecture , 2008, CPM.

[6]  William F. Smyth,et al.  How many runs can a string contain? , 2008, Theor. Comput. Sci..

[7]  William F. Smyth,et al.  The three squares lemma revisited , 2012, J. Discrete Algorithms.

[8]  Ayumi Shinohara,et al.  A Series of Run-Rich Strings , 2009, LATA.

[9]  Michael G. Main,et al.  Detecting leftmost maximal periodicities , 1989, Discret. Appl. Math..

[10]  Lucian Ilie,et al.  The "runs" conjecture , 2011, Theor. Comput. Sci..

[11]  Frantisek Franek,et al.  A Computational Framework for Determining Square-maximal Strings , 2012, Stringology.

[12]  Frantisek Franek,et al.  An Improved Version of the Runs Algorithm Based on Crochemore's Partitioning Algorithm , 2011, Stringology.

[13]  Costas S. Iliopoulos,et al.  A Characterization of the Squares in a Fibonacci String , 1997, Theor. Comput. Sci..

[14]  Qian Yang,et al.  An asymptotic Lower Bound for the Maximal Number of Runs in a String , 2008, Int. J. Found. Comput. Sci..

[15]  William F. Smyth,et al.  A New Periodicity Lemma , 2005, SIAM J. Discret. Math..

[16]  William F. Smyth,et al.  Some restrictions on periodicity in strings , 2005 .

[17]  Hideo Bannai,et al.  New Lower Bounds for the Maximum Number of Runs in a String , 2008, Stringology.

[18]  Gregory Kucherov,et al.  Finding maximal repetitions in a word in linear time , 1999, 40th Annual Symposium on Foundations of Computer Science (Cat. No.99CB37039).

[19]  Francisco Santos,et al.  A counterexample to the Hirsch conjecture , 2010, ArXiv.

[20]  Mathieu Giraud,et al.  Not So Many Runs in Strings , 2008, LATA.

[21]  Wojciech Rytter,et al.  The Number of Runs in a String: Improved Analysis of the Linear Upper Bound , 2006, STACS.

[22]  William F. Smyth,et al.  The maximum number of of runs in a string , 2003, IWOCA 2007.

[23]  Lucian Ilie,et al.  Maximal repetitions in strings , 2008, J. Comput. Syst. Sci..