Manuscript Offprint
arXiv:2611.00162Beyond Typical Strings: Sampling the Complexity Landscape
Abdurrahman Hadi Erturk, Joshua Sharkey, Nora S. Martin, Kamal Dingle, and Ard A. Louis
Abstract—Uniform random sampling of strings is overwhelmingly dominated by high-complexity strings, leaving the much smaller set of low- and intermediate-complexity strings largely unexplored. Here, we adapt the nested neutral set estimator (NNSE), a Monte Carlo rare-event sampling method, to estimate the distribution of complexity values for binary strings of fixed length. NNSE allows us to explore the full complexity landscape, including exponentially rare low-complexity regions that are inaccessible to direct sampling, for string lengths up to several hundred. We apply the method to several widely used complexity measures: Lempel–Ziv 76 (LZ76), Lempel–Ziv 78 (LZ78), context tree weighting (CTW), the block decomposition method (BDM), and block entropy. We further introduce uniform complexity weighting (UCW), which gives equal weight to different complexity levels rather than to individual strings. This approach provides a dataset-independent framework for comparing complexity measures across their full range and reveals substantial differences between measures for low- and intermediate-complexity strings that are largely hidden by conventional uniform sampling. Using the NNSE to perform UCW sampling allows us to compare complexity measures across their full range in a dataset-independent way. This reveals differences in their behavior for low- and intermediate-complexity strings that are practically inaccessible to conventional uniform sampling.
Index Terms—Algorithmic information theory, block entropy, complexity measures, context tree weighting, data compression, Kolmogorov complexity, Lempel–Ziv complexity, Markov chain Monte Carlo, rare-event sampling.
I. INTRODUCTION
GIVEN a complexity measure , estimated for example using code lengths from a compression algorithm, we consider the probability distribution that one obtains
The work of A. H. Erturk was supported by the Clarendon Fund, University of Oxford. The work of N. S. Martin was supported by the Spanish Ministry of Science and Innovation through the Centro de Excelencia Severo Ochoa (CEX2020-001049-S, MCIN/AEI/10.13039/501100011033), the EMBL partnership and the Generalitat de Catalunya through the CERCA programme, and also the Issachar Fund. Research for this publication has been partially carried out in the Barcelona Collaboratorium for Modelling and Predictive Biology. This research is part of Grant JDC2022-049526-I funded by MCIN/AEI/10.13039/501100011033 and by European Union NextGenerationEU/PRTR. The funders played no role in the study design, data collection and analysis, decision to publish, or preparation of the manuscript.
A. H. Erturk and A. A. Louis are with the Department of Theoretical Physics, University of Oxford, Oxford, OX1 3PU, UK (e-mails: abdurrahman.erturk@physics.ox.ac.uk, ard.louis@physics.ox.ac.uk). N. S. Martin and J. Sharkey were also at this institution during part of this work.
J. Sharkey is with the Institute for Gravitational Research, School of Physics and Astronomy, University of Glasgow, G12 8QQ, Glasgow, UK.
N. S. Martin is with CRG (Barcelona Collaboratorium for Modelling and Predictive Biology), Dr. Aiguader 88, Barcelona, 08003, Spain.
K. Dingle is with the Department of Mathematics and Natural Science, Gulf University for Science and Technology, Kuwait.
Ard A. Louis is the corresponding author
complexity upon picking a binary string at random from the whole set of strings of length . For some measures, such as LZ78 [1], this distribution can be computed analytically [2]. In general, however, this distribution is not known.
Compression algorithms are typically applied to natural datasets such as text, images, or biological sequences, which are much lower in complexity than typical random strings of the same length. Many natural input-output maps are intrinsically biased towards producing low- to intermediate-complexity outputs [3]–[7]. Understanding how compression-based complexity measures behave in the low and intermediate complexity regime, which forms a tiny subset of sequence space, is therefore of considerable practical interest.
One expects that, for many compression-based measures, [8]. That is, low-complexity strings are exponentially rare under uniform random sampling. As a result, comparisons of complexity measures have generally relied either on benchmark datasets, which introduce unknown source biases, or on uniform random sampling, which is dominated by high-complexity strings. There is a need for a method that allows one to compare these measures on low to intermediate complexity strings that is also dataset agnostic.
Here, we introduce a nested Monte Carlo rare-event method inspired by work [9] that estimates the sizes of neutral sets, defined as the sets of sequences mapping to the same RNA secondary structure. We adapt this nested neutral set estimator (NNSE) algorithm to binary strings and apply it to a series of complexity measures. The NNSE samples uniformly within each complexity level across the whole range of . This allows us to estimate the full distribution , including tail regions inaccessible to direct sampling. It also provides a dataset-independent way to compare different complexity measures across the full range of , rather than only for the typical high-complexity strings that dominate uniform random sampling.
More generally, it allows us to compare two distinct ways to measure properties of strings. We call the first, where all strings are treated as equally likely, uniform string weighting (USW). The USW average of a function of string over all strings of length is:
Many calculations in information theory use USW. However, this is dominated by strings with high complexity.
An alternative way of sampling is uniform complexity weighting (UCW) which gives equal weight to each complexity. For example, a UCW average would be:
where where and . The NNSE allows us to calculate UCW properties of interest. These would normally only be accessible through exhaustive enumeration, which is typically limited to string lengths of , whereas our method extends this range to strings of length several hundred or longer.
The complexity distribution is of interest beyond the comparison of complexity measures. The connection between lossless compression and universal prediction is well established [10]: the code lengths assigned by a universal compressor define an implicit probability distribution, , whose predictive performance depends on the distribution of . A related connection arises in security, where randomized guessing strategies based on universal compression achieve optimal guessing exponents for decentralized brute-force attacks [11]. Here, determines the order in which candidate passwords are guessed. These applications provide further motivation for efficient methods to estimate , or equivalently to generate strings in the exponentially rare low-complexity regime where direct USW is ineffective.
-
We compare complexity measures using the NNSE to perform UCW sampling of strings under one measure and evaluating those same strings under a second measure . This allows us to probe how well and correlate over the full range of complexity values.
-
We also use UCW sampling to study other properties of complexity measures. For example, we show that calculating the sensitivity of complexity to bit flips under UCW sampling can highlight features that are hard to distinguish under USW sampling.
-
We prove that the NNSE is ergodic for binary strings when a small mutation skip probability is introduced to the original algorithm [9].
II. COMPLEXITY MEASURES
We consider the following complexity measures: LZ76 [12], LZ78 [1], CTW [13], [14], block entropy [16], and BDM [15]. We briefly summarize each below; see Appendix A for details.
LZ76 is a classical parsing-based measure of finite-sequence complexity [17], while LZ78 is a related dictionary-based universal coding scheme whose codelength provides a natural compression-based complexity measure. In contrast, context
tree weighting (CTW) predicts each successive bit using a Bayesian mixture over context-tree models. We define the CTW complexity of a sequence as the cumulative log-loss incurred by these predictions. CTW has demonstrated strong predictive performance on real-world datasets [18] and is supported by a rigorous Bayesian framework for combining variable-order Markov models.
Block entropy is particularly simple to understand. It calculates the complexity of a string using the Shannon entropy of fixed-length substrings (blocks). We use a sliding window with overlapping blocks to obtain a finer-grained estimate. Finally, we consider BDM, which approximates Kolmogorov complexity using precomputed algorithmic complexities of strings on 5-state Turing machines, which are then combined into blocks for a complexity measure. We have a separate subsection for BDM as both its uncorrelated (default) and correlated (slower but finer-grained) variants exhibit some unusual properties.
Many other complexity measures exist. We chose the measures above because they are well established and span a range of approaches to practical string complexity. But NNSE can be applied directly to these and other measures.
III. METHODS
A. Nested Neutral Set Estimator (NNSE) for Strings
The NNSE method, which we adapt from Jörg et al. [9], uses random walks on a population of strings to sample uniformly from small subsets of a larger parent set. It builds on the Metropolis-Hastings algorithm but differs in two ways: (1) instead of updating a single point , we maintain a population at complexity levels ; and (2) we do not update each point in isolation but also swap neighbors when possible, sweeping in increasing . Like other nested sampling methods [19], we subdivide the space into ordered levels, but our aim is to estimate the sizes of these nested sets rather than to evaluate an integral over likelihood values. We give pseudo-code in Algorithm 1 and 2.
Choosing closely spaced thresholds decomposes the string space into a nested family , where and is large enough that . The number of strings in (for ) is
and we estimate each ratio as follows: At each time step we flip a random bit of and keep the result only if it stays in . This operation is termed a mutation and written as . In the original NNSE algorithm, is mutated at every step, but, for reasons explained below, we introduce a mutation-skip-probability , similar to a lazy random walk. With probability , we set and we call this the lazy step. When the string also lies in , we record a hit at and estimate
Algorithm 1 Nested Neutral Set Estimator (NNSE)
Require: ; thresholds , ; mutation op. ; thermalization ; samples ; mutation- skip-probability
Ensure: , histogram
1:
2: , for
3: for to do
4: for all with do parallel
5: if then lazy step
6:
7: if then stay in
8: end if
9: end if
10: end for
11: EXCHANGESWEEP
12: if then post-thermalization
13: for all with do
14:
15: end for
16: end if
17: end for
18: for
19: ; for
20: ; for
21: return ,
Algorithm 2 Exchange sweep (increasing )
1: procedure EXCHANGESWEEP
2: for to do
3: if then
4: if then
5: else
6: end if
7: end if
8: end for
9: end procedure
where is the number of hits at j-1 over T iterations. We always use a single bit flip as the mutation operator but other mutation operators are also possible.
The exchange sweep (Algorithm 2) additionally swaps and on a hit, which keeps the walk from becoming trapped near and lets it reach components of that lie far apart. For instance, the two lowest-complexity strings, 0 … 0 and 1 … 1, are maximally separated in Hamming distance; mutating alone could never reach both, whereas swapping lets us explore any component of .
Unlike Jörg et al. [9], we initialize only with a random point rather than seeding every . Because the NNSE can already descend from to , the remaining levels fill in on their own and this choice does not affect the final results. We discard a fixed time budget to let the population thermalize before recording hit counts.
The introduction of a lazy step is required for our proof of ergodicity in Appendix F. In practice, however, for the problems studied here we find that taking close to, or equal to, 0 (i.e. removing the lazy step) does not noticeably affect the convergence of NNSE, and it is also faster.
Our proof of ergodicity is based on the existence of a reference state that can be reached from any other state, and from which any other state can in turn be reached. This construction allows us to show that the Markov chain has a finite mixing time. The Markov-chain ergodic theorem [20] then guarantees that the NNSE estimates of the sizes of the sets converge almost surely to their true values as . Moreover, a Markov-chain Chernoff–Hoeffding bound [21] allows us to relate the convergence time to the mixing time. Further details are given in Appendix F.
B. Calculating distributions
After estimating the sizes of , we determine how many strings there are with complexity by calculating . This gives us the number of strings at a particular complexity value or a continuous interval of values, allowing us to calculate .
For any complexity measure, we first determine the minimum and maximum complexities (or an estimate when unknown). For example, for LZ76, the min and max complexities are set at and . The minimum LZ76 complexity, attained by just repeating the same digit, is and the maximum complexity is not known exactly but it is known that it decays to with increasing length [22]. We use a factor of 1.3 as a buffer to include the highest complexity strings.
For continuous complexity measures such as CTW, BE, and BDM, we discretize the complexity axis into a uniform grid of thresholds and use the resulting histograms to plot . CTW also has a maximum depth parameter which we set to 20 for computational efficiency, as our tests show that CTW values vary very little for strings of length above . For strings of length , CTW () uses 419 bins of width on ; BE uses 53 bins of width on ; and BDM uses 200 equally spaced bins on [29.61, 577.04].
In Appendix B we confirm that the NNSE method recovers the exact distribution of nested-set sizes for LZ76, LZ78, and CTW for exhaustive enumeration of all n = 30 strings.
C. Uniform Complexity Weighting (UCW)
The NNSE can also be used to sample individual strings at prescribed complexity levels, making it possible to perform uniform complexity weighting (UCW), in which strings are sampled with probability
where is the number of complexity levels for a discrete-valued measure . For continuous measures, we first bin the complexity values into intervals . Under UCW, every complexity level has equal total probability, while strings within a level are sampled uniformly.
Implementing UCW requires collecting strings throughout an NNSE run. Recording every visited string is impractical, since runs can be extremely long, while sampling from a short time window would produce highly correlated samples.
Instead, we use reservoir sampling [23]. The first strings are stored, and each subsequent string encountered at time step replaces a uniformly chosen stored string with probability . This produces a uniform sample of size over the entire run using only memory, and at every stage remains uniform over all strings visited up to that point.
UCW sampling can be compared against the probability assignment that a complexity measure implicitly encodes, provided can be interpreted as a description length or a code length, which is true for all the complexity measures we examine. By Shannon's source coding theorem, the optimal code lengths for a source are [16]; inverting this correspondence, the code lengths are optimal precisely for a source assigning probability proportional to . Moreover, in both cases: for a prefix-free compression algorithm this is Kraft's inequality [16], and for a probability model it follows from being a distribution. Hence,
is a well-defined distribution over binary strings. It is the source for which the code lengths K would be optimal, i.e. the distribution implicitly assumed by the complexity measure.
The comparison of with UCW sampling is straightforward. Since is constant on each complexity level, both and are uniform within levels and differ only in the mass assigned across levels: level receives mass under and under . Consequently,
and the two distributions coincide exactly when .
D. Comparing Complexity Measures
Using the NNSE, we can compare complexity measures in a dataset-agnostic way. We perform UCW sampling with respect to one measure and evaluate the sampled strings under a second measure , probing the relationship between the two measures across the full range of complexity values. The resulting samples estimate the conditional distribution
which describes how strings that regards as equally complex are distributed under . In practice we visualize these conditionals as a scatter plot of against over the UCW samples and vice-versa. Comparing these two plots can give detailed insight into how complexity measures perform.
We will treat three simple idealized cases to illustrate what kind of information we can derive from these subplots:
Both straight. (Top row of Figure 1) Both plots of and show a linear correlation between and , suggesting that both measures estimate complexity similarly.
Case 1

