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
    Location
    Kharkov, Ukraine
    Posts
    3,134
    Thanks
    179
    Thanked 921 Times in 469 Posts

    dec2bin converter for Nelson's million-digits file

    http://nishi.dreamhosters.com/u/nelson_dec2bin_v0.rar
    Code:
    1,440,000 digits.txt
    1,000,000 digits1.txt
      415,241 AMillionRandomDigits.bin
    digits.txt is the original rand.org file: https://www.rand.org/content/dam/ran...digits.txt.zip
    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. The Following 2 Users Say Thank You to Shelwien For This Useful Post:

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

Similar Threads

  1. Mark Nelson's 1 Million Random Digit Challenge
    By JamesWasil in forum Data Compression
    Replies: 9
    Last Post: 21st January 2019, 01:33
  2. Replies: 3
    Last Post: 14th April 2015, 00: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, 18:26
  5. Announcing 5 trillion digits of Pi!
    By Sanmayce in forum The Off-Topic Lounge
    Replies: 0
    Last Post: 16th October 2010, 18: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
  •