Papers
Topics
Authors
Recent
Search
2000 character limit reached

Minimal Unique Substring (MUS)

Updated 9 July 2026
  • MUS is defined as a substring that appears exactly once in a string and becomes repeating when its first or last character is removed.
  • MUSs exhibit non-nesting properties, ensuring that no MUS is completely contained within another, which bounds their total number by the string length.
  • Efficient linear-time algorithms using suffix arrays and LCP arrays compute MUSs, making them essential for advanced string indexing and bioinformatics applications.

A minimal unique substring (MUS) of a string TT is a substring that occurs exactly once in TT and is minimal with respect to that uniqueness: deleting its first character or its last character yields a repeating substring. Equivalently, every proper substring of a MUS is repeating. MUSs are typically identified with their occurrence intervals [s,t][s,t], form a non-nesting family, and their total number in a string of length nn is at most nn (Mieno et al., 2019, Mieno et al., 2016).

1. Formal definition and core structural properties

Let TT be a string of length nn over an alphabet Σ\Sigma, and let occT(w)\mathrm{occ}_T(w) denote the number of occurrences of a string ww in TT0. A substring TT1 is unique if TT2, and repeating if TT3. The standard MUS definition is

TT4

which is equivalent to requiring every proper substring of TT5 to be repeating (Mieno et al., 2019).

Two structural properties recur throughout the literature. First, distinct MUSs do not nest. If TT6 and TT7 are MUSs with TT8, then TT9 contains [s,t][s,t]0, forcing the inner substring to occur once and contradicting minimality. Second, for each start position [s,t][s,t]1, there is at most one MUS commencing at [s,t][s,t]2; otherwise one candidate would be a proper prefix of the other, and the shorter one would prevent the longer one from being minimal. These two facts together yield the global bound [s,t][s,t]3 (Fujimaru et al., 22 Aug 2025).

Concrete examples illustrate the definition sharply. For [s,t][s,t]4, the substring [s,t][s,t]5 is a MUS because it occurs once, while both [s,t][s,t]6 and [s,t][s,t]7 occur twice; in fact [s,t][s,t]8. For [s,t][s,t]9, using the convention that the empty string nn0 occurs nn1 times, each single character is a MUS and no longer substring is minimal, so nn2 (Fujimaru et al., 22 Aug 2025).

2. Relation to shortest unique substrings

MUSs are closely tied to shortest unique substring (SUS) queries. For a query interval nn3, a substring nn4 is a SUS for nn5 if it is unique, contains nn6, and every strictly shorter substring containing nn7 is repeating. The special case nn8 yields point-SUS queries (Mieno et al., 2016, Mieno et al., 2019).

The algorithmic connection is direct: all known optimal solutions for both point- and interval-SUS queries follow the same high-level plan of first computing nn9, or an equivalent structure, and then building auxiliary arrays that enumerate exactly those unique substrings covering the query that are minimal in length. In the classical linear-time preprocessing framework, this supports nn0 query time for point SUS and nn1 query time for interval SUS, where nn2 and nn3 are the output sizes (Mieno et al., 2016).

This dependence on MUSs persists in succinct indexing. A space-efficient formulation marks MUS starts and ends with the bit-vectors nn4 and nn5, augments them with rank/select, and emulates virtual arrays of MUS start positions, end positions, and lengths. On top of these, an interval-SUS structure of nn6 bits answers any interval query in output-sensitive nn7 time, while a point-SUS structure of nn8 bits supports point queries in the same nn9 time (Mieno et al., 2019).

3. Linear-time computation and compact representation

The standard linear-time route to all MUSs uses suffix arrays and longest-common-prefix information. Let TT0 be the suffix array of TT1, and TT2 the usual adjacent-suffix LCP array, with sentinel zeros at the boundaries. For each suffix TT3, define

TT4

Then TT5 is the shortest unique substring starting at TT6; moreover it is minimal unique, and every MUS arises in this way. Consequently, after building TT7 and TT8 in TT9 time, one computes each nn0 and outputs the corresponding intervals, obtaining all MUSs in nn1 total time (Fujimaru et al., 22 Aug 2025).

The same viewpoint underlies bit-space reductions. In the space-efficient construction, nn2 iff nn3 is the start of some MUS and nn4 iff nn5 is its end; each vector contains exactly nn6 one-bits. Rank/select over these bit-vectors emulates the arrays

nn7

and an nn8 structure over nn9 supports constant-time range minima for SUS reporting (Mieno et al., 2019).

The same paper gives a small-space MUS construction pipeline. A single left-to-right scan, combined with compact LCP/ISA access, computes Σ\Sigma0 and Σ\Sigma1 in Σ\Sigma2 time using Σ\Sigma3 bits; choosing the in-place Σ\Sigma4 representation yields Σ\Sigma5 and Σ\Sigma6, hence true Σ\Sigma7 time in Σ\Sigma8 bits (Mieno et al., 2019). This places MUS computation in the class of linear-time, linear-bit string indexing primitives.

