Typing monkey would be unable to produce 'Hamlet' within the lifetime of the universe, study finds (phys.org)
from VantaBrandon@lemmy.world to technology@lemmy.world on 31 Oct 2024 03:26
https://lemmy.world/post/21464560

The question that everyone has been dying to know has been answered. Finally! What will scientists study next?

#technology

threaded - newest

AbouBenAdhem@lemmy.world on 31 Oct 2024 03:30 next collapse

Yeah, that’s why we need at least… two of them.

eager_eagle@lemmy.world on 31 Oct 2024 03:52 collapse

the paper used the entire population (200 thousand) and would take some 10 ^ 10 ^ 7 heat deaths of the universe

Nougat@fedia.io on 31 Oct 2024 04:05 next collapse

It could happen the very first time a monkey sat down at a typewriter. It's just very unlikely.

adarza@lemmy.ca on 31 Oct 2024 04:07 collapse

from the wiki article
en.wikipedia.org/wiki/Infinite_monkey_theorem

If there were as many monkeys as there are atoms in the observable universe typing extremely fast for trillions of times the life of the universe, the probability of the monkeys replicating even a single page of Shakespeare is unfathomably small.

Nougat@fedia.io on 31 Oct 2024 04:08 next collapse

... the probability of the monkeys replicating even a single page of Shakespeare is unfathomably small.

But not zero.

CeeBee_Eh@lemmy.world on 31 Oct 2024 04:22 collapse

Basically nothing is ever truly zero

Nougat@fedia.io on 31 Oct 2024 04:23 next collapse

I am.

CeeBee_Eh@lemmy.world on 31 Oct 2024 14:25 collapse

Hello “Zero”!

nightwatch_admin@feddit.nl on 31 Oct 2024 04:33 next collapse

Someone wiser than me already said that it already has happened: 1 ape did, in fact, write the complete works of Shakespeare.

scarabic@lemmy.world on 31 Oct 2024 05:04 collapse

ape != monkey

nightwatch_admin@feddit.nl on 31 Oct 2024 05:09 next collapse

Fair enough. I wouldn’t want to insult the Librarian.

TheUnicornOfPerfidy@feddit.uk on 31 Oct 2024 07:02 collapse

Ook

CommanderCloon@lemmy.ml on 31 Oct 2024 09:00 next collapse

Apes are monkeys though, just like we’re apes and birds are dinosaurs

scarabic@lemmy.world on 31 Oct 2024 15:19 collapse

We are apes and birds are dinosaurs, but monkeys and apes are distinct categories under primates so no, apes are not monkeys.

Klear@lemmy.world on 31 Oct 2024 10:26 collapse

apes ⊂ monkeys, actually.

scarabic@lemmy.world on 31 Oct 2024 15:17 collapse

monkey c monkey do

Cryophilia@lemmy.world on 31 Oct 2024 22:04 collapse

The probability of lots of things is zero. The probability of a monkey typing a Chinese character on an English keyboard is zero.

Similar idea: there are an infinite amount of numbers between zero and one, but none of those numbers is two.

Rivalarrival@lemmy.today on 31 Oct 2024 04:21 next collapse

so you’re saying there’s a chance…

scarabic@lemmy.world on 31 Oct 2024 05:03 next collapse

So you’re telling me… there’s a chance!

Sorry, I’m sort of lampooning comments like the one above and below you where people just can’t resist focusing on the possibility, no matter how ridiculously remote it seems. For myself, there’s a point of “functionally zero odds” that I’m willing to accept and move on with my life.

Ookami38@sh.itjust.works on 31 Oct 2024 07:39 next collapse

Weird how neither of those numbers are infinities. Almost like the numbers used are unfathomably small in comparison.

ColeSloth@discuss.tchncs.de on 31 Oct 2024 12:51 collapse

So you’re saying there’s a chance.

rimu@piefed.social on 31 Oct 2024 04:08 next collapse

ok so the monkeys need to type faster

lvxferre@mander.xyz on 31 Oct 2024 04:40 next collapse

And we need more of them!

ODuffer@lemmy.world on 31 Oct 2024 07:07 collapse
0x0@programming.dev on 31 Oct 2024 10:56 collapse

Let’s put them in open spaces in offices and micro-mananage then, that’ll work.

AmidFuror@fedia.io on 31 Oct 2024 04:23 next collapse

We could breed monkeys to much higher populations.

lvxferre@mander.xyz on 31 Oct 2024 05:55 collapse

If we’re considering even chimps “monkeys”, there’s already eight billion of them, I think that’s enough.

eager_eagle@lemmy.world on 31 Oct 2024 15:14 collapse

enough to cut a few zeros of a number with 10 million of them

gravitas_deficiency@sh.itjust.works on 31 Oct 2024 11:17 collapse

Irrelevant. The heat death of the universe is a constraint unrelated to the premise of the original problem.

eager_eagle@lemmy.world on 31 Oct 2024 15:11 collapse

I don’t think it’s a constraint, it’s more like a measuring stick to try to show how ridiculously long that time is

Cryophilia@lemmy.world on 31 Oct 2024 22:05 collapse

It’s really not that long, if we can’t get monkeys to write Shakespeare.

eager_eagle@lemmy.world on 31 Oct 2024 03:41 next collapse

As such, we have to conclude that Shakespeare himself inadvertently provided the answer as to whether monkey labour could meaningfully be a replacement for human endeavour as a source of scholarship or creativity. To quote Hamlet, Act 3, Scene 3, Line 87: “No”.

catloaf@lemm.ee on 31 Oct 2024 03:46 next collapse

I prefer Romeo and Juliet, act 1 scene 1 line 41. Just because the exchange is so silly.

subignition@fedia.io on 31 Oct 2024 04:43 collapse

To quote Hamlet, Act 3, Scene 3, Line 87: “No”.

Stealing this to be annoying with

