The Everything Algorithm

Discussion in 'OT Technology' started by CodeX, Feb 9, 2010.

  1. CodeX

    CodeX Guest

    This is pseudo code for an algorithm which would generate an HD (1920x1080) image of everything that could ever possibly exist in the universe:

    Code:
    For x = 0 to 2^49766400
    {
       File = Append(x, bitmap_header)
       Save File as ToString(x) + ".bmp"
    }
    
    It's so simple!

    49766400 is 1920x1080x24 bits, 2 to that power is every possible bit pattern... or every possible image of that resolution.

    With this I could generate trillions of images of jessica alba nude!

    It haunts me...
     
  2. Corp

    Corp OT Supporter

    Joined:
    Sep 11, 2003
    Messages:
    28,201
    Likes Received:
    0
    Location:
    Providence, RI
    Run it and let me know when you find the nudes...
     
  3. CodeX

    CodeX Guest

    Double the number of atoms in the universe and build me a hard drive using all of them and I'll get right on that, should be ready between now and march... of the year 235805798597845924523
     
  4. Fase

    Fase Your Face, In A Pickle Jar.

    Joined:
    Apr 6, 2004
    Messages:
    29,540
    Likes Received:
    0
    Location:
    Windsor, Ont, Canada.
    and... you're still wasting time posting? Get to it!
     
  5. kronik85

    kronik85 New Member

    Joined:
    Feb 8, 2005
    Messages:
    34,837
    Likes Received:
    0
    Location:
    Deutschland
    instead of using 1920x1080 i used 200x164 and came up with

    [​IMG]



    not bad for 4 hours of random generation. i'll let you know where i get in a few days.
     
  6. 7960

    7960 New Member

    Joined:
    Oct 17, 2004
    Messages:
    60,415
    Likes Received:
    0
    Location:
    New England
    :rofl:

    this is like saying

    0 1 2 3 4 5 6 7 8 9


    :bowdown: I JUST TYPED OUT EVERY WHOLE NUMBER THAT COULD POSSIBLY EVERY BE WRITTEN!!! BOW TO ME!!
     
  7. mobbarley

    mobbarley Active Member

    Joined:
    Mar 4, 2005
    Messages:
    9,256
    Likes Received:
    2
    Location:
    Sydney
    lets see some CUDA and massively distributed computing to get results fast!
     
  8. CodeX

    CodeX Guest

    I think you don't understand the concept...
     
  9. 7960

    7960 New Member

    Joined:
    Oct 17, 2004
    Messages:
    60,415
    Likes Received:
    0
    Location:
    New England
    yes I do.......it's a variant of the infinite monkey theorem.

    it's cute, but I'd rather ignore the 99.999999999999999999999999999999999% that's crap, and skip right to the noodz of jessica alba.
     
  10. CodeX

    CodeX Guest

    The entire point is it is not infinite...
     
  11. 7960

    7960 New Member

    Joined:
    Oct 17, 2004
    Messages:
    60,415
    Likes Received:
    0
    Location:
    New England
    I think you don't understand the concept...
     
  12. CodeX

    CodeX Guest

    I gave you a number, a finite number, that represents all possible combinations.

    That finite number is, by definition, not infinite.

    If you disagree with the claim that everything that could possibly exist would be represented in this FINITE image set then I welcome you to provide a counterexample.
     
  13. thekraft

    thekraft New Member

    Joined:
    Mar 2, 2005
    Messages:
    710
    Likes Received:
    0
    All bits are 0. You have a white image (at best).
     
  14. CodeX

    CodeX Guest

    huh? :ugh:

    What is people's problem with this concept... every possible bit pattern in a string of bits 1920x1080x24 wide would be every POSSIBLE image that could be displayed in high definition.

    Yes, an all white image would be the final one, an all black image would be the very first one... if saved as a 24 bit bitmap... So what?
     
  15. crontab

    crontab (uid = 0)

    Joined:
    Nov 14, 2000
    Messages:
    23,441
    Likes Received:
    12
    programming thread starts to turn into a troll thread.

    great job mods.
     
  16. dissonance

    dissonance reset OT Supporter

    Joined:
    May 23, 2006
    Messages:
    5,652
    Likes Received:
    1
    Location:
    KS
    I say screw [email protected] and start the [email protected] project... Then develop some sort of software like facial recognition and let it only save images that resemble actual objects. Then there would be a secondary program/site where users vote if the image is real and to be kept.

    (© / ® / ۩ / patent pending / etc 2010)
     
  17. CodeX

    CodeX Guest

    ib4 millions get arrested for inadvertent child pornography :rofl:
     
  18. mobbarley

    mobbarley Active Member

    Joined:
    Mar 4, 2005
    Messages:
    9,256
    Likes Received:
    2
    Location:
    Sydney
    I whipped up some quick java to simulate what your program might arive at after running for about 6000 years..

    In glorious 24 bit colour:
    [​IMG]



    i think i see a sailboat.
     
  19. thekraft

    thekraft New Member

    Joined:
    Mar 2, 2005
    Messages:
    710
    Likes Received:
    0
    He's troolllllling
     
  20. mobbarley

    mobbarley Active Member

    Joined:
    Mar 4, 2005
    Messages:
    9,256
    Likes Received:
    2
    Location:
    Sydney
    you think I don't know how many permutations of 1's and 0's there could be?
     
  21. thekraft

    thekraft New Member

    Joined:
    Mar 2, 2005
    Messages:
    710
    Likes Received:
    0
    You might, but it doesn't matter, since it boils down to whether he's an idiot or a troll.
     
  22. CodeX

    CodeX Guest

    Are you referring to me?

    If you are, can you explain yourself? Because I am not trolling, I happen to find the topic of this thread extremely interesting, and I don't believe I have given you just cause to call me an idiot. I gave the number of possible combinations in the first post, I know that there do not exist enough atoms in the universe to store these images, and I know that it would take longer than the age of the universe to generate them. I also know that most of them will not form recognizable images.

    None of that changes the fact that every visibly identifiable object that could ever exist would be depicted in this finite set of images. The astounding thing is that the set is finite.

    If you think you can give me an example of something that would not be depicted in this image set you're more than welcome, I told 7960 the same thing.
     
  23. thekraft

    thekraft New Member

    Joined:
    Mar 2, 2005
    Messages:
    710
    Likes Received:
    0
    7690 and marley already did. If you have an infinite set of bits, I wouldn't argue. With a finite set, no matter how large, you would be restricted to a finite set of (recognizable) images, and certainly not all possible images of that resolution.

    Appending all the numbers from 1 to a large number (no matter how large) isn't going to do anything. You have no idea what image you're getting, and it sure as hell not going to be coherent. I initially thought you were going to use a random value of 0 or 1 for each bit, but you're not even doing that.
     
  24. mobbarley

    mobbarley Active Member

    Joined:
    Mar 4, 2005
    Messages:
    9,256
    Likes Received:
    2
    Location:
    Sydney
    I don't think I did
     
  25. mobbarley

    mobbarley Active Member

    Joined:
    Mar 4, 2005
    Messages:
    9,256
    Likes Received:
    2
    Location:
    Sydney
    In fact, i think it would be possible to show a picture representation of me peeing on you in that resolution, and i believe that it would occur in this set, in every possible location around the world with every possible colour of pee. my mind is boggled.
     

Share This Page