Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: Re (tilly) 7: What data is code?

by clemburg (Curate)
on Nov 23, 2001 at 15:34 UTC ( #127096=note: print w/ replies, xml ) Need Help??

in reply to Re (tilly) 7: What data is code?
in thread What data is code?

(length(compress($text)) < 0.8*length($text))

Is the magic number "0.8" coming from intuition/experience/choice of an example?

Or do you have some reference or pointers for that threshold (not that I expect this in such an answer, it would just be nice to know where it comes from)?

Christian Lemburg
Brainbench MVP for Perl

Comment on Re: Re (tilly) 7: What data is code?
Download Code
Replies are listed 'Best First'.
Re (tilly) 9: What data is code?
by tilly (Archbishop) on Nov 23, 2001 at 21:05 UTC

    I just wanted to pick a number between what I expected to see with normal text and encrypted. Theoretically there should be no compression. Realistically people "encrypt" things with xor, and then you will be able to get some compression, just not very much.

    Fixed typo that mkmcconn caught, and thinko that blakem pointed out.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://127096]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (11)
As of 2015-10-09 13:36 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (242 votes), past polls