Lost_My_Mind@lemmy.world on 31 Oct 2024 03:42 next collapse

Wait …is this why AI exists? So we can type Hamlet in the face of monkey failures?

Dude. Just use a printer.

actually@lemmy.world on 31 Oct 2024 04:04 collapse

Omg I just realized AI is the new monkeys… that is disturbing

maxenmajs@lemmy.world on 31 Oct 2024 03:45 next collapse

I feel like there has to be more to this problem than pure probability. We ought to consider practical nuances like the tendency to randomly mash keys that are closer together rather than assume a uniform distribution.

nightwatch_admin@feddit.nl on 31 Oct 2024 04:38 next collapse

Who are you, who is so wise in the ways of science?

0x0@programming.dev on 31 Oct 2024 10:58 next collapse

And coffee breaks… or banana breaks… and unions!

Cryophilia@lemmy.world on 31 Oct 2024 22:08 collapse

Doesn’t matter in the real infinite monkeys thought experiment. The chance of an infinite number of monkeys at an infinite number of typewriters producing Shakespeare is 100%. That’s how infinity works.

maxenmajs@lemmy.world on 01 Nov 2024 00:46 collapse

Sure, but this time I thought these things might matter because the article gives a deadline - the end of the universe.

Cryophilia@lemmy.world on 01 Nov 2024 00:54 collapse

This article fundamentally misunderstands the entire thought experiment by using finite monkeys. With infinite monkeys, we’d have the script as quickly as it is physically possible to type the script.

paysrenttobirds@sh.itjust.works on 31 Oct 2024 04:01 next collapse

I wonder if it would take more or less time with auto-complete.

Bookmeat@lemmy.world on 31 Oct 2024 04:02 next collapse

Duh.

ech@lemm.ee on 31 Oct 2024 04:02 next collapse

it is also somewhat misleading

…what? No it isn’t. Restricting the premise from infinite to any finite amount of time completely negates it. That doesn’t prove it’s “misleading”, it proves anyone that thinks it does has no idea what they’re talking about.

unmagical@lemmy.ml on 31 Oct 2024 04:04 next collapse

An ape could though.

1stTime4MeInMCU@mander.xyz on 31 Oct 2024 04:34 collapse

Oh yeah? Name ONE ape that wrote Shakespeare. Go on I’ll wait

pennomi@lemmy.world on 31 Oct 2024 04:49 next collapse

He’s probably got a dumb name, like Bill or Willie.

lvxferre@mander.xyz on 31 Oct 2024 05:57 collapse

Perhaps even worse: Wobblesticke, Jiggleweapone, stuff like this.

kambusha@sh.itjust.works on 31 Oct 2024 06:44 next collapse

BrittneySpeare

Ookami38@sh.itjust.works on 31 Oct 2024 07:42 collapse

Gyrategun. Shiversword. Vibratevibrator. Fidgetfalchion.

unmagical@lemmy.ml on 31 Oct 2024 16:04 collapse

Billiam Bakesale

NineMileTower@lemmy.world on 31 Oct 2024 04:09 next collapse

Let’s use our braincells to fix real problems first. Like pants that don’t stretch.

PetteriPano@lemmy.world on 31 Oct 2024 04:34 next collapse

The theorem holds true. The theorem states that the monkey has infinite time, not just the lifetime of our universe.

That’s just lazy science to change the conditions to make sensational headlines. Bad scientists!

ogmios@sh.itjust.works on 31 Oct 2024 04:51 next collapse

It also makes a pretty bold claim about us actually knowing the lifespan of the universe.

scarabic@lemmy.world on 31 Oct 2024 05:09 next collapse

How are they defining the end of the universe?

ogmios@sh.itjust.works on 31 Oct 2024 06:03 next collapse

We know such an infinitesimally small amount about what is actually happening in the universe that any claims to be capable of predicting it’s end are patently absurd.

HonoraryMancunian@lemmy.world on 31 Oct 2024 06:06 next collapse

Heat death would be my assumption, so between about 10^100 and 10^106 years

BennyInc@feddit.org on 31 Oct 2024 06:49 next collapse

Probably very shortly after dinner has been served at that restaurant.

0x0@programming.dev on 31 Oct 2024 10:53 collapse

I think that was just a galaxy, not the whole universe.

lemonmelon@lemmy.world on 31 Oct 2024 11:13 next collapse

You mean the Restaurant at the End of the Universe?

0x0@programming.dev on 31 Oct 2024 11:22 collapse

Hmm… i sit corrected.

fuzzyleonardo@lemmy.world on 31 Oct 2024 11:14 collapse

But what does the Lord think about this?

Klear@lemmy.world on 31 Oct 2024 10:22 collapse

The universe is believed to end just a few nanoseconds before a monkey finishes writing Hamlet.

Cryophilia@lemmy.world on 31 Oct 2024 21:59 collapse

That’s not bold, we’ve known how long the universe will last for decades now.

ogmios@sh.itjust.works on 01 Nov 2024 06:20 collapse

Just because someone tells you something, doesn’t mean they actually know what they’re talking about. fyi

Cryophilia@lemmy.world on 01 Nov 2024 06:28 collapse

When multiple fields of science all agree, yeah they know what they’re talking about.

I just don’t get these anti-science types…

scarabic@lemmy.world on 31 Oct 2024 05:07 next collapse

Infinite time is undefined though. We are not sure there was time before the Big Bang. Before anyone says “but there must have been,” consider that it’s just as paradoxical and mind blowing to imagine that time never had a beginning and just stretches infinitely into the past. How can that be so? It means it would have taken an infinite amount of time for us to reach this moment in time, and that means we never would have.

itslilith@lemmy.blahaj.zone on 31 Oct 2024 05:08 next collapse

Infinite time is perfectly defined, it just doesn’t exist in our universe

[deleted] on 31 Oct 2024 09:23 collapse

.

