Strings with Maximum Numbers of Distinct Subsequences and Substrings

A natural problem in extremal combinatorics is to maximize the number of distinct sub-sequences for any length-n string over a finite alphabet ; this value grows exponentially, but slower than 2n. We use the probabilistic method to determine the maximizing string, which is a cyclically repeating string. The number of distinct subsequences is exactly enumerated by a generating function, from which we also derive asymptotic estimates. For the alphabet = {1, 2}, (1, 2, 1, 2, . . .) has the maximum number of distinct subsequences, namely

We also consider the same problem with substrings in lieu of subsequences. Here, we show that an appropriately truncated de Bruijn sequence attains the maximum.

By: Abraham Flaxman, Aram Harrow, Gergory B. Sorkin

Published in: RC22977 in 2003

LIMITED DISTRIBUTION NOTICE:

This Research Report is available. This report has been submitted for publication outside of IBM and will probably be copyrighted if accepted for publication. It has been issued as a Research Report for early dissemination of its contents. In view of the transfer of copyright to the outside publisher, its distribution outside of IBM prior to publication should be limited to peer communications and specific requests. After outside publication, requests should be filled only by reprints or legally obtained copies of the article (e.g., payment of royalties). I have read and understand this notice and am a member of the scientific community outside or inside of IBM seeking a single copy only.

rc22977.pdf

Questions about this service can be mailed to reports@us.ibm.com .