Editing
Kolmogorov Complexity
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== <span style="color: #FFFFFF;">Applying</span> == '''Modeling 'The Complexity Gap' (Comparing pattern vs. randomness):''' <syntaxhighlight lang="python"> def estimate_complexity(string): """ Very rough estimate: The length of the 'Compressed' version. (Real Kolmogorov complexity is uncomputable, but compression is a good real-world proxy). """ import zlib compressed = zlib.compress(string.encode()) return len(compressed) # Patterned string: 1000 'A's pattern = "A" * 1000 # Random string: 1000 random chars import random, string as s random_str = ''.join(random.choices(s.ascii_letters, k=1000)) print(f"Patterned 'Complexity': {estimate_complexity(pattern)}") print(f"Random 'Complexity': {estimate_complexity(random_str)}") # The random string is 'More Complex' because it can't be 'Explained' away. </syntaxhighlight> ; Complexity Landmarks : '''The digits of Pi''' β A classic puzzle: it looks random (high Shannon entropy), but it has a very simple rule (low Kolmogorov complexity). : '''Monkey on a Typewriter''' β If a monkey typed "Hamlet," it would be a miracle. But Kolmogorov complexity says the "Code" for Hamlet is still much shorter than a random string of the same length. : '''The Solomonoff Induction''' β A theory of "Universal AI" that uses Kolmogorov complexity to predict the future by finding the simplest possible explanation for the past. : '''Minimal Description Length (MDL)''' β A technique in statistics that picks the "Best Model" by finding the one that compresses the data the most. </div> <div style="background-color: #8B4500; color: #FFFFFF; padding: 20px; border-radius: 8px; margin-bottom: 15px;">
Summary:
Please note that all contributions to BloomWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
BloomWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information