Ookami38@sh.itjust.works on 31 Oct 2024 07:28 next collapse

Why must the concept of time before the big bang (or after our heat death) exist in our physical reality for us to speculate about theoretical infinities past those? The thought experiment is about ~infinite~ time, not all the time in our limited universe. A lot of things happen at infinity that break down as soon as you add a limit, but we’re not talking limits when we’re talking infinity.

Starbuncle@lemmy.ca on 31 Oct 2024 11:11 collapse

I think the implications behind there being infinite time in the past are fun if you assume that the universe works like a stochastic state machine. It means that either every finite event that has happened and will happen has already happened an infinite number of times or the universe is infinitely large.

Botzo@lemmy.world on 31 Oct 2024 06:13 next collapse

This just in: scientists disprove validity of thought experiment; philosophers remain concerned that they’ve missed the point.

murmelade@lemmy.ml on 01 Nov 2024 06:52 collapse

The universe is the cage and we are the monkeys. We have already written Hamlet.

0x0@programming.dev on 31 Oct 2024 10:53 collapse

the monkey has infinite time

Use an infinite number of monkeys instead?

BaneOfStuff@lemmy.world on 31 Oct 2024 04:36 next collapse

But… we already did it?

AbouBenAdhem@lemmy.world on 31 Oct 2024 05:20 collapse

Not with a typewriter, though.

Ookami38@sh.itjust.works on 31 Oct 2024 07:38 collapse

I would place money on some enthusiast somewhere having typed up Hamlet on a typewriter just for kicks. Surely in the hundreds of years of overlap between humanity, Hamlet, and typewriters, it’s happened once. I’d be more concerned with typos.

Brkdncr@lemmy.world on 31 Oct 2024 04:40 next collapse

Are spelling and punctuation expected to be accurate?

Autocheese@lemmy.world on 31 Oct 2024 05:01 next collapse

Infinity sorts it out for you, Karl

Mac@mander.xyz on 31 Oct 2024 05:12 next collapse

Semi related:
Here’s a link to the Library of Babel website

Deceptichum@quokk.au on 31 Oct 2024 05:33 next collapse

The author is so stupid, the monkey will of old age long before the universe ends.

mycodesucks@lemmy.world on 31 Oct 2024 06:56 collapse

But first he will accidentally the whole thing.

lando55@lemmy.world on 31 Oct 2024 11:43 collapse

Has He Anyone Really Been Far Even as Decided to Use Even Go Want to do Look More Like?

ContrarianTrail@lemm.ee on 31 Oct 2024 05:40 next collapse

I just listened to a podcast about assembly theory and I think that it kind of relates here too, though maybe not. If we start randomly generating text that is the lenght of the Hamlet, then Hamlet itself would be one of the possible, finite number of possibilities that could be generated within these parameters. Interesting theory nevertheless.

If we think about a screwdriver, the theory would argue that it couldn’t simply appear out of nowhere because its structure is too specific and complex to have come into existence by chance alone. For that screwdriver to exist, a multitude of precise processes are required: extracting raw materials, refining them, shaping metal, designing the handle, etc. The probability of all these steps happening in the right order, spontaneously, is essentially zero. Assembly theory would say that each stage in the creation of a screwdriver represents a selection event, where choices are made, materials are transformed, and functions are refined.

What makes assembly theory especially intriguing is that it offers a framework to distinguish between things that could arise naturally, like a rock or even an organic molecule, and things that bear the hallmarks of a directed process. To put it simply, a screwdriver couldn’t exist without a long sequence of assembly steps that are improbable to arise by chance, thereby making its existence a hallmark of intentional design or, at the very least, a directed process.

lvxferre@mander.xyz on 31 Oct 2024 05:54 next collapse

I have a way to make it work.

Have the monkey write down a single character. Just one. 29/30 of the time, it won’t be the same character as the first one in Shakespeare’s complete works; discard that sheet of paper, then try again. 1/30 of the time the monkey will type out the right character; when they do it, keep that sheet of paper and make copies out of it.

Now, instead of giving a completely blank sheet to the monkey, give them one of those copies. And let them type the second character. If different from the actual second character in Shakespeare’s works, discard that sheet and give him a new copy (with the right 1st char still there - the monkey did type it out!). Do this until the monkey types the correct second character. Keep that sheet with 2 correct chars, make copies out of it, and repeat the process for the third character.

And then the fourth, the fifth, so goes on.

Since swapping sheets all the time takes more time than letting the monkey go wild, let’s increase the time per typed character (right or wrong), from 1 second to… let’s say, 60 times more. A whole minute. And since the monkey will type junk 29/30 of the time, it’ll take around 30min to type the right character.

It would take even longer, right? Well… not really. Shakespeare’s complete works have around 5 million characters, so the process should take 5*10⁶ * 30min = 2.5 million hours, or 285 years.

But we could do it even better. This approach has a single monkey doing all the work; the paper has 200k of them. We could split Shakespeare’s complete works into 200k strings of 25 chars each, and assign each string to a monkey. Each monkey would complete their assignment, on average, after 12h30min; some will take a bit longer, but now we aren’t talking about the thermal death of the universe or even centuries, it’ll take at most a few days.


Why am I sharing this? I’m not invalidating the paper, mind you, it’s cool maths.

I’ve found this metaphor of monkeys typing Shakespeare quite a bit in my teen years, when I still arsed myself to discuss with creationists. You know, the sort of people who thinks that complex life can’t appear due to random mutations, just like a monkey can’t type the full works of Shakespeare.

Complex life is not the result of a single “big” mutation, like a monkey typing the full thing out of the blue; it involves selection and inheritance, as the sheets of paper being copied or discarded.

And just like assigning tasks to different monkeys, multiple mutations can pop up independently and get recombined. Not just among sexual beings; even bacteria can transmit genes horizontally.