Case 2

Case 3

Fig. 1. Illustrating three idealized cases (rows 1-3) when comparing complexity measures and . Left column plots correspond to strings sampled UCW with respect to and right column plots are the opposite order.
• One triangular, one straight. (Middle row of Figure 1) The plot of has an upper triangular shape but that of shows a linear relationship. This indicates that there are many strings to which assigns a high complexity but assigns a low complexity. However, the reverse does not hold: most of the strings which assigns a low complexity to, also assigns a low complexity to. We can therefore infer that captures the patterns identified by , while also exploiting additional regularities that do not. This suggests that is a more general complexity measure than .
Both triangular. (Bottom row of Figure 1). Both plots of and have an upper triangular shape. This means that each measure exploits different kinds of patterns or regularities in strings.
Finally, it may appear paradoxical that the two plots in the middle row of Figure 1 disagree, since both are conditionals of the same joint distribution: the triangular plot exhibits many strings with low and high , while the straight plot, sampled at exactly those high -levels, shows no trace of them. The resolution is a counting argument. The level set at high contains on the order of strings, the overwhelming majority of which have high complexity under ; the strings with anomalously low within this set are exponentially few by comparison. Uniform sampling within this level set therefore draws high complexity strings with probability exponentially close to one, and the anomalous low strings never appear. UCW sampling with respect to , by contrast, allocates equal probability to each -level, and thus low high strings can appear prominently. The two plots are thus consistent: they

