Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: OT Best way to compress files with digits
Date: Sat, 01 Nov 2014 20:47:40
Message-Id: 545546D3.3030005@gmail.com
In Reply to: Re: [gentoo-user] Re: OT Best way to compress files with digits by meino.cramer@gmx.de
1 On 01/11/2014 19:59, meino.cramer@×××.de wrote:
2 > James <wireless@×××××××××××.com> [14-11-01 18:16]:
3 >> <meino.cramer <at> gmx.de> writes:
4 >>
5 >>
6 >>> I have a lot of files with digits of PI. The digits
7 >>> are the characters of 0-9. Currently they are ZIPped,
8 >>> which I think is not the best way to do that.
9 >>
10 >> Hello Meino,
11 >>
12 >> It's a bit of effort, but the world's recognized authority
13 >> on algorithms is Don Knuth. [1] He's old now, but his
14 >> pioneering attempt at categorizing most algorithms:
15 >> "The art of computer programming" and his MMIX alogrithm
16 >> implementations (kinda like assembler) are certainly
17 >> part of many first-step research efforts on algorithms
18 >> and their implementations.
19 >>
20 >> It's not a cookbook; more of a scholarly (high_brow) reference,
21 >> just to supplement all the good postings by your peers on gentoo user.
22 >>
23 >> Alan may loan you his copy?
24 >> (ha ha ha)?
25 >>
26 >>
27 >>
28 >> hth,
29 >> James
30 >>
31 >> [1] http://www-cs-faculty.stanford.edu/~uno/
32 >>
33 >
34 > Hello james,
35 >
36 > Don Knuth ... oh YES! :)
37 > For a long time I am using and prefering TeX over anything else
38 > (ok...for ASCII I use vim... ;).
39 >
40 > And beside his computer wisdom I also like his kind of humor a lot...
41 > for example this one:
42 > https://www.youtube.com/watch?v=eKaI78K_rgA&list=PLUu0XRts4lK6Ri7-xaCNYqTHx7We95Rk8&index=10
43 >
44 > But my initial question was more targeted to "practical computing" as
45 > to groundshakeing and fundamental research topics.
46 >
47 > More like "what tool to pick?"...
48 >
49 > I did some compression tests myself and currently I have this:
50 >>From http://piworld.calico.jp/ (http://piworld.calico.jp/estart.html)
51 > I got zipped package of
52 > 1000 million places of PI each (~57MB for one ZIP).
53 >
54 > I unpacked the first package and recompressed it with different
55 > methods of 7zip, gzip and bzip2. For gzip and bzip2 I used the highest
56 > compression mode (-9). When a files name matches /.*ultra.*/, I used
57 > the highest compression mode (-mx=9), else I only set the compression
58 > method and leave the rest untouched (defaults).
59 >
60 >
61 > 119888896 2014-10-31 16:44 pi-0001.txt
62 > 57105419 2014-10-31 16:47 pi-0001.txt.gz
63 > 52632832 2014-10-31 16:48 pi-0001.txt.bz2
64 > 52045827 2014-10-31 16:54 pi-0001.txt.ppmd.7z
65 > 57110291 2014-10-31 17:23 pi-0001.zip
66 > 51766683 2014-10-31 17:26 pi-0001.txt.lzma.7z
67 > 51668838 2014-10-31 17:34 pi-0001.txt.lzma.ultra.7z
68 > 52862115 2014-10-31 17:36 pi-0001.txt.ppmd.ultra.7z
69 > 51668838 2014-10-31 17:39 pi-0001.txt.ultra.7z
70 >
71 > 7zip's lzma wins here, which is also the default method of 7zip. I set
72 > the ultra mode for this by hand.
73 >
74 >>From other sites which offer PI for download I know of methods, which
75 > store the ASCII-digits in binary and compresses then. Would be
76 > interesting, whether this creates a more "handy" input from 7zips
77 > point of view...
78 >
79 > Ah! By the way...I was astonished to read, that the digits of PI are
80 > called random on the one hand and on the other hand there is a formula [1]
81 > to calculate a certain digit of PI without calculation of the previous
82 > digits...
83 > Calculated random? Are nature constants the purest form of PRNGs ??? ;)
84 > (Quantum physics is everywhere... ;;))
85 >
86 > [1]: http://en.wikipedia.org/wiki/Bailey%E2%80%93Borwein%E2%80%93Plouffe_formula
87
88
89 The sequence of digits that make up pi are a random sequence - you can
90 analyze the order any way you want and you'll find no inherent pattern.
91 However, any given digit in the sequence is 100% predictable, as you
92 just showed :-)
93
94 Randomness has got to be the second most mind-boggling thing out there,
95 first being quantumness (that's not a waord, I just made it up. You you
96 should get the meaning OK from context ;-) )
97
98 --
99 Alan McKinnon
100 alan.mckinnon@×××××.com

Replies

Subject Author
[gentoo-user] Re: OT Best way to compress files with digits David W Noon <dwnoon@××××××××.com>