Article view

Strings with Maximally Many Distinct Subsequences and Substrings

By Abraham D. Flaxman, Aram W. Harrow, Gregory B. Sorkin

Article information

Publication
Published 5 January 2004
Institutions at publication
Carnegie Mellon University; Massachusetts Institute of Technology; IBM (United States); IBM Research - Thomas J. Watson Research Center
39 Citations OpenAlex, 3 December 2026 FULL LIST: Citations
17 Countries with citations Where the citing authors were FULL LIST: Countries with citations
Usage Phase 3: not collected yet

Abstract

A natural problem in extremal combinatorics is to maximize the number of distinct subsequences for any length-$n$ string over a finite alphabet $\Sigma$; this value grows exponentially, but slower than $2^n$. 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 $\Sigma=\{1,2\}$, $\,(1,2,1,2,\dots)$ has the maximum number of distinct subsequences, namely ${\rm Fib}(n+3)-1 \sim \left((1+\sqrt5)/2\right)^{n+3} \! / \sqrt{5}$. We also consider the same problem with substrings in lieu of subsequences. Here, we show that an appropriately truncated de Bruijn word attains the maximum. For both problems, we compare the performance of random strings with that of the optimal ones.

Citations per year

Citations per year
YearCitations
2017 1
2018 5
2019 2
2020 1
2021 1
2022 3
2023 0
2024 2
2025 1
2026 2

OpenAlex counts citations by year for the last ten years only, so the total and the list of citing works can include earlier ones.

Works citing this article

OpenAlex counts 39 citations; 37 citing works of them are listed here.

All 37 citing works

Where its authors are based

Countries of the institutions the article's authors were affiliated to when it was published.

  • Changes the map only; the tables list the figures.
  • USAGE Phase 3
Authors by country
CountryAuthors
United States3
Citations from 17 countries

Where the authors of the works citing these were, from the citing works OpenAlex lists. A citation whose authors were in several countries counts in each.