Fig. 2. Complexity distribution calculated using the NNSE method, using LZ76 complexity, for string lengths with increments. The horizontal lines at , correspond to the probability of the two simplest strings for length . For each length we show 8 independent runs to help illustrate statistical variation between runs, which becomes larger for longer lengths and at lower complexity. The curves look roughly like , as expected.
weight the same underlying set of strings differently, and their disagreement is precisely what reveals the differences between different complexity measures in the low-complexity regime, which is effectively inaccessible to uniform random sampling.
IV. RESULTS
A. Complexity Distributions
To illustrate our method, we calculated for LZ76 using the NNSE for time steps (plus steps for thermalization) for string lengths ranging from to . The plots are shown in Figure 2. The LZ76 distributions scale smoothly with string length, and independent NNSE runs are almost indistinguishable, indicating small statistical errors. While this does not guarantee accuracy, it is encouraging, especially given the agreement with exact enumeration for (Appendix B). A second consistency check is that the smallest probability, , is very close to for every . This is expected because there are exactly two strings with minimum LZ76 complexity: and . For all string lengths, the distribution exhibits a peak near with an approximately Gaussian shape, as predicted theoretically [24]. Over much of the remaining range, is nearly linear in , consistent with the redundancy bounds relating LZ76 complexity to source entropy [12]
Figure 3 compares the complexity distributions of LZ76, LZ78, and CTW for strings of length . We ran NNSE for iterations for LZ76 and LZ78, but only iterations for CTW because it converged much more rapidly. For efficiency, CTW was evaluated with context depth rather than the maximum possible depth . Since our tests showed no noticeable difference between these choices, this does not materially affect the results.
We note that LZ76 and LZ78 are qualitatively similar in shape, with a Gaussian-like shape near their maxima, and a more linear vs. relationship at lower complexities.

Fig. 3. Complexity distributions for binary strings of length , obtained with the NNSE method for the complexity measures LZ76, LZ78, and CTW (). The dotted curve is an exponential approximation to the CTW distribution, . The dashed line is the exact LZ78 distribution.
By contrast, the CTW plot is, on average, very close to linear on its entire range, much like Shannon entropy is. This average is in general quite well fit by a simple form . CTW also exhibits more complex spiking structure, especially at lower complexities. As shown in Appendix D, this structure is stable under NNSE runs and holds for different lengths. It can also be observed in the exact enumeration in Appendix B. This feature of CTW is not, to our knowledge, yet understood theoretically. It illustrates how the NNSE can uncover new patterns in complexity measures.
While we believe that the plots in Figure 3 for LZ76 and CTW are fully converged, this is not the case for LZ78. We compare it to the exact distribution obtained via a polynomial-time algorithm that calculates the exact number of strings with a specific LZ78 complexity analytically [2]. For most of the range the NNSE closely tracks the exact solution, but there are discrepancies at smaller . We trace the origin of these sampling difficulties to the much higher sensitivity of LZ78 to single bit flips, a property we study in more detail in the next section. We also note that in Appendix C the NNSE converges more rapidly for a symmetrized version of LZ76, than for the standard LZ76, and that this may be due to the former's lower sensitivity to single bit flips.
B. USW and UCW calculations of single-bit sensitivity
We define the single-bit sensitivity as the average change in the complexity assigned by measure when a single bit of a string of length is flipped. This average can be computed either by USW or UCW. Table I reports normalized versions of both estimates for the five complexity measures considered here, computed from 10,000 strings of length . We include uncorrelated BDM in the table, but not the correlated variant. The UCW estimates were obtained using NNSE. For all five measures, the UCW values exceed the corresponding USW values, in some cases by more than an order of magnitude. This indicates that low-complexity
TABLE I
MEAN SINGLE-BIT SENSITIVITY OF COMPLEXITY MEASURES UNDER USW AND UCW SAMPLING FOR STRINGS OF LENGTH . VALUES IN BRACKETS ARE NORMALIZED TO THE RANGE [0, 200]
| Sampling | LZ78 | LZ76 | CTW | BE (W=10) | BDM |
|---|---|---|---|---|---|
| USW | 3.0 (3.0) | 3.0 (2.5) | 0.18 (0.18) | 0.41 (0.53) | 1.5 (0.56) |
| UCW | 36 (35) | 7.8 (6.6) | 4.1 (4.1) | 3.1 (4.0) | 19 (7.2) |
strings are, on average, substantially more sensitive to single-bit perturbations than typical strings.
Perhaps more strikingly, the complexity measure with the lowest USW sensitivity might not be the one with the lowest UCW sensitivity. Under USW sampling, the normalized (LZ78) is only slightly larger than (LZ76), while (BDM) is considerably smaller than (LZ76). Under UCW sampling, however, BDM has a larger normalized sensitivity than LZ76, and that of LZ78 is five times larger than that of LZ76. As we show below, this difference arises because LZ78 and BDM exhibit much greater single-bit sensitivity for low-complexity strings, a feature that is largely obscured under USW sampling.
To illustrate what UCW captures that USW does not, Figure 4 shows, for each of the 100,000 strings of length n = 200, the complexity of a string after flipping a single bit, plotted against the original complexity of the string for LZ78, LZ76, and CTW. The first clear feature is that most bit flips increase complexity, especially for strings that are initially of low complexity. This is expected: low-complexity strings are atypical, and a random bit flip is therefore more likely to move them towards more typical strings.
Perhaps more strikingly, LZ78 exhibits substantially larger changes in complexity following a single-bit flip than either LZ76 or CTW, with the effect being most pronounced at lower complexities. This helps explain why the mean single-bit sensitivity measured by UCW is much higher for LZ78 than for the other two methods. The large UCW sensitivity of LZ78 and BDM suggests that the patterns these measures identify are comparatively fragile, particularly in the low- and intermediate-complexity regime. This behavior is not apparent from USW alone.
Finally, the large sensitivity helps explain why the NNSE has more difficulty converging for LZ78 at low complexities; the sampling is more likely to get stuck in local minima. By contrast, CTW is the least sensitive, and indeed, we find that the NNSE converges for much longer lengths, up to without too much difficulty.
C. Comparing complexity measures through cross-correlations
We next used the methods described in section III-D to cross-correlate LZ76, LZ78, CTW(D = 20), BE(W = 10), and BDM. We ran NNSE for time steps (with thermalization steps) and sampled 100,000 strings for each level. The sampled strings need not be unique. We plot the results in Figures 5 and 6.
It is instructive to see how CTW, LZ78, and LZ76 correlate with different levels of block entropy in Figure. 5. There

