Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re^5: Very Large Hex Combinations

by ikegami (Pope)
on Aug 04, 2005 at 16:17 UTC ( #480907=note: print w/replies, xml ) Need Help??

in reply to Re^4: Very Large Hex Combinations
in thread Very Large Hex Combinations

There are 5,153,960,755,200 (640*480*(2^24)) true colour 640x480 images.

The file size of each image would be 921,654 (54 + 640*480*3) bytes.

The disk space used by each image (on NTFS) would be 925,696 (ceil(921,654/4,096)*4,096) bytes (plus space used by the directory).

The disk space used by all images (on NTFS) would be 4,771,000,855,245,619,200 (925,696 * 5,153,960,755,200) bytes (slightly under 5 billion Gigabytes).


What if you generated 128x128 images using 16 colours?

Num images = 160,000 File size = 8,310 bytes Disk space per images = 12,288 bytes Total disk space = 1,966,080,000 bytes =~ 2GB

That's attainable, but it's only thumbnail size.

Replies are listed 'Best First'.
Re^6: Very Large Hex Combinations
by Anonymous Monk on Aug 04, 2005 at 16:28 UTC
    There are a whole lot more than 640*480*2^24 true colour images. There are 307200 pixels (640*480), each of which can take 2^24 different colours. That leads to 2^(24*640*480) different images, that is 2^7372800. That's a number that takes more than 2 million digits to write down.

      Arg! You're right! That's how I did it originally, but I thought I had it wrong.

      There are 2^(24*640*480) true colour 640x480 images. That's a number with over 2211840 digits. Considering a googol has only 101 digits and "a googol is much larger than the number of atoms in the Universe", your goal is unfeasable.

      Even if we used 128x128x16 thumbnails, it's still unfeasable at 2^(4*128*128), a number with over 19660 digits.

      There is over a googol of 20x20 monochrome images. (Over 2.58 * 10^120, to be more precise.)

        As I said in another post, even 8x8 bitmaps are unfeasable. 2^64 is a very large number. A 6x6 bitmap needs four and a half byte of storage, storing all of them requires 288 Tb. That's feasable.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://480907]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (7)
As of 2017-12-12 22:39 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (340 votes). Check out past polls.