Already back then (inb4 yes, I was a weird teen…) I developed the skeleton of this reasoning. Now I just plopped the numbers that the paper uses, and here we go.

original_reader@lemm.ee on 31 Oct 2024 07:04 next collapse

You either spend your life really well or you have way too much time on your hands.

Either way I read your post with happy curiosity. 🙂

Ookami38@sh.itjust.works on 31 Oct 2024 07:35 next collapse

I think the point is less about any kind of route to Hamlet, and more about the absurdity of infinite tries in a finite space(time). There are a finite (but extremely large) number of configurations of English characters in a work the length of Hamlet. If you have truly an infinite number of attempts (monkeys, time, or both are actually infinite) and the trials are all truly random (every character is guaranteed to have the same chance as every other) then you will necessarily arrive at that configuration eventually.

As far as your process, of procedurally generating each letter one by one until you have the completed works, we actually have a monkey who more or less did that already. His name is William.

gwen@lemmy.dbzer0.com on 31 Oct 2024 08:41 next collapse

monkey who more or less did that already. His name is William.

???

HelixDab2@lemm.ee on 31 Oct 2024 10:21 next collapse

Well. technically he was an ape rather than a monkey.

Ookami38@sh.itjust.works on 31 Oct 2024 12:54 collapse

Technically true, I think it still fits for the layman.

Klear@lemmy.world on 31 Oct 2024 10:24 next collapse

Humans are apes, apes are monkeys, paraphyletic groups are bullshit.

gwen@lemmy.dbzer0.com on 31 Oct 2024 10:53 next collapse

isnt that a misconception? apes just share a common ancestor with us

Ookami38@sh.itjust.works on 31 Oct 2024 12:55 collapse

To be entirely fair, apes aren’t monkeys. I don’t think that particular distinction is really all that relevant to the discussion, but technically…

Klear@lemmy.world on 31 Oct 2024 13:58 collapse

From wikipedia:

Traditionally, all animals in the group now known as simians are counted as monkeys except the apes. Thus monkeys, in that sense, constitute an incomplete paraphyletic grouping; however, in the broader sense based on cladistics, apes (Hominoidea) are also included, making the terms monkeys and simians synonyms in regard to their scope.

Ookami38@sh.itjust.works on 31 Oct 2024 15:55 collapse

Oh neat. This is all taxonomy that is well beyond me. My defense of calling humans monkeys is that everyone does it, and that’s how language works. Glad to know I’m correct too, technically lol

Klear@lemmy.world on 31 Oct 2024 16:25 collapse

Username checks out.

Ookami38@sh.itjust.works on 31 Oct 2024 12:55 collapse

Ol Bill Shakespeare. He wrote Hamlet, one correct letter at a time.

lvxferre@mander.xyz on 31 Oct 2024 17:38 collapse

I think the point is less about any kind of route to Hamlet, and more about the absurdity of infinite tries in a finite space(time).

I know. It’s just that creationists misuse that metaphor so often that I couldn’t help but share my brainfart here.

Lemming6969@lemmy.world on 31 Oct 2024 10:45 next collapse

This changes the rules though from check at the end to check at every letter. That’s where the real efficiency gain is… The insertion of an all knowing checker who could have written it himself anyway. The math of permutations vs combinations changes drastically if we change the rules.

lvxferre@mander.xyz on 31 Oct 2024 17:39 collapse

The insertion of an all knowing checker who could have written it himself anyway

The checker does make all the difference, but he doesn’t need to be able to write it by himself. It could be even a brainless process, such as natural selection.

palordrolap@fedia.io on 31 Oct 2024 11:19 next collapse

Among other problems, this fails to account for non-typing activities performed by the monkey, such as damaging the typewriter or attacking the researcher.

285 years increases to a few thousand if you alarmingly frequently have to clean the contents of a monkey's colon out of a typewriter.

And at some point you'd want to further "refine" your selection process by "repairing" the typewriter to have fewer keys and/or causing the typewriter to jam after the required key press. Monkeys like to press the same key over and over again. Good luck getting them to stop once they've pressed a key once.

TL;DR monkeys are chaos, and this will not be easy.

lando55@lemmy.world on 31 Oct 2024 11:38 collapse

I feel like you might have interviewed for Google in the late 2000s

Kethal@lemmy.world on 31 Oct 2024 06:06 next collapse

Use infinite monkeys.

dudenas@slrpnk.net on 31 Oct 2024 07:05 next collapse

They forgot the lifespan of the monkey, those thought experimenters.

fjordbasa@lemmy.world on 31 Oct 2024 07:53 next collapse

It was the best of times, it was the blurst of times??

You stupid monkey!

EmbarrassedDrum@lemmy.dbzer0.com on 31 Oct 2024 09:37 next collapse

I knew this would be a waste of time! *loads gun

Dagwood222@lemm.ee on 31 Oct 2024 11:29 collapse

I can’t remember the author or title, but that was the idea for a story I once read.

God sends an angel and the monkeys to do the job. They get close, but when the angel is doing the final read through he sees "…to be, or not to beee, Damn the ‘E’ key is sticking. " And they have to start over

echodot@feddit.uk on 31 Oct 2024 09:01 next collapse

If a tree folds in the forest and there’s no one there to hear it does it make a sound?

For this experiment scientists recruited Gilbert, no one really pays much attention to him, and it’s assumed the universe won’t either.

betterdeadthanreddit@lemmy.world on 31 Oct 2024 09:33 next collapse

Strong entry for an Ig Nobel Prize if nothing else.

Skoobie@sh.itjust.works on 31 Oct 2024 11:35 next collapse

Alright then. 2 monkeys… 3? 4? The answer has to be a number lol.

r4venw@sh.itjust.works on 31 Oct 2024 11:47 next collapse

42 monkeys?

bstix@feddit.dk on 31 Oct 2024 13:51 collapse

Well it isn’t 6.

From Wikipedia:

