3 ms·
> The most obvious upper bound for K(X) is obviously the length N of X itself. This seems false as you'd have to account for the header of the program. Otherwi
by amelius 6y ago
> The most obvious upper bound for K(X) is obviously the length N of X itself.
This seems false as you'd have to account for the header of the program. Otherwise how can you tell programs and texts apart?
- shakow 6y ago> how can you tell programs and texts apart? By opening them either with a text editor or a compiler/interpreter. Homoiconic languages have no problem being edited and run.
- fighterpilot 6y agoWhat about the print or return statement?
- chriswarbo 6y agoExpression-oriented languages don't need explicit returns. However, your point is absolutely correct: there must be a constant overhead, even if it's just a single bit; otherwise there would be no way to tell what should be treated as a program and what should be treated as a literal string/value (even if it just-so-happens to be a valid program). Since this overhead is constant, it becomes negligible as the sequence length increases. Yet we should take it into account, e.g. by saying the upper bound is 'N + O(1)'.
- laszlokorte 6y agoIn Kolmogorov complexity you typically do not care about constant offsets. You assume you are free to choose the language to implement the program in and in the worst case if someone else choses another language you just have to prefix all your programs with an interpreter of your language written in the other language. The size of that interpreter might be huge but it‘s a constant length for all your programs so you dont care. Same for program vs literal: just include one prefix symbol in your language to mark your program as either literal output or real program. That makes all your programs one symbol longer but as you only care about relative program size inside your language you do not care.
- tromp 6y agoYes, you need some overhead for specifying string literals. For a binary string x of length n, you have KS(x) <= n + O(1) for simple Kolmogorov complexity (where one program can be a prefix of another), and KP(x) <= n + KP(n) + O(1), for the prefix Kolmogorov complexity, in which programs must be prefix-free. In this paper [1] of mine, you can find explicit definitions of KS and KP, as well as the theorems above, with specific constants instead of O(1). [1] https://tromp.github.io/cl/LC.pdf https://tromp.github.io/cl/LC.pdf