Can you solve the prisoner boxes riddle Yossi Elran

Your favorite band is great
at playing music,

but not so great at being organized.

They keep misplacing
their instruments on tour,

and it’s driving their manager mad.

On the day of the big concert,

the band wakes up
to find themselves tied up

in a windowless,
soundproof practice room.

Their manager explains what’s happening.

Outside, there are ten large boxes.

Each contains one of your instruments,

but don’t be fooled by the pictures -
they’ve been randomly placed.

I’m going to let you out one at a time.

While you’re outside, you can look
inside any five boxes

before security
takes you back to the tour bus.

You can’t touch the instruments

or in any way communicate what you find
to the others.

No marking the boxes, shouting, nothing.

If each one of you
can find your own instrument,

then you can play tonight.

Otherwise, the label is dropping you.

You have three minutes to think about it
before we start.

The band is in despair.

After all, each musician only has a 50%
chance of finding their instrument

by picking five random boxes.

And the chances that all ten will succeed
are even lower -

just 1 in 1024.

But suddenly, the drummer comes up
with a valid strategy

that has a better than 35% chance
of working.

Can you figure out what it was?

Pause the video on the next screen
if you want to figure it out for yourself!

Answer in: 3

Answer in: 2

Answer in: 1

Here’s what the drummer said:

Everyone first open the box
with the picture of your instrument.

If your instrument is inside, you’re done.

Otherwise, look at whatever’s in there,

and then open the box
with that picture on it.

Keep going that way until you find
your instrument.

The bandmates are skeptical,

but amazingly enough,
they all find what they need.

And a few hours later, they’re playing
to thousands of adoring fans.

So why did the drummer’s strategy work?

Each musician follows a linked sequence

that starts with the box whose outside
matches their instrument

and ends with the box
actually containing it.

Note that if they kept going,
that would lead them back to the start,

so this is a loop.

For example, if the boxes
are arranged like so,

the singer would open the first box
to find the drums,

go to the eighth box to find the bass,

and find her microphone in the third box,

which would point back to the first.

This works much better
than random guessing

because by starting with the box
with the picture of their instrument,

each musician restricts their search to
the loop that contains their instrument,

and there are decent odds, about 35%,

that all of the loops
will be of length five or less.

How do we calculate those odds?

For the sake of simplicity,
we’ll demonstrate with a simplified case,

four instruments and no more than
two guesses allowed for each musician.

Let’s start by finding
the odds of failure,

the chance that someone will need
to open three or four boxes

before they find their instrument.

There are six distinct four-box loops.

One fun way to count them
is to make a square,

put an instrument at each corner,

and draw the diagonals.

See how many unique loops you can find,

and keep in mind that these two
are considered the same,

they just start at different points.

These two, however, are different.

We can visualize the eight distinct
three-box loops using triangles.

You’ll find four possible triangles

depending on which instrument
you leave out,

and two distinct paths on each.

So of the 24 possible
combinations of boxes,

there are 14 that lead to faliure,

and ten that result in success.

That computational strategy works for any
even number of musicians,

but if you want a shortcut,

it generalizes to a handy equation.

Plug in ten musicians,
and we get odds of about 35%.

What if there were 1,000 musicians?

1,000,000?

As n increases,
the odds approach about 30%.

Not a guarantee, but with a bit of
musician’s luck, it’s far from hopeless.

Hi everybody, if you liked this riddle,
try solving these two.

你最喜欢的乐队
擅长演奏音乐,

但不擅长组织。

他们
在巡回演出中不断放错乐器

,这让他们的经理发疯了。

在大型音乐会的那天

,乐队醒来
时发现自己被绑

在一个没有窗户的
隔音练习室里。

他们的经理解释了正在发生的事情。

外面,有十个大箱子。

每个都包含您的一种乐器,

但不要被图片所迷惑 -
它们是随机放置的。

我一次让你一个人出去。

当您在外面时,您可以

安全带您回到旅游巴士之前查看任意五个盒子。

你不能触摸仪器

或以任何方式将你发现的东西传达
给其他人。

没有标记盒子,大喊大叫,什么都没有。

如果你们每个人
都能找到自己的乐器,

那么今晚就可以演奏。

否则,标签会让你失望。 在我们开始之前,

您有三分钟的时间考虑一下

乐队陷入了绝望。

毕竟,每个音乐家只有 50% 的
机会

通过随机选择五个盒子找到他们的乐器。

而所有十个成功的机会
甚至更低——

只有 1024 分之一。

但突然间,鼓手想出
了一个有效的策略

,该策略有超过 35%
的工作机会。

你能弄清楚那是什么吗?

如果您想自己弄清楚,请暂停下一个屏幕上的视频!

答案:3

答案:2

答案:1

鼓手是这样说的:

大家先打开
装有乐器图片的盒子。

如果你的仪器在里面,你就完成了。

否则,看看里面有什么,

然后打开上面
有那张照片的盒子。

继续这样做,直到找到
你的乐器。

乐队成员对此表示怀疑,

但令人惊讶的是,
他们都找到了他们需要的东西。

几个小时后,他们正在
为成千上万的狂热粉丝演奏。

那么为什么鼓手的策略奏效了呢?

每个音乐家都遵循一个链接序列

,该序列从外部与其乐器匹配的盒子开始,到

实际包含它的盒子结束。

请注意,如果他们继续前进,
那将导致他们回到起点,

所以这是一个循环。

例如,如果盒子
是这样排列的

,歌手会打开第一个
盒子找到鼓

,到第八个盒子找到贝司,

然后在第三个盒子里找到她的麦克风,

这会指向第一个。

这比随机猜测要好得多,

因为通过从
带有乐器图片的框开始,

每个音乐家将他们的搜索限制在
包含他们乐器的循环中,

并且有相当大的几率,大约 35%

,所有循环
都将是 长度为五或更少。

我们如何计算这些赔率?

为了简单起见,
我们将用一个简化的案例来演示,

四个乐器,
每个音乐家最多允许两次猜测。

让我们从找出
失败

的几率开始,即有人
需要打开三四个盒子

才能找到他们的乐器的可能性。

有六个不同的四盒循环。

计算它们的一种有趣方法
是制作一个正方形,

在每个角落放一个仪器,

然后画出对角线。

看看你能找到多少个独特的循环,

并记住这两个
被认为是相同的,

它们只是从不同的点开始。

然而,这两者是不同的。

我们可以使用三角形可视化八个不同的
三框循环。 根据您遗漏的工具,

您会找到四个可能的三角形

,每个三角形都有两条不同的路径。

因此,在 24 种可能的
组合组合中,

有 14 种会导致失败,

而 10 种会导致成功。

这种计算策略适用于任何
偶数的音乐家,

但如果你想要一个捷径,

它可以推广到一个方便的方程。

插入十个音乐家
,我们得到大约 35% 的几率。

如果有 1000 名音乐家会怎样?

1,000,000?

随着 n 的增加
,几率接近 30%。

不是保证,但有一点
音乐家的运气,它远非绝望。

大家好,如果您喜欢这个谜语,请
尝试解决这两个问题。