Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

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 lurking in the Monastery: (4)
As of 2015-11-28 10:38 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (741 votes), past polls