INFO:SHIA   

 

^

 

Shia (2003-03-02)

Entropy calculator.

Shia computes entropy (randomness) in files.  File names are supplied
through command line.

The higher the entropy, the more random the file is.  This information
can be used to predict how big a file will be when compressed with
Huffman encoding (encoder/decoder are included with this archive):

	C = E * S / 8

	C = compressed size (bytes)
	E = entropy (bits), as printed by Shia
	S = original size (bytes).

Which is somewhat interesting but mostly useless ^_^;  Shia is part of
my continued search for small and semi-useful programs.  Actually when
I am done with it, I still have a lot of space left (~100 bytes), so I
embedded a perl program for good measure :)  The perl code only prints
out the current local time -- even smaller code and even more useless.

Template is Shia from Pita Ten.  Shia brings chaos to others, shia.c
measures chaos ^_^;

--
omoikane@uguu.org - http://uguu.org/

  RAR ZIP /
2025-08-26