HPC Tier Module
Algorithmic Complexity & Compression Dynamics
Measure the information-theoretic complexity of any sequence - exactly, in your browser.
Worked example: Random-looking binary (high complexity)
Inputs
| Symbol sequence (string) | 0110100110010110100101100110100110010110011010010110100110010110 |
| Max block size k (block / conditional entropy) | 8 |
| Second sequence for NCD (optional) | |
Result
n = 64, alphabet b = 2: H0 = 1.0000 bits/symbol (of max log2(b) = 1.0000); LZ76 c(S) = 11 (C_LZ = 1.0313); LZ77 compressed 117 bits vs raw 64 (ratio 1.828, an UPPER BOUND on Kolmogorov complexity - true K is uncomputable); MDL L = 90.0 bits. GeoNum entropy-summation conditioning verdict VALID (worst drift 1.19/2048) - a conditioning signal, not extra precision. This computes complexity MEASURES on your data - it does NOT train, learn, or demonstrate grokking.
| Sequence length n | 64 |
| Alphabet size b | 2 {0 1} |
| Shannon entropy H0 (bits/symbol) | 1.000000 of max 1.0000 |
| Order-0 redundancy 1 - H0/log2(b) | 0.0000 |
| Conditional rate h(k=8) (bits/symbol) | 0.164857 |
| LZ76 complexity c(S) | 11 |
| Normalized LZ C_LZ = c log_b(n)/n | 1.031250 |
| LZ77 compressed bits (Kolmogorov UPPER BOUND) | 117 bits (raw 64; 6 literals, 7 matches) |
| LZ77 compression ratio (bits/raw) | 1.8281 |
| LZW compression ratio (secondary, bits/raw) | 1.3906 |
| MDL description length L = model + n*H0 | 90.00 bits (model 26 + data 64.00) |
| Max GeoNum drift (shades) | 1.19 / 2048 |
Computed by Algorithmic Complexity & Compression Dynamics v1.0.0, the same plugin code the GDBS app runs, when this page was built. To run it on your own figures, open it in GDBS HPC.
The problem
Everyone reaches for complexity intuitively - how random, how compressible, how structured a signal is - but it is rarely computed rigorously. An ad-hoc gzip in a spreadsheet or a black-box library hands you a number with no provenance and no way to check it.
The local-first solution
This tool computes the actual information-theoretic complexity measures - Shannon and block entropy, exact Lempel-Ziv production count, compression-based Kolmogorov upper bounds, Normalized Compression Distance, and two-part MDL - deterministically in your browser, each one checkable against a closed-form or known value. No data leaves the device.
What it does
Shannon order-0 entropy, order-k block entropy, and the conditional entropy rate
Exact Lempel-Ziv (LZ76) production count and normalized LZ complexity
Pure-JS compressors (LZ77 + LZW) as a Kolmogorov-complexity upper bound, never the uncomputable true value
Normalized Compression Distance (NCD) between two sequences
Two-part Minimum Description Length (MDL) code length
Charts: complexity vs structure sweep, and block-entropy convergence to the entropy rate
Honest scope
Compression-based complexity is an UPPER BOUND on Kolmogorov complexity (which is uncomputable), never the true value; block and conditional entropies are finite-sample estimators flagged as such. It computes the complexity measures from DeMoss et al. 2024 (arXiv:2412.09810) on data you provide - it does not train, learn, or demonstrate grokking.
Authorities cited
- DeMoss, B., Sapora, S., Foerster, J., Hawes, N., Krueger, D. (2024). The Complexity Dynamics of Grokking. arXiv:2412.09810. - Tracks description-length / compression complexity over training and relates the generalization transition to a rise-then-fall in algorithmic complexity. This plugin computes the same FAMILY of deterministic measures; it does NOT train or demonstrate grokking.
- Lempel, A., Ziv, J. (1976). On the Complexity of Finite Sequences. IEEE Trans. Information Theory IT-22(1), 75-81. DOI 10.1109/TIT.1976.1055501. - The LZ76 production-count complexity c(S).
- Kaspar, F., Schuster, H. G. (1987). Easily calculable measure for the complexity of spatiotemporal patterns. Phys. Rev. A 36(2), 842-848. DOI 10.1103/PhysRevA.36.842. - The exhaustive-history algorithm realizing LZ76 complexity used here.
- Ziv, J., Lempel, A. (1977). A Universal Algorithm for Sequential Data Compression. IEEE Trans. Information Theory IT-23(3), 337-343. DOI 10.1109/TIT.1977.1055714. - The LZ77 sliding-window back-reference compressor; its (distance, length) matches give the NCD metric property C(x|x) ~ C(x), used here as the headline compression cost.
- Welch, T. A. (1984). A Technique for High-Performance Data Compression. IEEE Computer 17(6), 8-19. DOI 10.1109/MC.1984.1659158. - The LZW dictionary compressor (LZ78 family) implemented in pure JS as the secondary compression-ratio readout.
- Ziv, J., Lempel, A. (1978). Compression of Individual Sequences via Variable-Rate Coding. IEEE Trans. Information Theory IT-24(5), 530-536. DOI 10.1109/TIT.1978.1055934. - The LZ78 incremental-parsing basis of LZW.
- Cover, T. M., Thomas, J. A. (2006). Elements of Information Theory, 2nd ed. Wiley. Sec. 2 (entropy), Thm 4.2.1 (entropy rate, conditional entropy non-increasing toward the rate). DOI 10.1002/047174882X.
- Li, M., Vitanyi, P. (2008). An Introduction to Kolmogorov Complexity and Its Applications, 3rd ed. Springer. Ch. 2-3 - Kolmogorov complexity K is UNCOMPUTABLE; any concrete compressor C upper-bounds K up to an additive constant. DOI 10.1007/978-0-387-49820-1.
- Cilibrasi, R., Vitanyi, P. M. B. (2005). Clustering by Compression. IEEE Trans. Information Theory 51(4), 1523-1545. DOI 10.1109/TIT.2005.844059. - The Normalized Compression Distance NCD as a practical proxy for the (uncomputable) Normalized Information Distance.
Get an email when tools like this one change
Leave your email and we will tell you when we add or update Numerics & Tools tools like this one, at most once a month.
We email you once to confirm. After that, unsubscribe from any issue in one click. Your address goes to VaultSync only (privacy).
Measure complexity you can verify
Run it on your own sequences in the browser, save runs to Sandbox, and route the readout into a Worklog case - nothing uploaded to anyone's cloud.