Your birthdate in the decimal expansion of Pi
angio.net
angio.net
> Be warned that 50 million digits of pi takes up 50 megabytes. This can take up to 4 hours to download with a 28.8k modem!
Loads fast and easy to read. I hope our web designer friends are taking note.
Is there a number that (1) contains most subsequences and where (2) finding a certain subsequence is computationally efficient? Also, (3) finding a subsequence given a starting and end position should be efficient. If so, we have a efficient mean to transfer data. Just send the index positions. And we can store any data with just those two index positions. Then again, those index numbers are likely to be very very large. Perhaps we can in turn transform the index positions to smaller index positions by finding their positions in the sequence. Then we need a third number to signify the number of recursive uses of the storage.
(2) I'm too lazy to do the calculation right now, but it should not be too difficult to calculate the sum of the lengths of all numbers smaller than n, and then you've got the index of n.
(3) In any feasible encoding, the expected size of the start index of n will be much larger than the size of n. And every recursive step will just blow up the sizes even more.
Your're essentially describing a compression mechanism. As you might expect, this isn't a new idea [2] and it generally fails because (as you said) the index quickly gets large as the size of the block of data increases - basically destroying any advantage for non-trivial block sizes. There is some discussion of the space trade-offs in [3], and I wouldn't be surprised if the speed of this approach is poor when compared to conventional techniques.
Another problem is that it is still not known whether number like Pi actually contains every possible finite sequence of digits [3], so not all input blocks can be compressed. In practice, this shouldn't be a problem for small blocks though.
[1] http://en.wikipedia.org/wiki/Bailey-Borwein-Plouffe_formula
[2] https://www.google.co.uk/search?q=pi+compression
[3] http://penduin.blogspot.co.uk/2006/10/pi-compression.html
[4] http://www.askamathematician.com/2009/11/since-pi-is-infinit...
Other essential services are: your age in pi (http://pirthday.com/) or seeing who has his pirthday today (http://happy.pirthday.com/). Disclaimer: Logo has been created by a friend (@turboele), other stuff by me.
So, no, the fact that a sequence of bytes occurs in a particular digital recording doesn't mean that the copyright owner of that recording "owns" that series of bytes. It means they own a specified set of rights in that particular recording.
Heh, it says "act like a computer geek" and the numbers are not even in binary? :)
for (i = 0; i < FILE_SIZE; i++) {
printf("%d%d", (buf[i]&0xf0)>>4, buf[i] & 0xf);
}
Shouldn't this be >>8 ?One hex digit (0x0f) is 4 bits wide, not 8 (one byte <=> two hex digits).