In 2002, lecturers and students from the University of Plymouth MediaLab Arts course used a £2,000 grant from the Arts Council to study the literary output of real monkeys. They left a computer keyboard in the enclosure of six Celebes crested macaques in Paignton Zoo in Devon, England from May 1 to June 22, with a radio link to broadcast the results on a website. Not only did the monkeys produce nothing but five total pages largely consisting of the letter “S”,the lead male began striking the keyboard with a stone, and other monkeys followed by urinating and defecating on the machine

Mike Phillips, director of the university’s Institute of Digital Arts and Technology (i-DAT), said that the artist-funded project was primarily performance art, and they had learned “an awful lot” from it. He concluded that monkeys "are not random generators. They’re more complex than that

shrugs@lemmy.world on 31 Oct 2024 11:48 next collapse

So, while the Infinite Monkey Theorem is true, it is also somewhat misleading.

Is it though? The Monkey Theorem should make it understandable how long infinity really is. That the lifetime of the universe is not long enough is nothing unexpected IMHO, infinity is much (infinitely) longer. And that’s what the theorem is about, isn’t it?!

Pyr_Pressure@lemmy.ca on 31 Oct 2024 12:49 collapse

Except the lifetime of the universe is quite small when compared to infinity, so it doesn’t really convey how large infinity is because it’s so much more.

Takumidesh@lemmy.world on 31 Oct 2024 13:19 collapse

They don’t convey the same information.

Infinity isn’t really an amount of something.

bitjunkie@lemmy.world on 31 Oct 2024 13:35 next collapse

> typeof Infinity
'number'

Riddle me that, smart guy.

Takumidesh@lemmy.world on 31 Oct 2024 14:37 collapse

Damn, you just SLAMMED me.

Pyr_Pressure@lemmy.ca on 01 Nov 2024 01:19 collapse

Yes I know, but I was just trying to put into the perspective the person I was replying to.

Clinicallydepressedpoochie@lemmy.world on 31 Oct 2024 11:55 next collapse

Their assumptions must be wrong. They do not account for the most basic principle of the universe, “the show must go on.”

jordanlund@lemmy.world on 31 Oct 2024 12:27 next collapse

The statement isn’t about “A” monkey. It’s about an infinite amount of monkeys.

todd_bonzalez@lemm.ee on 31 Oct 2024 12:41 collapse

And an infinite amount of time.

This “rebuttal” is forced contrarianism. It’s embarrassing.

A thought experiment has rules, you can’t just change them and say the experiment doesn’t make sense…

ozymandias117@lemmy.world on 31 Oct 2024 12:59 next collapse

For what it’s worth, it seems like it’s this “journalist” trying to make a sensational headline

The researchers themselves very clearly just tried to see if it could happen in our reality

“We decided to look at the probability of a given string of letters being typed by a finite number of monkeys within a finite time period consistent with estimates for the lifespan of our universe,”

Cryophilia@lemmy.world on 31 Oct 2024 21:55 collapse

Hypothesis: every science journalist should be placed in front of a bitch-slapping machine for the rest of their career. Every time they think about writing an article, they get bitch slapped. This will greatly improve the quality of science journalism.

funkless_eck@sh.itjust.works on 31 Oct 2024 13:29 next collapse

The other part of it is there’s not only one monkey who does Hamlet correct on the first attempt, there’s two, three four, guess what - an infinite amount of them.

And another infinity that get it right after 5 minutes

Another infinity that take exactly 10 years 3 months 2 days 3 hours 4 minutes and 17 seconds

And another infinity that takes one second less than the life of the universe

And another infinity that takes a googleplex of the lifetime of the universe to complete

that’s the point of the thought experiment

[deleted] on 31 Oct 2024 14:46 collapse

.

todd_bonzalez@lemm.ee on 31 Oct 2024 12:39 next collapse

How is the infinite monkey theorum “misleading”. It’s got “infinite” in the name. If you’re applying constraints based on the size or age of the universe, you are fundamentally misunderstanding the thought experiment.

Buddahriffic@lemmy.world on 31 Oct 2024 17:40 collapse

Infinite monkeys would produce everything in the time that it would take to type it out as fast as anyone can type, infinite times. There would also be infinite variations of slower versions, including an infinite number of versions where everything but the final period is written, but it never gets added (same with every other permutation of missing characters and extra ones added).

There would be infinite monkeys that only type one of Shakespeare’s plays or poems, and infinite monkeys that type some number greater than that, and even infinite monkeys that type out plays Shakespeare wanted to write but never got around to, plus infinite fan fictions about one or more of his plays.

Like infinite variations of plays where Juliette kills Hamlet, Ceasar puts on a miraculous defense and then divides Europe into the modern countries it’s made up of today, Romeo falls in love with King Lear, and Transformers save the Thundercats from the Teenaged Mutant Ninja Turtles who were brainwashed to think they were ancient normal samurai lizards. Some variations having all of that in the same play.

That’s the thing about infinity. If there’s any chance of something happening at all, it happens infinite times.

Even meta variants would all happen. Like if there’s any chance a group of monkeys typing randomly on typewriters could form a computer, there would be infinite variations of that computer in that infinite field of monkeys, including infinite ones that are trying to stimulate infinite monkeys making up a computer to verify that those monkeys make up a valid computer worth building and don’t have some bug where the temperature gets too high and melts some of the monkeys or the food delivery system isn’t fast enough to keep up and breaks down because monkeys get too tired to keep up with necessary timings.

BUT, even though all of these would exist in that infinite sea of monkeys, there would be far more monkeys just doing monkey things. So many more that you could spend your whole lifetime jumping to random locations within that sea of monkeys and never see any of the random organization popping out, despite an infinite number of monkeys and societies of monkeys dedicating their whole existence to making sure you, specifically, can find them (they might be too busy fighting off the infinite number of monkeys and societies of monkeys dedicating their lives to prevent you from ever finding non-noise in the sea of monkeys).