Fig. 4. Scatter plots of complexity of a string upon a single bit-flip ( ) vs. its original complexity K for (a) LZ78, (b) LZ76, and (c) CTW(D = 20), (d) BE(W = 10), and (e) BDM for strings of length n = 200. First, 100,000 strings are sampled UCW from an NNSE run with 1 billion main steps. Then a single bit is flipped for all strings to obtain a neighboring string, one Hamming distance apart. The new complexity is plotted on the y-axis, and the original complexity on the x-axis. The deviation from x = y indicates how sensitive a complexity measure is to single-bit flips. Brightness indicates density in the figures.
K cross correlations

Fig. 5. LZ76, LZ78, and CTW cross correlations with block entropy with different block widths for 100,000 n = 200 strings. In each column, strings are sampled uniformly from successive complexity levels of the measure indicated at the bottom (left to right: CTW, LZ78, and LZ76). The x-axis gives a string's complexity under the sampling measure, while the y-axis gives its complexity measured by block entropy. The color indicates density with brighter colors indicating a higher density of points. The upper triangular shape in the top row arises because there are many low-complexity strings with high Shannon entropy, such as 0101...01.
are many low complexity strings that have high Shannon entropy BE(W = 1). It is already known that LZ76, LZ78, and CTW can compress sequences from an entropic source. However, we also demonstrate the reverse implication, that low complexities also tend to have low block entropies as the block size becomes larger. Nevertheless, in each case there are strings that these measures consider simple, but which the block entropies consider more complex. We also note an interesting property of CTW, which shows one or more high intensity lines (especially visible with BE(W = 4)) in addition to the x = y line. Further examples of this pattern are shown

Fig. 6. Scatter plots comparing complexity measures BE(W = 10), LZ76, LZ78, CTW(D = 20), and BDM for 100,000 strings of length n = 200, obtained using the NNSE method. In each column, strings are sampled uniformly from successive complexity levels of the measure indicated at the bottom. Each point corresponds to a sampled string. The x-axis gives its complexity under the sampling measure, while the y-axis gives its complexity under the measure shown for that row. Brighter colors indicate regions with higher density. The complexity values of continuous complexity measures, CTW, BE, and BDM, have been discretized.
in Appendix D, see especially Figure 10.
We cross-correlate these measures in Figure 6. One striking result can be seen in the first column from a qualitative analysis. All four more sophisticated measures correlate remarkably well with BE(W = 10). In other words, strings that have low BE(W = 10) block entropy tend to also have low complexities. CTW has the closest relationship to block entropy, which is explained by the fact that CTW does a Bayesian weighting over different context trees and each context tree has a KT prior on its prediction parameters, that closely mirrors Shannon entropy. Note that the gap in LZ78 strings with lower complexities is caused by the same sampling issues we identified earlier in our sensitivity analysis.
A qualitative comparison to the schematic three cases from Figure 1 shows that CTW and LZ76 are closest to case 1, except at high complexities where LZ76 complexities are more spread out across the Gaussian part of LZ76's . It is perhaps somewhat surprising that LZ76 is more closely correlated with CTW than LZ78, even though both LZ76 and LZ78 are deterministic parsing algorithms based on substring matches, whereas CTW is a Bayesian ensemble prediction method.
Perhaps the closest example to case 2 is the comparison between LZ76 and BDM. Strings with low or high complexity according to BDM generally also have low or high complexity

