• millie@beehaw.org
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    2 months ago

    Considering that there are an infinite number of potential arrangements of keystrokes that aren’t Hamlet? I’m honestly not fully convinced that you’d necessarily get Hamlet to begin with, let alone in a finite amount of time. Could you? Sure. But an infinite set minus an infinite number of possibilities still leaves an infinite number of possibilities. Any or all of which could not be Hamlet.

    There are an infinite number of values between 1 and 2, but none of them are 3.

    • AbsentBird@lemm.ee
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 months ago

      There aren’t an infinite arrangements of keystrokes that are the length of Hamlet and aren’t Hamlet. Hamlet is 191,726 characters long, it’s like guessing a password.

      44 keys on a typewriter, 191726 characters, makes 44^191726 or about 4.054 × 10^315094 combinations.

      • millie@beehaw.org
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        2 months ago

        You’re shifting the goalposts, and that still doesn’t work.

        An infinite number of monkeys typing for an infinite length of time doesn’t necessitate that they stop once they reach 191,726 characters and then start over again. It also doesn’t necessitate that they never repeat a pattern of characters. In fact, it’s incredibly likely that they repeat more or less the same patterns more often than not. They’re probably going to repeatedly press keys that are in proximity to one another while moving around the keyboard. Things like: “;ml9o fklibhuasdfbuklghaol;jios9 fdlhnikuasdf”.

        If you’re measuring whether or not eventually you’ll produce Hamlet by typing out every single possible permutation of 191,726 characters on a keyboard, well… yeah, of course you will. But infinite monkeys aren’t a grid search system for combinations of keystrokes, they’re monkeys mashing the keys without knowing what they mean or in all likelihood what a typewriter or computer is.

        You want monkeys on keyboards? You’re mostly going to get gibberish.

        If you put a bunch of yarn in a room with some high-powered rotating fans, are they eventually going to produce a sweater? Probably not. You’re just going to have a bunch of tangled yarn. Sweaters require a consistent repetition of a non-random pattern of movement. Alter that pattern only a handful of times and you won’t have a sweater even if you do manage to stumble across some version of that pattern accidentally.

        Is there a non-zero chance? Eh… maybe? But there’s no reason to assume that it’ll actually happen given any amount of time unless someone comes along who knows how to make a sweater and does so.

        With monkeys and keyboards you’d be lucky to get a few lines of anything resembling English in iambic pentameter.

        • AbsentBird@lemm.ee
          link
          fedilink
          English
          arrow-up
          1
          ·
          2 months ago

          I think you’re the one who is moving the goalposts. There’s no requirement for the monkeys to submit their output, the test is whether the text of Hamlet is among their key presses. As long as there is a nonzero chance, then there is a 100% chance it would appear in an infinite system. Any non-zero probability times infinity has a 100% chance of occuring eventually.

          The monkeys mostly produce gibberish, that’s the vast majority of the potential outputs, but among that massive number is also the full text of Hamlet.

          • millie@beehaw.org
            link
            fedilink
            English
            arrow-up
            1
            ·
            2 months ago

            I mean it seems like you’re just kind of asserting that it will be there. Just repeating it doesn’t make it more true.