PetteriSkaffari@lemmy.world on 31 Oct 2024 22:29 collapse

Yeah sure, they’ll probably also have typed all posts on Lemmy, including those that have not been posted yet.

geneva_convenience@lemmy.ml on 01 Nov 2024 19:04 collapse

If those monkeys existed there is an infinite chance you are right.

ColeSloth@discuss.tchncs.de on 31 Oct 2024 12:52 next collapse

Really, it just takes an infinite amount of monkeys one time.

samus12345@lemmy.world on 31 Oct 2024 13:08 next collapse

I always heard that it was an infinite number of monkeys, not just one. So one of them might get the job done in time.

Cryophilia@lemmy.world on 31 Oct 2024 21:57 collapse

One of them is mathematically guaranteed to get the job done in time.

In fact - and here’s the trippy part - an infinite number of them is mathematically guaranteed to get the job done in time.

werefreeatlast@lemmy.world on 31 Oct 2024 13:24 next collapse

How about 4 monkeys in parallel?

bitjunkie@lemmy.world on 31 Oct 2024 13:33 next collapse

Switch to AMD. More monkeys.

Waldowal@lemmy.world on 31 Oct 2024 14:31 collapse

Yes, and add an Agile framework. Extreme Monkey typing.

werefreeatlast@lemmy.world on 31 Oct 2024 14:51 collapse

What about monkey AI to get ahead using lower paid monkeys?

Jubei_K_08@lemmy.world on 31 Oct 2024 13:31 next collapse

This must be a very important question to whoever keeps funding these studies.

Overshoot2648@lemm.ee on 31 Oct 2024 13:30 next collapse

How is this a study? It’s just basic probability on a bogo sort style algorithm.

Yaysuz@lemm.ee on 31 Oct 2024 15:05 collapse

It’s not a “study”, it’s just 2 mathematicians having some fun. The paper is a good read, and as a math teacher I see a lot of pedagogical values in such publications.

style99@lemm.ee on 31 Oct 2024 13:59 next collapse

This sort of study shows you more how mathematicians think than how science or philosophy works.

TheObviousSolution@lemm.ee on 31 Oct 2024 14:42 next collapse

They are, however, exceptionally adept at political speechwriting.

explodicle@sh.itjust.works on 31 Oct 2024 15:19 next collapse

This is a false flag study to undermine public support for mathematics research!

humanspiral@lemmy.ca on 31 Oct 2024 15:25 next collapse

There was a plank computer post here last couple of days. It showed an atomic sized computer performing one crack attempt every 10^-44 seconds would take a 95 character alphabet 100 years to crack a 121 character password.

Monkeys take up 1m^3. 10^105 bigger than a plank length. Typing 120wpm is 10^43 slower. Ignoring punctuation and spaces and capitalization, a 26 character alphabet allows for about 52 more characters than a 95 character alphabet.

Bottom line, monkeys can’t come anywhere close to being able to crack a 100 character password from a 26 character alphabet.

meep_launcher@lemm.ee on 31 Oct 2024 16:45 collapse

Okay but here me out, what if we 10^43 more monkeys to balance out the speed?

In fact, let’s push this to an extreme. We get enough monkeys that their mass turns them all into one black hole. Inside the black hole, the laws of physics get all fucked. Next we need to somehow dissolve the event horizon as explained in This Kurzgesagt video. Once that happens and we are left with a bare singularity, anything can pop out of it, including a copy of Hamlet.

The monkeys, however, will very likely be dead.

mlg@lemmy.world on 31 Oct 2024 16:16 next collapse

That’s because they only considered one monkey.

You need a thousand monkeys working at a thousand typewriters.

Kabaka@lemmy.blahaj.zone on 31 Oct 2024 16:46 collapse

They did not limit themselves to one monkey. From the article:

As well as a single monkey, they also did the calculations using the current global population of around 200,000 chimpanzees.

Bob_Robertson_IX@discuss.tchncs.de on 31 Oct 2024 16:49 next collapse

The whole study is trash. A chimpanzee is not a monkey.

mlg@lemmy.world on 31 Oct 2024 20:54 collapse

It was the beat of times, it was the blurst of times

BradleyUffner@lemmy.world on 31 Oct 2024 21:42 collapse

Stupid monkey

SlapnutsGT@lemmy.world on 31 Oct 2024 16:23 next collapse

But what if we had infinite monkeys 🤔

CileTheSane@lemmy.ca on 31 Oct 2024 16:41 collapse

We have an infinite number of monkeys, one of them already wrote Hamlet.

5in1k@lemm.ee on 31 Oct 2024 16:24 next collapse

Seems to not understand the thought experiment which is a way to contemplate infinity.

nednobbins@lemm.ee on 31 Oct 2024 16:39 next collapse

In other news, exponents make things big.

Any time you have an X>1 and a big n, X^n gets huge.

X=26 (if we ignore punctuation, spaces, and capitalization).
N=130,000

Kolanaki@yiffit.net on 31 Oct 2024 16:47 next collapse

Well you’re not supposed to just have one. It’s supposed to be a thousand monkies at a thousand typewriters.

Now do the Mythbusters thing and figure out how many monkies and typewriters it would take for them to write Hamlet in just under a year. Don’t just solve the myth; put it to the test!

LifeInMultipleChoice@lemmy.dbzer0.com on 31 Oct 2024 17:07 next collapse

I’m still mad we are giving them typewriters instead of keyboards. Think of the arthritis! Ergonomics please!

sugar_in_your_tea@sh.itjust.works on 31 Oct 2024 20:55 next collapse

As well as a single monkey, they also did the calculations using the current global population of around 200,000 chimpanzees, and they assumed a rather productive typing speed of one key every second until the end of the universe in about 10100 years.

They did 200k monkeys, so a little overkill from your expectations.