Fig. 7. BDM complexity distribution for , for both the uncorrelated (blue) and correlated (orange) variants. The x-axis is normalized on .
according to LZ76. The converse, however, holds less consistently: there are substantially more strings that LZ76 assigns low complexity but BDM assigns high complexity than vice versa.
LZ78 and BDM are the closest to our case 3: both correlations show upper-triangular form suggesting that these two compression methods uncover different patterns in strings.
D. Block Decomposition Method (BDM)
The final measure we study is BDM [25], because its use of short length 12 strings with their complexity measured by a coding theorem method (CTM) [26] based on small universal Turing machines differs from other complexity measures. The complexity of the full dataset is estimated by aggregating the CTM values of unique blocks according to the formula , where represents each unique block and its number of occurrences.
We applied the NNSE method to two variants of BDM: the standard uncorrelated version and the correlated version, which uses a sliding window and is computationally more expensive. For the uncorrelated variant, we sampled 200 complexity values from the minimum of approximately 30 to the maximum at approximately 580. The correlated variant spans a much wider range of complexities and so we instead sampled 200 geometrically spaced values between 30 and 6600. Since the two methods produce complexity values on very different scales, we linearly rescaled the horizontal axis of each curve to the interval 0–200.
For the standard uncorrelated BDM, we estimated for binary strings of length using NNSE with sampling steps after thermalization steps. The resulting distribution is shown in Figure 7. A striking feature is the presence of pronounced oscillations in . We repeated the calculation for other string lengths and found the same pattern in every case. This suggests that the oscillations are an intrinsic feature of the uncorrelated BDM, most likely arising from its non-overlapping block decomposition, see Appendix E.
We ran NNSE on the correlated BDM using as many steps as for the uncorrelated variant. Correlated BDM does not exhibit any oscillations but it does exhibit a sharp transition near (corresponding to approximately 12 on the normalized axis in Figure 7), where the probability drops by about four orders of magnitude. On either side of this transition, is approximately linear in , although the slopes differ slightly between the two regimes. To the best of our knowledge, these unusual behaviors in the uncorrelated and correlated version of BDM have not been reported previously.
V. DISCUSSION
The principal contribution of this work is methodological. We show that the NNSE provides practical access to exponentially rare regions of complexity space that are effectively inaccessible under uniform random sampling. This makes it possible to estimate the distribution over many orders of magnitude and to study complexity measures across their full range of values rather than only in the neighborhood of typical high-complexity strings. For binary strings, this extends the practical range of exhaustive analysis from lengths of roughly to several hundred or more, while remaining independent of any particular dataset.
While the NNSE can access the expected near exponential scaling of at low K, it also reveals unexpected results, such as reproducible fine-scale structure in CTW and previously unreported oscillations in the default implementation of BDM, and a sharp transition at low complexity in the correlated variant.
A second more general contribution is the introduction of uniform complexity weighting (UCW). Many calculations in information theory use uniform string weighting (USW), where every string is equally likely. Although this is a natural choice, USW is overwhelmingly dominated by strings of near-maximal complexity. Consequently, it can obscure precisely the region of complexity space that is often of greatest practical interest. UCW instead gives equal weight to each complexity level, allowing low- and intermediate-complexity strings to be studied without introducing biases associated with particular datasets. This change in viewpoint can lead to qualitatively different conclusions. For example, the average single-bit sensitivity of every complexity measure increases under UCW, with the largest changes occurring for LZ78 and BDM. These differences between measures are not apparent under USW because low-complexity strings form an exponentially small fraction of sequence space.
UCW also provides a natural framework for comparing complexity measures directly, revealing patterns that would be much harder to observe using conventional sampling approaches. Rather than asking whether two complexity measures perform similarly on a particular corpus, this approach asks whether they assign similar notions of complexity across the entire space of binary strings. For example, the cross-correlations suggest that LZ76 and CTW produce remarkably similar complexity orderings despite arising from rather different principles.
The present work also has several limitations. Although NNSE reproduces exact complexity distributions whenever exhaustive enumeration is feasible, we do not yet have rigorous theoretical bounds on its convergence rate or sampling error. The behavior of LZ78 illustrates this limitation: its comparatively high single-bit sensitivity makes low-complexity regions more difficult to explore and leads to significantly slower convergence than for LZ76 or CTW. Likewise, several empirical observations reported here—including the spike structure of CTW and the oscillatory behavior of uncorrelated BDM—remain theoretically unexplained. These should therefore be regarded as observations generated by systematic computation rather than as fully understood mathematical phenomena.
Our framework is readily extensible. Since the NNSE depends only on the ability to evaluate a local measure, it can be applied to essentially any computable description-length estimator, including modern neural compression methods [27], probabilistic sequence models [28], and future approximations to Kolmogorov complexity. Beyond complexity measures, the same rare-event methodology may prove useful whenever one wishes to characterize exponentially small subsets of very large combinatorial spaces.
While this paper is primarily empirical and methodological, perhaps the most interesting longer-term implication concerns theory itself. Many existing theoretical results concern asymptotic behavior under USW, whereas practical applications often depend on the comparatively small subset of low- and intermediate-complexity strings. It would be valuable to develop analytical results directly for UCW, just as many existing results have been developed for USW.
APPENDIX A COMPLEXITY MEASURES
A. Lempel-Ziv 1976
This complexity measure was introduced by Abraham Lempel and Jacob Ziv [12] and is commonly abbreviated as LZ76. It factorizes a binary string into factors , where each is the shortest prefix of that does not occur as a substring of except as a suffix. Simply put, at each step, LZ76 finds the longest match with the text seen so far and extends it by one new symbol. The LZ76 complexity of a string is the number of factors multiplied by . The product approximates the description length of since each factor can be encoded using bits. LZ76 complexity can be computed in time using suffix automata [29].
B. Lempel-Ziv 1978
Commonly abbreviated as LZ78, this is a dictionary-based compression method introduced by Ziv and Lempel [1]. LZ78 factorizes a binary string into a sequence of factors such that each factor is the shortest prefix of the remaining string that is distinct from all previous factors with . Each factor thus extends a previous one by one bit. LZ78 complexity is given by to approximate description length. LZ78 complexity can be computed in time [30].
C. Context Tree Weighting
Context tree weighting (CTW), first proposed by Willem et al. [13], is a compression method that has good theoretical guarantees and strong practical performance. It calculates a conditional probability distribution for the next bit while parsing the string, using a weighted mixture over context trees to model the string. We obtain the CTW complexity as the total log-loss of these predictions:
CTW has one parameter which determines the maximum depth of the context tree it uses to model the sequence. CTW runs in time [31] and is slower than the LZ family of algorithms in practice.
D. Block Entropy
Block entropy is another way to measure the complexity of strings [16]. Shannon entropy for a general distribution is defined as
For binary strings, , which limits the usefulness of Shannon entropy. However, we can define block entropy by letting for any where is called the block size. We calculate block entropy as
where counts the number of times a substring occurs in the string and divides that to the total number of length substrings in , i.e.
When k = 1, this gives the Shannon entropy of a sequence. The description length of a string is given approximately as
Although choosing larger allows us to examine longer patterns in sequences, it also slows the convergence of block entropy to the true distribution. Since the size of grows exponentially with , we need a length of at least to pack every possible substring in one string. Thus, computing block entropy for short strings will almost always underestimate the true entropy rate of the distribution, but this error vanishes in the infinite limit.
E. Block Decomposition Method
The block decomposition method (BDM) [15] approximates the algorithmic complexity of a string by decomposing it into smaller blocks (up to size 12) for which complexity values have been precomputed via exhaustive enumeration of small Turing machines with 5 states and 2 symbols [26]. The complexity of the full string is then estimated by aggregating the CTM values of unique blocks according to the formula
where ranges over the unique blocks of x and is the number of occurrences of . This approach is meant to enable tractable approximation of Kolmogorov complexity for arbitrarily large discrete datasets while remaining computationally feasible.
The decomposition itself can be carried out in different ways [15]. In the uncorrelated (default) variant, the string is split into non-overlapping blocks of size 12. In the correlated variant, the blocks are instead extracted with a sliding window of shift 1, so that overlapping blocks are counted and correlations across block boundaries are partially taken into account. Since every string of length n then contributes blocks rather than , the correlated BDM values span a considerably larger range, and the computation is correspondingly more expensive.
APPENDIX B
VALIDATION AGAINST EXHAUSTIVE ENUMERATION

