Thread: infinite pictures.

  1. #16
    Password:
    Join Date
    Dec 2009
    Location
    NC
    Posts
    587
    Quote Originally Posted by CommonTater View Post
    To give you a further idea of scale... Windows 7 Icons... the fancy ones you can resize with your mouse wheel, are 256 x 256 x 16.7 million colors....

    That's ~10,944,512,000,000 possible images.

    I recently wrote a windows program using one of the new Icons and the Icon embedded in the program was bigger than the executable code...
    length*width*colors isn't right. You are finding the area, then multiplying by the total possible colors. That is the number of times when all pixels are the same color. You're leaving out all else. It would, in fact, be much larger: 16,777,215^(256*256). It's so huge, I don't even want to post it here, because of it's massiveness would span a couple pages.

  2. #17
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    And this is why one time pads are so cool.
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  3. #18
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    Quote Originally Posted by User Name: View Post
    length*width*colors isn't right. You are finding the area, then multiplying by the total possible colors. That is the number of times when all pixels are the same color. You're leaving out all else. It would, in fact, be much larger: 16,777,215^(256*256). It's so huge, I don't even want to post it here, because of it's massiveness would span a couple pages.
    Oh come now! 256*256*log 16777215 = 473479.2414, so it's only 473480 decimal digits long. Even if we assume 160 characters a line, that's still 2960 lines. At 50 lines a "page" that's more like 60 pages.

  4. #19
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    2,738
    o_O ...
    Devoted my life to programming...

  5. #20
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    The way to look at it is that in a picture each pixel has 24 bits (8 red, 8 green, 8 blue) and if the picture is 20x20, then there are 400x24 bits - 9600. Each bit can either be set or not, so there are 2^9600 combinations. If you calculate this, you get the huge number "User Name:" posted already.
    "The Internet treats censorship as damage and routes around it." - John Gilmore

  6. #21
    Password:
    Join Date
    Dec 2009
    Location
    NC
    Posts
    587
    Quote Originally Posted by tabstop View Post
    Oh come now! 256*256*log 16777215 = 473479.2414, so it's only 473480 decimal digits long. Even if we assume 160 characters a line, that's still 2960 lines. At 50 lines a "page" that's more like 60 pages.
    "Couple" is indeterminate. Point is, it would be inconsiderate to post such a monstrous glob of digits. (That, and my perl script(using GMP for BigInt) was taking a REALLY long time, and my computer was getting REALLY hot. So I killed it, and decided to leave it at that. )

    I like maxorator's explaination, it's more mathy than mine.

  7. #22
    That weird Java guy xniinja's Avatar
    Join Date
    Jun 2010
    Posts
    231
    I was trying to make a calculator that did this, but how do you make a variable that can hold 473480 places? who ever makes this will probably have to make their own picture viewer instead of waiting for windows media player to open, that would take a while...

  8. #23
    Password:
    Join Date
    Dec 2009
    Location
    NC
    Posts
    587
    You have to use a bignum library or calculator. I use Perl for simple stuff like this because it has pretty seamless bignum integration. There are some bignum calculators available on the internet, some in Java so you can use them right on the website.

  9. #24
    Banned ಠ_ಠ's Avatar
    Join Date
    Mar 2009
    Posts
    687
    Quote Originally Posted by user name: View Post
    length*width*colors isn't right. You are finding the area, then multiplying by the total possible colors. That is the number of times when all pixels are the same color. You're leaving out all else. It would, in fact, be much larger: 16,777,215^(256*256). It's so huge, i don't even want to post it here, because of it's massiveness would span a couple pages.
    <<< Nice try - try again >>>
    ╔╗╔══╦╗
    ║║║╔╗║║
    ║╚╣╚╝║╚╗
    ╚═╩══╩═╝

  10. #25
    Banned ಠ_ಠ's Avatar
    Join Date
    Mar 2009
    Posts
    687
    Quote Originally Posted by User Name: View Post
    length*width*colors isn't right. You are finding the area, then multiplying by the total possible colors. That is the number of times when all pixels are the same color. You're leaving out all else. It would, in fact, be much larger: 16,777,215^(256*256). It's so huge, I don't even want to post it here, because of it's massiveness would span a couple pages.
    I tried, it wouldn't let me, so here it is in attachment form


    edit: lol, never mind
    Last edited by ಠ_ಠ; 01-26-2011 at 01:19 AM.
    ╔╗╔══╦╗
    ║║║╔╗║║
    ║╚╣╚╝║╚╗
    ╚═╩══╩═╝

  11. #26
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    2,738
    -_- O_O -_- ...

    You guys just don't know when to stop, eh?

    "Μέτρον Άριστον" my ancestors used to tell. It means you'd best put some limits in your life!
    Devoted my life to programming...

  12. #27
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    Quote Originally Posted by Sipher View Post
    -_- O_O -_- ...
    I wish you didn't do that. Messes with my nervous system.
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  13. #28
    Internet Superhero
    Join Date
    Sep 2006
    Location
    Denmark
    Posts
    964
    Quote Originally Posted by Sipher View Post
    -_- O_O -_- ...

    You guys just don't know when to stop, eh?

    "Μέτρον Άριστον" my ancestors used to tell. It means you'd best put some limits in your life!
    If you find large numbers to be mind boggling, you should see what people have decided to name some of those numbers.

    A googolplex is hard to wrap your head around, but if you want something truly mind bending, look up the name of 10 to the power of 2703.


    I'll make it easy for you
    quinquagintaquadringentillion

    More goodies
    How I need a drink, alcoholic in nature, after the heavy lectures involving quantum mechanics.

  14. #29
    That weird Java guy xniinja's Avatar
    Join Date
    Jun 2010
    Posts
    231
    More goodies

    Favorited.

  15. #30
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,079
    Quote Originally Posted by xniinja View Post
    More goodies

    Favorited.
    Hah, look at how awesome and anti-conformist Cambridge Online Dictionary is... they refuse to acknowledge numbers beyond 999,999,999,999,999,999.

    Phooey says Cambridge to your infinite pictures question... Phooey!
    Sent from my iPadŽ

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. CConstructor Infinite Recursion!
    By Eman in forum C++ Programming
    Replies: 80
    Last Post: 12-23-2010, 10:14 AM
  2. Tagging Pictures
    By Tonto in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 03-17-2008, 02:44 PM
  3. Switch statement = infinite loop
    By Lucid003 in forum C++ Programming
    Replies: 10
    Last Post: 10-10-2005, 12:46 AM
  4. pictures
    By TravisS in forum A Brief History of Cprogramming.com
    Replies: 21
    Last Post: 01-06-2003, 02:31 PM