Minimal Unique Substring (MUS)
- 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 is a substring that occurs exactly once in 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 , form a non-nesting family, and their total number in a string of length is at most (Mieno et al., 2019, Mieno et al., 2016).
1. Formal definition and core structural properties
Let be a string of length over an alphabet , and let denote the number of occurrences of a string in 0. A substring 1 is unique if 2, and repeating if 3. The standard MUS definition is
4
which is equivalent to requiring every proper substring of 5 to be repeating (Mieno et al., 2019).
Two structural properties recur throughout the literature. First, distinct MUSs do not nest. If 6 and 7 are MUSs with 8, then 9 contains 0, forcing the inner substring to occur once and contradicting minimality. Second, for each start position 1, there is at most one MUS commencing at 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 3 (Fujimaru et al., 22 Aug 2025).
Concrete examples illustrate the definition sharply. For 4, the substring 5 is a MUS because it occurs once, while both 6 and 7 occur twice; in fact 8. For 9, using the convention that the empty string 0 occurs 1 times, each single character is a MUS and no longer substring is minimal, so 2 (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 3, a substring 4 is a SUS for 5 if it is unique, contains 6, and every strictly shorter substring containing 7 is repeating. The special case 8 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 9, 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 0 query time for point SUS and 1 query time for interval SUS, where 2 and 3 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 4 and 5, 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 6 bits answers any interval query in output-sensitive 7 time, while a point-SUS structure of 8 bits supports point queries in the same 9 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 0 be the suffix array of 1, and 2 the usual adjacent-suffix LCP array, with sentinel zeros at the boundaries. For each suffix 3, define
4
Then 5 is the shortest unique substring starting at 6; moreover it is minimal unique, and every MUS arises in this way. Consequently, after building 7 and 8 in 9 time, one computes each 0 and outputs the corresponding intervals, obtaining all MUSs in 1 total time (Fujimaru et al., 22 Aug 2025).
The same viewpoint underlies bit-space reductions. In the space-efficient construction, 2 iff 3 is the start of some MUS and 4 iff 5 is its end; each vector contains exactly 6 one-bits. Rank/select over these bit-vectors emulates the arrays
7
and an 8 structure over 9 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 0 and 1 in 2 time using 3 bits; choosing the in-place 4 representation yields 5 and 6, hence true 7 time in 8 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 9, one considers the sequence of windows 0 and asks how 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: 2 and the size difference satisfies
3
Therefore the total symmetric-difference mass over all 4 slides is 5 (Mieno et al., 2019).
The analysis uses two auxiliary suffix notions for a window 6: the longest repeating suffix 7, namely the longest suffix with at least two occurrences in 8, and the shortest quasi-unique suffix 9, namely the shortest suffix with at most two occurrences in 0. Their interaction controls when MUSs are inserted or deleted after a slide (Mieno et al., 2019).
The maintenance algorithm operates in 1 time and 2 space, where 3 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 4 for 5, the secondary point 6 for 7, and the tertiary point 8 for the longest suffix occurring at least three times—and circular arrays 9 and 00 of length 01, 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 02 insertion and deletion of individual MUS intervals. Setting 03 yields an online 04-time, 05-space algorithm for all MUSs of 06 (Mieno et al., 2019).
5. Extremal combinatorics and local density
Although 07 globally, MUSs can cluster around a single position. For
08
the maximum possible value of 09 over strings of length 10 is 11. The upper bound states that 12 for every 13 and every position 14; the lower bound gives an infinite family of strings 15 of length 16 and a position 17 such that 18 (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 19 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 20 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 21, then the total number of point-SUS intervals over all positions satisfies
22
and this is tight; for non-trivial interval-SUSs,
23
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 24-mismatch setting, a substring 25 is 26-mismatch unique if there is no other equal-length substring 27 with Hamming distance at most 28. The corresponding shortest-covering query, denoted 29, can be solved by an in-place three-stage framework: first compute left-bounded shortest unique substrings 30, then the rightmost shortest 31 covering each position 32, and finally assemble 33 either from 34 or by extending the previous answer. The framework uses only the read-only string 35 plus arrays 36 and 37, for peak memory 38 machine words 39 bytes, and runs in 40 time for 41 and 42 time for any 43 (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 44 space, whether the same 45-preprocessing and 46-query bounds can be achieved on compressed representations such as run-length or grammar compression, and whether the fixed-alphabet conjecture
47
holds for all strings over an alphabet of size 48 (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.