Fig. 8. Validation of NNSE against exact complexity distributions at . Top: exact distribution (black) versus the mean NNSE estimate from ten independent -step runs (red). Bottom: geometric mean pointwise relative error for , , and main steps (blue, orange, green), with error bars showing standard deviation across runs in log space. To avoid clutter, we only display every fourth point in the bottom right subplot for CTW errors.
The NNSE method accurately reproduces exact complexity distributions where these can be computed. For , we enumerate all binary strings, compute their LZ76, LZ78, and CTW complexities, and bin the values using the same thresholds as the NNSE runs as shown in Figure 8. This gives the exact probability of each complexity level, directly comparable to the NNSE estimate bin by bin. We run NNSE for 3 main step sizes: , and with as many thermalization steps. For CTW, we now set the thresholds at intervals of 1 and covering the entire complexity range. We also do 10 identical runs for each step size to track the variation between the runs. We average over the runs and display error bars giving standard deviation across runs computed in log space (so that the bars are symmetric on the logarithmic axis).
The estimates track the exact distributions well across the entire range of complexity. As expected, shorter runs show larger scatter. The largest single-run deviations arise in the lowest-probability bins, whose exact mass can be as small as . This behavior is expected, since the innermost nested levels accumulate the error of every conditional ratio in the nested product. The systematic improvement with increasing step count, together with the narrow spread across independent runs at fixed budget, indicates that residual error is dominated by Monte Carlo variance rather than bias. This agreement supports the reliability of NNSE at lengths where direct exhaustive enumeration is infeasible.
APPENDIX C
LZ76 SYMMETRIC
We also studied symmetric LZ76 (SLZ) [3] defined as
which has two nice properties as a complexity measure. First, symmetric LZ76 admits approximately twice as many complexity levels for every string, with values now coming in intervals rather than just for regular LZ76. Second, as it is symmetric, it is better suited for analyzing the sequences which do not have a clear direction in time [3]. The NNSE method can estimate the complexity distribution for with little difference between different runs, as shown in Figure 9. That NNSE is even better suited for symmetric LZ76 than regular LZ76 can be inferred from the fact that the variations between different runs are smaller. The reasons may be due to the lower bit-flip sensitivity of the symmetrized version of LZ76.
APPENDIX D
MORE ON CTW
Since NNSE looks to be particularly well suited for CTW due to its low sensitivity to single-bit flips, we used NNSE to examine infinite-depth CTW in even more detail than the other complexity measures by separating the space into even more complexity levels at distance apart rather than as in the earlier experiments, where . We looked at infinite-depth CTW, despite the increased computational cost, to avoid any possible patterns that could stem from choosing a particular depth. We did 4 identical runs of NNSE with 10M main steps and 1M thermalization steps per run. And the resulting values were all within 10% of each other across the entire range of complexities up to typical strings with , with the variation being less than 1% for most complexity values. We show the estimated distribution obtained from one run in Figure 10.
A linear relationship between and was already expected from earlier results, but we also noticed regularly spaced spikes across the entire range of . The spacing

Fig. 9. Complexity distribution for symmetric LZ76 obtained via NNSE with 8 runs per length, 10M main steps and 1M thermalization steps per run. Probability vs. symmetric LZ76 complexity, calculated using the NNSE method, for different string lengths chosen at increments. The horizontal lines at , correspond to the probability of the two simplest strings for length . Each length contains 8 lines for independent runs, which helps illustrate statistical variation between runs.

Fig. 10. Complexity distribution for infinite-depth CTW obtained via NNSE for 10M main steps and 1M thermalization steps per run. Note the mostly linear relation between and with small regularly spaced spikes across the entire range of .
between the spikes as well as their magnitudes were consistent across runs as shown in Figure 11. This is also consistent with the spikes seen for CTW for the very short string length obtained via exhaustive enumeration as shown in Figure 8, supporting our belief that these spikes are not a result of experimental error resulting from NNSE, although we do not know the reason for these spikes. That NNSE is able to uncover such fine-grained patterns illustrates the usefulness of this method for studying complexity measures.
In addition, we also did 4 NNSE runs of 1M steps each for with for infinite-depth CTW. We observed that both the linear relationship between

Fig. 11. Deviations of infinite-depth CTW complexity distribution, obtained via NNSE, from the best-fit line show spikes at certain complexity values. Both the spacing between spikes and the magnitudes of the spikes seem to increase as K goes to 0. Two separate runs plotted to show agreement across different runs.

Fig. 12. Complexity distribution for infinite-depth CTW obtained via NNSE for 1M main steps and 100K thermalization steps per run for . Values with are omitted. 4 runs plotted for each but the different runs agree so well there's no visible deviation between them. Note the mostly linear relation between and with small regularly spaced spikes across the entire range of .

Fig. 13. Deviations of infinite-depth CTW complexity distribution, obtained via NNSE, from the best-fit line at selected values. The values are scaled to show the spikes clearly. The number of spikes seems to increase proportionally to with the spacing between them being roughly constant with respect to normalized .

Fig. 14. CTW vs. block entropy with small widths for length strings sampled via the NNSE method, with a brighter color indicating higher density. Here, the values are CTW complexity and values are block entropy. These plots reveal a number of patterns, including a concentration along the axis, where both measures give the same values, and secondary lines at higher values of block entropy, where there is a strong correlation. The density of points is on a logarithmic scale. We observe peaks in the scatter plots. We use logarithmic intensity to make the peaks more apparent. values are CTW complexity and values are block entropy.
and and the spikes in were consistent across different lengths and different runs agreed with each other very well despite the small number of main steps as shown in Figure 12 and Figure 13. Since CTW has very low UCW sensitivity, NNSE appears to converge very quickly even for large values.
We also investigated CTW's relation to block entropy in more detail. One might expect that the block entropies of strings at different CTW complexities have a relatively uniform distribution. But we observe that strings at different complexities are much more likely to have some values of block entropy than other values. We find unexpected peaks in the scatter plots in Figure 14. The line is clearly visible but there are also additional lines with , or depending on the width of the blocks. The existence of such peaks, to our knowledge, is a novel finding, and is also unique to CTW (these lines are not apparent for LZ76/78). This shows that NNSE not only shows correlations but also fine-grained information for each individual complexity level. These additional lines would be completely invisible if we had sampled strings from the typical range of high complexity or even if we had found only the typical strings at each complexity level.

Fig. 15. BDM complexity versus the number of unique 12-bit blocks for length-200 strings sampled from an NNSE run with uncorrelated BDM. Horizontal violins show the BDM distribution at each unique-block count. Points mark the mean BDM; whiskers are standard deviations. The dashed line is an ordinary least-squares fit of unique-block count against BDM, with the coefficient of determination given in the legend.
APPENDIX E
APPENDIX: BDM DISTRIBUTION
What explains the bumps seen in Figure 7 for uncorrelated BDM? We believe it's a result of how BDM splits a string into blocks of size 12. Looking at equation 14, one can see that when there are 10 blocks, the increase in complexity as a result of repeating a block is far less than that of adding a unique block as CTM values range from around 25.6 to 37.5 for length 12 binary strings, which is far greater than the values of small integers up to 16. A string of length 200 can be split into at most 16 non-overlapping blocks of size exactly 12 and thus, there can be anywhere from 1 to 16 unique CTM values for length 12 substrings. This is consistent with the 15 bumps in Figure 7 plus the one flat bump between (normalized value). We use NNSE to UCW sample 10,000 strings and count the number of unique non-overlapping length 12 substrings, as shown in Figure 15. We find a very strong correlation between the number of unique blocks and BDM complexity (). Oscillatory behavior can also be reproduced in many other ways, for example, sliding a fixed pattern through a string and measuring with BDM.
This "bumpy" behavior helps explain why NNSE is harder to converge for BDM than for some other measures: Bumps are hard to escape via single bit flips. Escaping each bump requires large jumps and the proportion of strings with neighbors that have lower complexity is very low, as shown in Figure 16.
APPENDIX F
APPENDIX: CONVERGENCE AND ANALYSIS OF NNSE
Let and be integers, and suppose
We consider fully populated states. Define , and let be the uniform distribution on , so for .
We write for the transition matrix of the NNSE on the state space and ignore the mutation-skip-probability for now, as in [9]. We also assume that all the have been filled or were initialized from . In our algorithm, only the top level is filled initially, but through the mutation and swap steps, eventually all levels are filled. Each time step first mutates every and then runs the exchange sweep (Algorithm 2), so factorizes as
where is the stochastic matrix of the mutation on and is the permutation matrix that swaps and whenever . We extend each factor to the full state space by letting it act as the identity on the other coordinates. The sweep visits in increasing order, so comes first in the product.
Both and are symmetric. For a single bit flip, whenever differ in one bit, and is the fraction of bit flips of that land in and are therefore rejected. All other entries are zero, so is symmetric. The swap is an involution: applying it twice