4. Sliding-window MUSs

The MUS problem has also been studied in a sliding-window model. For a fixed width Σ\Sigma9, one considers the sequence of windows occT(w)\mathrm{occ}_T(w)0 and asks how occT(w)\mathrm{occ}_T(w)1 changes as the window moves one position to the right. The central combinatorial result is that a single slide changes only a constant number of MUSs: occT(w)\mathrm{occ}_T(w)2 and the size difference satisfies

occT(w)\mathrm{occ}_T(w)3

Therefore the total symmetric-difference mass over all occT(w)\mathrm{occ}_T(w)4 slides is occT(w)\mathrm{occ}_T(w)5 (Mieno et al., 2019).

The analysis uses two auxiliary suffix notions for a window occT(w)\mathrm{occ}_T(w)6: the longest repeating suffix occT(w)\mathrm{occ}_T(w)7, namely the longest suffix with at least two occurrences in occT(w)\mathrm{occ}_T(w)8, and the shortest quasi-unique suffix occT(w)\mathrm{occ}_T(w)9, namely the shortest suffix with at most two occurrences in ww0. Their interaction controls when MUSs are inserted or deleted after a slide (Mieno et al., 2019).

The maintenance algorithm operates in ww1 time and ww2 space, where ww3 is the maximum number of distinct characters in every window. Its core data structures are a sliding-window suffix tree, three active points—the primary point ww4 for ww5, the secondary point ww6 for ww7, and the tertiary point ww8 for the longest suffix occurring at least three times—and circular arrays ww9 and TT00 of length TT01, which record the unique end of the MUS starting at a position and the start of the MUS ending at a position. Because MUSs do not nest, these arrays support TT02 insertion and deletion of individual MUS intervals. Setting TT03 yields an online TT04-time, TT05-space algorithm for all MUSs of TT06 (Mieno et al., 2019).

5. Extremal combinatorics and local density

Although TT07 globally, MUSs can cluster around a single position. For

TT08

the maximum possible value of TT09 over strings of length TT10 is TT11. The upper bound states that TT12 for every TT13 and every position TT14; the lower bound gives an infinite family of strings TT15 of length TT16 and a position TT17 such that TT18 (Fujimaru et al., 22 Aug 2025).

This local bound has direct algorithmic consequences. Any data structure that must list all MUSs covering a query position may require TT19 output time in the worst case. The same paper notes that, under single-character edits, a position-based update can destroy and create MUSs covering the edited position, and the TT20 crossing bound quantifies the worst-case local sensitivity of MUS sets (Fujimaru et al., 22 Aug 2025).

Related SUS bounds show that MUSs act as a sparse underlying structure for denser shortest-covering families. If TT21, then the total number of point-SUS intervals over all positions satisfies

TT22

and this is tight; for non-trivial interval-SUSs,

TT23

These results explain why output-sensitive SUS data structures remain linear in total output size even though they may report more intervals than the MUS set itself (Mieno et al., 2016).

6. Variants, applications, and open directions

The exact uniqueness model has been extended to approximate uniqueness. In the TT24-mismatch setting, a substring TT25 is TT26-mismatch unique if there is no other equal-length substring TT27 with Hamming distance at most TT28. The corresponding shortest-covering query, denoted TT29, can be solved by an in-place three-stage framework: first compute left-bounded shortest unique substrings TT30, then the rightmost shortest TT31 covering each position TT32, and finally assemble TT33 either from TT34 or by extending the previous answer. The framework uses only the read-only string TT35 plus arrays TT36 and TT37, for peak memory TT38 machine words TT39 bytes, and runs in TT40 time for TT41 and TT42 time for any TT43 (Hon et al., 2015).

Applications of MUS- and SUS-based uniqueness analysis are concentrated in string indexing and computational biology. The sliding-window work explicitly lists shortest-unique-substring queries, anti-dictionary compression via minimal absent words, and indexing problems in bioinformatics; the approximate framework further points to primer design for PCR, read-uniqueness in genome assembly, and marker discovery between strains, where a bounded number of mismatches must be tolerated (Mieno et al., 2019, Hon et al., 2015).

Several open directions remain explicit in the literature. Proposed extensions include handling edits in dynamic strings and higher-order “unique fragments” under different occurrence models (Mieno et al., 2019). On the SUS side, open questions include whether the all-point-SUS problem can be solved in less than TT44 space, whether the same TT45-preprocessing and TT46-query bounds can be achieved on compressed representations such as run-length or grammar compression, and whether the fixed-alphabet conjecture

TT47

holds for all strings over an alphabet of size TT48 (Mieno et al., 2016). These questions indicate that, despite the linear-time computability of MUSs and their clean non-nesting structure, the fine-grained geometry of uniqueness in strings is still not fully characterized.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Minimal Unique Substring (MUS).