fbpx
Wikipedia

Incompressible string

An incompressible string is a string with Kolmogorov complexity equal to its length, so that it has no shorter encodings.[1]

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. Let's imagine we have an algorithm that examines the string in 4 character chunks. Looking at our string, our algorithm might pick out the values 1234 and 9999 to place into its dictionary. Let's say 1234 is entry 0 and 9999 is entry 1. Now the string can become:

@0@1@0@1@0

Obviously, this is much shorter, although storing the dictionary itself will cost some space. However, the more repeats there are in the string, the better the compression will be.

Our algorithm can do better though, if it can view the string in chunks larger than 4 characters. Then it can put 12349999 and 1234 into the dictionary, giving us:

@0@0@1

Even shorter. Now consider another string:

1234999988884321

This string is incompressible by our algorithm. The only repeats that occur are 88 and 99. If we were to store 88 and 99 in our dictionary, we would produce:

1234@1@1@0@04321

Unfortunately 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. Hence, this string is incompressible by our algorithm.

References

  1. ^ V. Chandru and M.R.Rao, Algorithms and Theory of Computation Handbook, CRC Press 1999, p29-30.

incompressible, string, this, article, needs, additional, citations, verification, please, help, improve, this, article, adding, citations, reliable, sources, unsourced, material, challenged, removed, find, sources, news, newspapers, books, scholar, jstor, jul. This article needs additional citations for verification Please help improve this article by adding citations to reliable sources Unsourced material may be challenged and removed Find sources Incompressible string news newspapers books scholar JSTOR July 2019 Learn how and when to remove this template message An incompressible string is a string with Kolmogorov complexity equal to its length so that it has no shorter encodings 1 Example EditSuppose 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 Let s imagine we have an algorithm that examines the string in 4 character chunks Looking at our string our algorithm might pick out the values 1234 and 9999 to place into its dictionary Let s say 1234 is entry 0 and 9999 is entry 1 Now the string can become 0 1 0 1 0Obviously this is much shorter although storing the dictionary itself will cost some space However the more repeats there are in the string the better the compression will be Our algorithm can do better though if it can view the string in chunks larger than 4 characters Then it can put 12349999 and 1234 into the dictionary giving us 0 0 1Even shorter Now consider another string 1234999988884321This string is incompressible by our algorithm The only repeats that occur are 88 and 99 If we were to store 88 and 99 in our dictionary we would produce 1234 1 1 0 04321Unfortunately 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 Hence this string is incompressible by our algorithm References Edit V Chandru and M R Rao Algorithms and Theory of Computation Handbook CRC Press 1999 p29 30 Retrieved from https en wikipedia org w index php title Incompressible string amp oldid 997077473, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.