Fig. 16. Scatter plot of complexity of a string upon a single bit-flip () vs. its original complexity for BDM (uncorrelated) for strings of length . First, 100,000 strings are sampled UCW from an NNSE run with 1 billion main steps. Then a single bit is flipped for all strings to obtain a neighboring string, one Hamming distance apart. The new complexity is plotted on the y-axis, and the original complexity on the x-axis. The three linear lines are a result of BDM's wobbly behavior and the small number of points with being one level below indicates that it's hard for NNSE to find strings with low complexity and converge to the true distribution .

Fig. 17. Comparison of the original NNSE vs. lazy NNSE with mutation-skip-probability . Displayed in the left and center columns are the estimates, and their errors, for four runs per each variant of NNSE, with 10M thermalization steps and 100M main steps. In the right column, we display their mean estimates for and their mean errors. The original NNSE variant ( ) clearly has a lower error rate across the entire complexity range. Note that since all the runs underestimate at low , we used rather than to measure error and show the underestimation of more clearly. Since one lazy run estimated the lowest complexity's to be 0, that line goes to infinity in the plots
returns to where it started. Its matrix has 1 on the diagonal for every state with , has entry 1 at for every , and is zero elsewhere, so it is symmetric too.
Each factor is therefore doubly stochastic: its rows and columns sum to one. Their product is also doubly stochastic, so . Thus the uniform distribution is stationary for the original NNSE. We cannot prove that this transition matrix is ergodic and irreducible for arbitrary nested sets because it always attempts to flip a single bit in each . For some spaces, this can lead to periodic behavior and break the connectedness of under . Thus for the rest of this section, we analyze NNSE with a small change to the mutation step compared to the original paper [9].
This makes it possible to prove ergodicity, but in our experiments, we notice no meaningful difference between the two methods, except that the modified NNSE, not surprisingly, takes slightly longer to converge, as shown in Figure 17, where we compared both methods for LZ78, the complexity measure where NNSE struggled the most. In practice we use NNSE with either a very low probability of the lazy step, or even the original version in the limit of no lazy steps to maximise the efficiency. In future work it will be interesting to find systems (that are not contrived) for which the lazy variant provides better converged outcomes.
For the rest of this section, we assume a lazy NNSE algorithm, i.e. . At every time step, each level independently skips its mutation with probability and otherwise makes the original proposal. The exchange sweep is unchanged. We continue to write , M and P for the resulting lazy transition matrices. Each factor remains doubly stochastic, so remains stationary.
Theorem 1. Lazy NNSE is irreducible and aperiodic, hence ergodic, on . Its unique stationary distribution is , and
Proof. With positive probability all mutations are skipped, so a step performs only the exchange sweep. Since the sweep is a permutation of the finite set , its inverse can also be performed by repeating such steps.
We can therefore mutate only and then undo the subsequent sweep. Since is connected under single-bit flips, this allows to be changed to any chosen element of , with all lower coordinates restored at the end. Both this change and the sweep can be reversed by positive-probability paths.
Fix and define . Starting from any population, repeatedly set and perform a sweep. After repetitions,
Indeed, the increasing-index sweep moves the existing copies down one level and places the new copy at level . All these swaps are accepted because belongs to every level. After repetitions, setting once more gives . Since the construction can be reversed, every state communicates with , proving irreducibility.
At , skipping all mutations leaves the population unchanged even after the sweep. Hence , proving aperiodicity. Uniqueness of the stationary distribution and convergence to it now follow from the finite-state convergence theorem [20, Sec. 2.1].
Since is finite, this implies a finite mixing time . The theorem above also implies that starting from any seed with unfilled for , we will fill all levels eventually. Suppose we have only filled levels to up until some time but . By the theorem above, is also ergodic on just the space . Thus, after some finite amount of time, will be some element of since we assume all nested sets are nonempty. At that point, the swap operation will just copy to and thus all levels to will be filled. Thus, by induction, all levels 0 to will eventually be filled.
A. Accuracy of the size estimates
Assume , since for the only set size is already known. Write , so . Let be the population after iterations, starting from any fully populated state. For and , define
After thermalization iterations, retain every subsequent iteration and estimate
(19)
The empty product is one, so . These are the NNSE estimates . Define their maximum relative error by
We write and for probability and expectation when the chain starts from its stationary distribution . Under , coordinate is uniform on , so . The ergodic theorem therefore gives and almost surely as , for any fixed [20, Thm. 2.1]. Since and , we have . Bounded convergence also gives .
Suppose that, for a fixed constant ,
For the complexity measures we looked at, we do not know a priori if there is a nontrivial which bounds but when picking complexity values that are close together, we observe that the ratios are not too low when using NNSE to estimate their sizes. Assuming and the separation between complexity values is , we would expect that . This motivates our stated choice of assumption but does not constitute a proof. The observed linear relationship between and in the NNSE runs can justify this assumption a posteriori for different complexity measures but also does not constitute a proof.
For two probability distributions on , define their total variation distance by
Define
(22)
Thus is the mixing time of the full population chain, measured in complete NNSE iterations. Submultiplicativity of gives
[20, Lem. 2.20].
Theorem 2. For , the estimates satisfy
from any fully populated initial state using a thermalization and sample budget of orders
(25)
with sufficiently large universal constants.
Proof. First suppose the samples are stationary. Define for and put . The Markov-chain Chernoff-Hoeffding bound [21, Thm. 3] gives a universal constant such that
This bound applies to the full, possibly nonreversible chain and uses to bound the mean of .
Expanding using (20) and (19) and applying the triangle inequality gives
(27)
where the last inequality is convexity of the exponential. In particular, no independence between the ratio estimates is needed.
For , integration of (26) gives
(28)
Here we split the integral at u = 1, complete the square in the first part, and integrate the exponential in the second part. Therefore,
The stated sample budget T makes this at most .
For an arbitrary initial state, choose so that , using (23). Generating the next samples cannot increase total variation, so their joint distribution is within of that obtained under stationarity. Since , it follows that
This proves that the stated choices of and T ensure . The resulting total iteration budget is
REFERENCES
[1] J. Ziv and A. Lempel, “Compression of individual sequences via variable-rate coding,” IEEE transactions on Information Theory, vol. 24, no. 5, pp. 530–536, 1978.
[2] A. Doğanaksoy and F. Gölöglu, “On Lempel-Ziv complexity of sequences,” in Sequences and Their Applications–SETA 2006, ser. Lecture Notes in Computer Science, vol. 4086. Berlin, Heidelberg: Springer, 2006, pp. 180–189.
[3] K. Dingle, C. Q. Camargo, and A. A. Louis, "Input-output maps are strongly biased towards simple outputs," Nature communications, vol. 9, no. 1, p. 761, 2018.
[4] K. Dingle, G. V. Pérez, and A. A. Louis, "Generic predictions of output probability based on complexities of inputs and outputs," Scientific reports, vol. 10, no. 1, pp. 1–9, 2020.
[5] C. Mingard, J. Skalse, G. Valle-Pérez, D. Martínez-Rubio, V. Mikulik, and A. A. Louis, "Neural networks are a priori biased towards boolean functions with low entropy," arXiv preprint arXiv:1909.11522, 2019.
[6] I. G. Johnston, K. Dingle, S. F. Greenbury, C. Q. Camargo, J. P. Doye, S. E. Ahnert, and A. A. Louis, "Symmetry and simplicity spontaneously emerge from the algorithmic nature of evolution," Proceedings of the National Academy of Sciences, vol. 119, no. 11, p. e2113883119, 2022.
[7] C. Mingard, H. Rees, G. Valle-Pérez, and A. A. Louis, “Deep neural networks have an inbuilt occam’s razor,” Nature Communications, vol. 16, no. 1, p. 220, 2025.
[8] M. Li and P. Vitanyi, An introduction to Kolmogorov complexity and its applications. Springer-Verlag New York Inc, 2008.
[9] T. Jorg, O. Martin, and A. Wagner, “Neutral network sizes of biological RNA molecules can be computed and are not atypically small,” BMC bioinformatics, vol. 9, no. 1, p. 464, 2008.
[10] N. Merhav and M. Feder, “Universal prediction,” IEEE Transactions on Information Theory, vol. 44, no. 6, pp. 2124–2147, 1998.
[11] N. Merhav and A. Cohen, “Universal randomized guessing with application to asynchronous decentralized brute-force attacks,” IEEE Transactions on Information Theory, vol. 66, no. 1, pp. 114–129, 2019.
[12] A. Lempel and J. Ziv, “On the complexity of finite sequences,” IEEE Transactions on information theory, vol. 22, no. 1, pp. 75–81, 1976.
[13] F. M. Willems, Y. M. Shtarkov, and T. T. Tjalkens, “The context-tree weighting method: Basic properties,” IEEE transactions on information theory, vol. 41, no. 3, pp. 653–664, 1995.
[14] F. M. J. Willems, “The context-tree weighting method: Extensions,” IEEE Transactions on Information Theory, vol. 44, no. 2, pp. 792–798, 1998.
[15] H. Zenil, F. Soler-Toscano, N. A. Kiani, S. Hernández-Orozco, and A. Rueda-Toicen, “A decomposition method for global evaluation of Shannon entropy and local estimations of algorithmic complexity,” arXiv preprint arXiv:1609.00110, 2016.
[16] T. Cover and J. Thomas, Elements of information theory. John Wiley and Sons, 2006.
[17] F. Kaspar and H. Schuster, “Easily calculable measure for the complexity of spatiotemporal patterns,” Physical Review A, vol. 36, no. 2, pp. 842–848, 1987.
[18] R. Begleiter, R. El-Yaniv, and G. Yona, “On prediction using variable order markov models,” Journal of Artificial Intelligence Research, vol. 22, pp. 385–421, 2004.
[19] J. Skilling, “Nested sampling for general bayesian computation,” Bayesian Analysis, vol. 1, no. 4, pp. 833–859, 2006.
[20] D. Aldous and J. A. Fill, “Reversible Markov chains and random walks on graphs,” 2002, unfinished monograph, recompiled 2014, available at http://www.stat.berkeley.edu/$sim$aldous/RWG/book.html.
[21] K.-M. Chung, H. Lam, Z. Liu, and M. Mitzenmacher, “Chernoff-Hoeffding bounds for Markov chains: Generalized and simplified,” in 29th International Symposium on Theoretical Aspects of Computer Science (STACS 2012), ser. Leibniz International Proceedings in Informatics (LIPIcs), C. Dürr and T. Wilke, Eds., vol. 14. Dagstuhl, Germany: Schloss Dagstuhl-Leibniz-Zentrum für Informatik, 2012, pp. 124–135. [Online]. Available: https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.STACS.2012.124
[22] E. Estevez-Rams, R. Lora Serrano, B. Aragón Fernández, and I. Brito Reyes, “On the non-randomness of maximum lempel ziv complexity sequences of finite size,” Chaos: An Interdisciplinary Journal of Nonlinear Science, vol. 23, no. 2, p. 023118, June 2013.
[23] J. S. Vitter, “Random sampling with a reservoir,” ACM Transactions on Mathematical Software, vol. 11, no. 1, pp. 37–57, 1985.
[24] P. Jacquet and W. Szpankowski, “Asymptotic behavior of the lempel-ziv parsing scheme and digital search trees,” Theoretical Computer Science, vol. 144, no. 1-2, pp. 161–197, 1995.
[25] H. Zenil, F. Soler-Toscano, K. Dingle, and A. A. Louis, “Correlation of automorphism group size and topological properties with program-size complexity evaluations of graphs and complex networks,” Physica A: Statistical Mechanics and its Applications, vol. 404, pp. 341–358, 2014.
[26] F. Soler-Toscano, H. Zenil, J.-P. Delahaye, and N. Gauvrit, “Calculating Kolmogorov complexity from the output frequency distributions of small Turing machines,” PLoS ONE, vol. 9, no. 5, p. e96223, 2014.
[27] J. Ballé, V. Laparra, and E. P. Simoncelli, “End-to-end optimized image compression,” in International Conference on Learning Representations (ICLR), 2017. [Online]. Available: https://arxiv.org/abs/1611.01704
[28] M. V. Mahoney, “Adaptive weighing of context models for lossless data compression,” Florida Institute of Technology, Department of Computer Science, Tech. Rep. CS-2005-16, 2005. [Online]. Available: https://repository.fit.edu/ces_faculty/166/
[29] A. Blumer, J. Blumer, A. Ehrenfeucht, D. Haussler, M. T. Chen, and J. Seiferas, “The smallest automaton recognizing the subwords of a text,” Theoretical Computer Science, vol. 40, pp. 31–55, 1985.
[30] Y. Nakashima, T. I. S. Inenaga, H. Bannai, and M. Takeda, “Constructing LZ78 tries and position heaps in linear time for large alphabets,” Information Processing Letters, vol. 115, no. 9, pp. 655–659, 2015.
[31] J. Veness, K. S. Ng, M. Hutter, W. Uther, and D. Silver, “A monte-carlo AIXI approximation,” Journal of Artificial Intelligence Research, vol. 40, pp. 95–142, 2011.