Results 1 to 1 of 1

Thread: dec2bin converter for Nelson's million-digits file

  1. #1
    Administrator Shelwien's Avatar
    Join Date
    May 2008
    Kharkov, Ukraine
    Thanked 1,328 Times in 759 Posts

    dec2bin converter for Nelson's million-digits file
    1,440,000 digits.txt
    1,000,000 digits1.txt
      415,241 AMillionRandomDigits.bin
    digits.txt is the original file:
    digits1.txt is the stripped version without line numbers and spaces.
    AMillionRandomDigits.bin is the result of digits1.txt conversion to binary as a single long decimal number.

    This dec2bin conversion always seemed trivial, but yesterday somebody reminded me that we actually don't have an easy to use utility to do that,
    and in fact never even tried to verify the claim that digits.bin is a lossless representation of digits.txt.

    Well, now I made tools for digits->digits1->digits.bin conversion (both forward and backward) and verified that it works.

    The point of this is that compressing digits.bin as is is a futile project,
    while digits.txt has 50 bits of _known_ redundancy (column parity),
    so there can be more.

    Archive includes sources of both utilities and binaries both for windows and linux.
    Sources can be compiled on linux by running "sh g" in source directory.
    Unfortunately dec2bin utility only can be built for x64 atm, because of __int128 usage.

  2. Thanks (2):

    Mike (26th May 2019),xinix (26th May 2019)

Similar Threads

  1. Mark Nelson's 1 Million Random Digit Challenge
    By JamesWasil in forum Random Compression
    Replies: 9
    Last Post: 21st January 2019, 01:33
  2. Replies: 3
    Last Post: 14th April 2015, 01:49
  3. Replies: 41
    Last Post: 25th December 2012, 11:16
  4. US$3 Million Data compression Prize
    By LawCounsels in forum The Off-Topic Lounge
    Replies: 30
    Last Post: 2nd May 2012, 19:26
  5. Announcing 5 trillion digits of Pi!
    By Sanmayce in forum The Off-Topic Lounge
    Replies: 0
    Last Post: 16th October 2010, 19:25

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts