Incompressible string
An incompressible string is a string with Kolmogorov complexity equal to its length, so that it has no shorter encodings.[src] The pigeonhole principle can be used to be prove that for any lossless compression algorithm, there must exist many incompressible strings.[src]
An incompressible string is a string with Kolmogorov complexity equal to its length, so that it has no shorter encodings.[src] The pigeonhole principle can be used to be prove that for any lossless compression algorithm, there must exist many incompressible strings.[src] ==Example== Suppose we have the string 12349999123499991234 , and we are using a compression method that works by putting a special character into the string (say @ ) followed by a value that points to an entry in a lookup table (or dictionary) of repeating values.[src] Let us imagine we have an algorithm that examines the string in 4 character chunks.[src] Looking at our string, our algorithm might pick out the values 1234 and 9999 to place into its dictionary.[src] Let us say that 1234 is entry 0 and 9999 is entry 1.[src] Now the string can become: @0@1@0@1@0 This string is much shorter, although storing the dictionary itself will cost some space.[src] However, the more repeats there are in the string, the better the compression will be.[src] Our algorithm can do better though, if it can view the string in chunks larger than 4 characters.[src] Then it can put 12349999 and 1234 into the dictionary, giving us: @0@0@1 This string is even shorter.[src] Now consider another string: 1234999988884321 This string is incompressible by our algorithm.[src] The only repeats that occur are 88 and 99.[src] If we were to store 88 and 99 in our dictionary, we would produce: 1234@1@1@0@04321 This is just as long as the original string, because our placeholders for items in the dictionary are 2 characters long, and the items they replace are the same length.[src] Hence, this string is incompressible by our algorithm.[src] ==References==[src]
17 sentences · 17 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Incompressible string." encyclopegia.org, 2025, https://encyclopegia.org/wiki/incompressible-string. Accessed 06 December 2026.
Chicago
"Incompressible string." encyclopegia.org. Accessed December 6, 2026. https://encyclopegia.org/wiki/incompressible-string.
APA
encyclopegia.org. (2025). Incompressible string. Retrieved December 6, 2026, from https://encyclopegia.org/wiki/incompressible-string
Accessed December 6, 2026 · CC BY-SA 4.0 · citation page · JSON