PetteriSkaffari@lemmy.world on 31 Oct 2024 22:25 collapse

What if the monkeys evolve to higher intelligence as time passes by?

WhiskyTangoFoxtrot@lemmy.world on 31 Oct 2024 22:39 collapse

You maniacs!

pirat@lemmy.world on 31 Oct 2024 23:20 collapse

I thought it was supposed to be an infinite amount of monkeys, since it’s known as “infinite monkey theorem”, but apparently, according to Wikipedia,

The infinite monkey theorem states that a monkey hitting keys at random on a typewriter keyboard for an infinite amount of time will almost surely type any given text, including the complete works of William Shakespeare. […]

[…] can be generalized to state that any sequence of events that has a non-zero probability of happening will almost certainly occur an infinite number of times, given an infinite amount of time or a universe that is infinite in size.

However, I think, as long as either the timeframe or monkey amount is infinite, it should lead to the same results. So, why even limit one of them on this theoretical level after all?

The linked study even seems to limit both, so they’re not quite investigating the actual classic theorem of one monkey with infinite time, it seems.

MentallyExhausted@reddthat.com on 31 Oct 2024 17:50 next collapse

It was the best of times, it was the blurst of times? You stupid monkey!

SimpleMachine@lemmy.world on 31 Oct 2024 20:33 next collapse

Ignoring the obvious flaw of throwing out the importance of infinity here, they would be exceedingly unlikely but technically not unable. A random occurrence is just as likely to happen on try number 1 as it is on try number 10 billion. It doesn’t become any more or less likely as iterations occur. This is an all too common failure of understanding how probabilities work.

sugar_in_your_tea@sh.itjust.works on 31 Oct 2024 20:54 next collapse

The results reveal that it is possible (around a 5% chance) for a single chimp to type the word “bananas” in its own lifetime.

That sounds a little low to me. B and N are right next to each other, so I’d expect them to mash left and right among similar keys a lot of the time. Then again, I think we’re expecting some randomness here, not an actual chimp at a typewriter, but that’s probably more likely to reproduce longer works than an actual chimp.

cammoblammo@lemmy.world on 01 Nov 2024 02:41 collapse

I get annoyed when websites say something like, ´Using a password of this strength will take a a hacker one million years to brute force.´

No, it’ll take a million years to try every combination and permutation of allowed characters. Chances are your password will be tried much sooner than that.

tomalley8342@lemmy.world on 01 Nov 2024 05:36 next collapse

When they say such things, the are probably talking about the expected value, where those chances are taken into account, just like the number calculated in this article.

[deleted] on 01 Nov 2024 21:50 next collapse

.

Cyber@feddit.uk on 01 Nov 2024 21:50 collapse

And apparently monkey is only the 6th password attempt to try:

en.m.wikipedia.org/w/index.php?title=List_of_the_…

uriel238@lemmy.blahaj.zone on 31 Oct 2024 20:52 next collapse

So the secret to this thought experiment is to understand that infinite is big. Really big. You just won’t believe how vastly, hugely, mind-bogglingly big it is…

The lifespan of the universe from big bang to heat death (the longest scenario) is a blink of an eye to eternity. The breadth and size of the universe – not just what we can see, but how big it is with all the inflation bits, even as its expanding faster than the speed of light – just a mote in a sunbeam compared to infinity.

Infinity itself looks flat and uninteresting. Looking up into the night sky is looking into infinity – distance is incomprehensible and therefore meaningless. And thus we don’t imagine just how vast and literally impossible infinity is.

With an infinite number of monkeys, not only will you get one that will write out a Hamlet script perfectly the first time, formatted exactly as you need it, but you’ll have an infinite number of them. Yes, the percentage of the total will be very small (though not infinitesimally so), and even if you do a partial search you’re going to get a lot of false hits. But 0.000001% of ∞ is still ∞. ∞ / [Graham’s Number] = ∞

It’s a lot of monkeys.

Now, because the monkeys and typewriters and Shakespeare thought experiment isn’t super useful unless you’re dealing with angels and devils (they get to play with infinities. The real world is all normal numbers) the model has been paired down in Dawkin’s Weasel ( on Wikipedia ) and Weasel Programs which demonstrate how evolution (specifically biological evolution) isn’t random rather has random features, but natural selection is informed by, well, selection. Specifically survivability in a harsh environment. When slow rabbits fail to breed, the rabbits will mutate to be faster over generations.

Blackmist@feddit.uk on 31 Oct 2024 21:43 next collapse

What caught me out recently was infinity minus infinity.

It does not equal zero. Instead it breaks your sorting algorithm.

reksas@sopuli.xyz on 31 Oct 2024 22:12 collapse

infinite amount of monkeys could produce infinite amount of information, i dont see the point

uriel238@lemmy.blahaj.zone on 31 Oct 2024 23:42 collapse

The original thought experiment had to do with playing around with infinity, which is a whole field of mathematics with a lot of crossover. It raises questions like whether we can assume any fixed-length sequence of digits can be found somewhere in the mantissa of a given irrational number (say, π).

Blackmist@feddit.uk on 31 Oct 2024 21:28 next collapse

OK, what about 2 monkeys?

Cryophilia@lemmy.world on 31 Oct 2024 21:50 collapse

The whole point of the thought experiment is that you have infinite monkeys.

Zorque@lemmy.world on 31 Oct 2024 22:34 next collapse

So… three monkeys?

tb_@lemmy.world on 31 Oct 2024 22:40 collapse

At least

LovableSidekick@lemmy.world on 01 Nov 2024 02:36 collapse

I don’t think so, because if you had infinite monkeys an infinite number of them would get it on the first try.

Cryophilia@lemmy.world on 01 Nov 2024 02:49 collapse

Exactly. That’s the point.

Gradually_Adjusting@lemmy.world on 01 Nov 2024 02:55 collapse

