• BananaTrifleViolin@lemmy.world
    link
    fedilink
    English
    arrow-up
    55
    ·
    19 days ago

    Trash “research” and trash journalism covering it. First they find that monkeys would write Shakespeare, it would just take on average longer than the entire existence of the universe. They then try to infer that how long it takes is relevant. It is not. The calculation is vaguely interesting as a curio but the shoehorned “discussion” and interpretation to get attention is crap and another example of bad science misleading people.

    It’s pointless and stupid - the thought experiment itself is that infinite monkeys typing would eventually type the whole of Shakespeare. Not how long it would take. The whole point of it is that in a truly random system all known patterns should eventually emerge somewhere within it. The length of time it takes for the pattern to emerge is irrelevant as the idea is based in infinity. So for example if there is a truly random infinite multiverse then in theory all imaginable possibilities would exist somewhere within it at some point.

    • moonpiedumplings@programming.dev
      link
      fedilink
      English
      arrow-up
      8
      ·
      19 days ago

      The whole point of it is that in a truly random system all known patterns should eventually emerge somewhere within it.

      So pi (probably) has this property. There are some joke compression programs around this (they don’t really work because it takes up more space to store where something in pi is, than storing the thing itself). But it is funny, to think that pi could theoretically hold every past, present, and future piece of information within those digits after the decimal.

      https://github.com/philipl/pifs

      https://ntietz.com/blog/why-we-cant-compress-messages-with-pi/

      • addie@feddit.uk
        link
        fedilink
        English
        arrow-up
        4
        ·
        19 days ago

        Also interesting is the notion of ‘Kolmogorov Complexity’ - what is the shortest programme that could produce a given output? Worst case for a truly random sequence would just be to copy it out, but a programme that outputs eg. a million digits of pi can actually be quite short. As can a programme that outputs a particular block cypher for an empty input. In general, it is very difficult to decide how long a programme is needed to produce a given output, and what the upper limit of compression could be.

        https://en.m.wikipedia.org/wiki/Kolmogorov_complexity

  • taiyang@lemmy.world
    link
    fedilink
    English
    arrow-up
    13
    arrow-down
    1
    ·
    19 days ago

    A stupid article akin to someone on Lemmy misunderstanding an idium and going “well actually…”.

    And that’s coming from me, a person who likes knowing how insanely unlikely it is a guess ever longer and longer pass phrases. A computer trying to brute force Hamlet would also fail before the heat death of the universe (probably, anyway- do the math and you too can publish junk!).

  • RedFrank24@lemmy.world
    link
    fedilink
    English
    arrow-up
    30
    ·
    19 days ago

    Wasn’t the saying an infinite number of monkeys on an infinite number of typewriters? If so then they’d write Hamlet and indeed every other book written or ever will be written in however long it would conceivably take to type them out if you were copying them.

    • madcaesar@lemmy.world
      link
      fedilink
      English
      arrow-up
      5
      arrow-down
      2
      ·
      19 days ago

      I don’t really know how this myth? paradox is supposed to work? I know infinity isn’t a number but a concept and in theory I understand what it’s trying to say, but if I have an infinite amount of scrap yards and infinite amount of tornadoes, they can go on forever, but they’ll never assemble a Boing 747.

      • Krauerking@lemy.lol
        link
        fedilink
        English
        arrow-up
        2
        arrow-down
        1
        ·
        18 days ago

        Same way in the infinite random non repeating numbers of Pi is the binary of a 4k resolution photo of Betty White nude holding a snake on a tiger.

        It’s random forever and eventually the 1s and 0s fall into place. The problem is the monkeys repeating themselves.

        • Semperverus@lemmy.world
          link
          fedilink
          English
          arrow-up
          4
          ·
          18 days ago

          The problem here is the implied entropic outcomes of each system.

          If the monkeys were replaced with true-random number generators, then you’d eventually get shakespear. But they aren’t RNG engines, and they aren’t quantumly random.

          Instead, the monkeys have a large-ish but very finite number of logical branches that they can take in their decision-making processes, with slight variations within a fixed genetic scope. They will slam away at the typewriters in a very specific monkey kind of way.

          At the end of the thought experiment, you will end up with an infinite amount of monkey-gibberish and a slightly smaller infinite amount of soiled or destroyed typewriters.

          • futatorius@lemm.ee
            link
            fedilink
            English
            arrow-up
            1
            ·
            18 days ago

            If the monkeys’ probability distribution function can be transformed to a uniform distribution by a continuous function, the outcomes are equivalent enough for this exercise. (There are probably some discontinous functions that’d also work). So, unless there’s some genetic weirdness in monkeys that prevents their ever hitting certain keys, they’re adequate RNG engines. But at that point, you’re really tweaking the assumptions based on how realistically you think monkeys are portrayed in the thought experiment.

            And I don’t believe “quantumly random” is a necessary condition here.

      • thedeadwalking4242@lemmy.world
        link
        fedilink
        English
        arrow-up
        7
        ·
        18 days ago

        Not the same the monkeys have all the capabilities and tools to cohesively combine letters words and white space. A tornado cannot weld and program controllers and solder. But a monkey can type randomly even wacking randomly. The idea is that given an infinite truly random output of text by the nature of infinity the text of Shakespeare will be outputted in its entirety eventually

        • futatorius@lemm.ee
          link
          fedilink
          English
          arrow-up
          1
          arrow-down
          1
          ·
          18 days ago

          The idea is that given an infinite truly random output of text by the nature of infinity the text of Shakespeare will be outputted in its entirety eventually

          Only for a certain kind of randomness. For example, it’s possible to construct a random process that at each step emits a uniformly distributed character, but which also includes a filter that blocks the emission of the string “Falstaff” if it occurs. Such a process cannot ever produce the complete works of Shakespeare, since the complete works include that string, though it will still contain (for example) every lost work of Aristotle, as well as an infinite number of false and corrupted versions of those works.

          But yeah, an unconstrained uniform-random-distributed countably infinite sequence of printable English characters and whitespace cannot be proven to not contain the complete works of Shakespeare, or any other finite sequence. I believe it’s also impossible to exclude any countably infinite sequence, but I might be wrong on that part, since my mathematics education happened a very long time ago.

          • thedeadwalking4242@lemmy.world
            link
            fedilink
            English
            arrow-up
            1
            ·
            17 days ago

            I guess that was kinda what I was trying to convey in the truly random part. Truly random in which you have no idea what character will be next, no filter. In that case yes which I believe is what most people think of when they think of random

      • futatorius@lemm.ee
        link
        fedilink
        English
        arrow-up
        2
        arrow-down
        1
        ·
        18 days ago

        You know it? That’s nice. A lot of people think they know a lot of things that aren’t really true.

        Now prove it.

      • RedFrank24@lemmy.world
        link
        fedilink
        English
        arrow-up
        13
        ·
        edit-2
        19 days ago

        An infinite number of monkeys typing randomly on an infinite number of typewriters, so long as the writing is truly random, will eventually write every novel. Once you factor in the infinite number of monkeys, every novel in existence will not only be written, it will be written an infinite number of times.

        It’s like saying if you had a random number generator and gave it an infinite amount of time generating 16 numbers at a time, it would eventually generate every bank card number ever an infinite number of times. Give that task to an infinite number of random number generators and they will generate every bank card number an infinite number of times instantaneously.

        Come to think of it, if the tornado throws around junk completely randomly, and provided there’s enough material in every junkyard to assemble a plane, the tornado will eventually assemble it. That’s the power of infinity and randomness.

        • futatorius@lemm.ee
          link
          fedilink
          English
          arrow-up
          1
          ·
          18 days ago

          Once you factor in the infinite number of monkeys, every novel in existence will not only be written, it will be written an infinite number of times.

          You don’t need an infinite number of monkeys to ensure that. The cardinality of an infinite collection of 2-tuples (monkey, char) is the same as the cardinality of an infinite sequence of characters, just as the cardinality of the rational numbers is the same as the cardinality of the integers.

          And in a countably infinite sequence of uniformly random characters, there is no assurance that any particular finite sequence will occur only a finite number of times.

  • TriflingToad@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    1
    ·
    19 days ago

    insane that THIS gets headlines which is literally just recording a monkey with a keyboard and running 3 lines of python, purposely missing the point of the saying.

  • Cap@kbin.melroy.org
    link
    fedilink
    arrow-up
    2
    ·
    19 days ago

    The probability that a monkey would throw its shit against the wall and have it look exactly like Shakespeare is, on the other hand, extremely likely in our lifetime.

    • 🇰 🌀 🇱 🇦 🇳 🇦 🇰 ℹ️@yiffit.net
      link
      fedilink
      English
      arrow-up
      18
      ·
      edit-2
      19 days ago

      It’s very unlikely to brute force modern encryption; but you might get lucky and crack it after only 3 or 4 tries. Just because there are 18 quadrillion+ possible permutations, doesn’t mean you have to go through all of them before you find the right solution.

      • Ookami38@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        1
        arrow-down
        3
        ·
        19 days ago

        Security is, and always has been, a matter of making your shit harder and take longer to break. Any security is penetrable, given enough time and willpower, just make sure it takes longer than it’s worth.

    • riplin@lemm.ee
      link
      fedilink
      English
      arrow-up
      8
      arrow-down
      4
      ·
      19 days ago

      There are an infinite number of values between one and two and none of them equal three.

      • Sanctus@lemmy.world
        link
        fedilink
        English
        arrow-up
        4
        ·
        19 days ago

        You have to realize, that with infinite time, if something has even the slightest chance of happening, it happens infinite times. So no, its not misleading, you have infinity for this to happen an infinite amount of times. Infinity breaks things.

      • Susaga@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        4
        ·
        19 days ago

        The time taken for “a” typing monkey? We have infinite monkeys! Why are we putting the entire burden on just one of them? One of them takes Hamlet, another takes King Lear, two of them collaborate to write Twelfth Night…