I don’t think it works honestly. You’d need a monkey with a lasting and dutiful commitment to true randomness to ever get anything but a finite number of button mashing variations. Monkeys like that don’t come cheaply.

Cryophilia@lemmy.world on 01 Nov 2024 02:57 collapse

Within that finite set, one combination is the complete text of Hamlet.

Gradually_Adjusting@lemmy.world on 01 Nov 2024 03:11 collapse

I honestly don’t think so, bestie. Monkey’s not gonna press the keys randomly at all. Somewhere in the recesses of his monkey neurons he’ll have made implicit connections between letters and letter combinations. This is the infinite typewriter monkey, not some two-bit organ grinder’s bitch. This monkey has been places, probably been through hell getting to this position in life. Seen wars, been across the globe, and now he’s the star of a famous thought experiment. He loves lowercase t because he’s a devout Christian after having been rescued by that missionary, and being a monkey he doesn’t quite grasp the distinction. Wanna see what he wrote? tttt hhdfyb my ik t tkkoptt aa aaaa Bernardo : Who’s there? tt ttt eeertyuhjk t

You call that random?

aleonem@lemmy.today on 31 Oct 2024 22:28 next collapse

What if it’s a smart monkey?

humorlessrepost@lemmy.world on 01 Nov 2024 02:10 collapse

Of our sample size, 100% of “smart” (capable of symbolic language) monkey species have already written Hamlet.

onnekas@sopuli.xyz on 31 Oct 2024 22:46 next collapse

There’s still a chance that a monkey will type it on the first attempt. It’s just very small.

SuperZorro@discuss.tchncs.de on 01 Nov 2024 18:26 collapse

If I understand statistics correctly, it’s actually a 50/50 chance.

vane@lemmy.world on 01 Nov 2024 02:02 next collapse

Maybe it’s becaue scientists have very poor imagination of the universe.

LovableSidekick@lemmy.world on 01 Nov 2024 02:28 next collapse

I’ve read there are so many permutations of a standard deck of 52 playing cards, that in all the times decks have been shuffled through history, there’s almost no chance any given arrangement has ever been repeated. If we could teach monkeys to shuffle cards I wonder how long it would take them to do it.

hardcoreufo@lemmy.world on 01 Nov 2024 04:04 collapse

There are 8.0658*10^67 orders you can shuffle a card deck in.

The math is easy. It’s just 52! if your calculator has that function which is really 525150…32*1. There are 52 possibilities for the first card 51 for the second since you’ve already used one card and so on.

How many decks of cards have been shuffled over human history, or will be is beyond me.

sorter_plainview@lemmy.today on 01 Nov 2024 07:37 next collapse

For those who are confused, the comment meant to say

52*51*50*…*3*2*1

i.e. 52 × 51 × 50 × … × 3 × 2 × 1

Markdown syntax screwed it up.

hardcoreufo@lemmy.world on 03 Nov 2024 03:44 collapse

Oh I didn’t notice it did that. thanks for fixing it.

LovableSidekick@lemmy.world on 01 Nov 2024 20:50 collapse

Yeah that’s the part that isn’t easy.

communism@lemmy.ml on 01 Nov 2024 02:30 next collapse

Fuuuuck there goes my plan to get this monkey to write Hamlet within the lifetime of the universe…

irotsoma@lemmy.world on 01 Nov 2024 04:29 next collapse

Lifetime of the universe is infinitely less than infinite time. So they solved for the wrong problem. Of course it may take longer than the life of the universe, or it may happen in a year. That’s the whole point of the concepts of infinity and true randomness. Once you put a limit on time or a restriction on randomness, then the thought experiment is broken. You’ve totally changed the equation.

SlamWich@lemmy.world on 01 Nov 2024 04:34 next collapse

This is clownery, humanity is infinite monkeys, and we wrote Hamlet ages ago.

CaptKoala@lemmy.ml on 01 Nov 2024 06:37 next collapse

Everyone keeps forgetting that we’re all just what monkeys evolved into…

superkret@feddit.org on 01 Nov 2024 07:00 collapse

Actually, both monkeys and us are what our common ancestors evolved into. Which was neither a human nor a monkey.

kofe@lemmy.world on 01 Nov 2024 18:43 collapse

Are they arguing it wasn’t random though? I mean Shakespeare had to think through the plot and everything, not just scribble nonsense on a page

pinkystew@reddthat.com on 01 Nov 2024 19:22 collapse

The thought experiment suggests that over a long enough period of time, every possible combination of letters would be typed out on a keyboard, including Hamlet.

They are not arguing about randomness, as it is inherent to the thought experiment. Randomness is necessary for the experiment to occur.

They are arguing that the universe would be dead before the time criteria is met. It is a bitter and sarcastic conclusion to the thought experiment, and is supposed to be funny.

In conversation, it would be delivered like this:

“You know, over a long enough period of time, monkeys smashing typewriters randomly would eventually produce Hamlet”

“The universe isn’t going to last that long.”

pinkystew@reddthat.com on 01 Nov 2024 19:30 collapse

Nobody asked but I had to share this

It’s important to me that everyone understands the joke, even if that understanding robs them of the joy of it. “Explaining a joke is like dissecting a frog. It kills it”.

But it’s important because I suffered a lot of being left out as a kid. Others found how good it felt to be exclusive, and shoulder me out of things, or refuse to explain things, or whatever it was that made me the outcast. I could tell from their faces that they love the way it felt when they did that to me. But it hurt me a lot.

I don’t want there to be any exclusivity anymore. Nobody deserves that pain. I want everyone to understand the joke, even if that prevents them from ever laughing at it.

[deleted] on 01 Nov 2024 19:02 next collapse

.

Honytawk@lemmy.zip on 01 Nov 2024 20:31 collapse

But we aren’t talking about one monkey. We are talking about infinite monkeys.

Infinity is already a loaded concept in our universe.