由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - Blind Passenger Problem (Brainteaser)
相关主题
An interview question about probability. (转载)一个概率题..
求解一道算法题请教一下一道EPI上面的题
[转帖]Passenger Service Agent - Bilingual (English / Mandarin)craziness is still going on
电梯设计题狗的无人车组怎么样
Uber Driver Allegedly Fractured His Passenger's Skull WithUA等大航空公司高至一半利润来自关联信用卡
打车公司一题求解the water and alcohol problem
TITLE: Sr. Research Staff Member/Leader: IT for Green Tech Research微软面试的小体会
another GS inverview question, help![合集] 微软Phone Internew问题
相关话题的讨论汇总
话题: seat话题: passenger话题: blind话题: 100th话题: 70th
进入JobHunting版参与讨论
1 (共1页)
c**********e
发帖数: 2007
1
There are 100 seats on a plane, and 100 ticketed passengers.
The first 2 passengers are blind. They board the plane first,
taking random 2 seats. Other passengers boards one by one: if
he finds his seat taken, he will take a random seat. If his
seat is not taken, he takes his own seat.
Question, what is chance of the last passenger gets his own
seat?
z*******e
发帖数: 122
2
The probability is 1/2. Actually the the 100th person can only sit on the
first seat or the 100th seat. Prove it by contradiction. If say the 100th
person sit in the 70th seat, it means that when the 100th person get into
the plan, the 70th seat is empty, this means that when the 70th person goes
into the plan, the 70th seat is empty, so the 70th person will seat in the
70th seat.
As a result, the 100th person can only seat in either the 1st or the 100th
seat. so the probability of seating in th
c**********e
发帖数: 2007
3
There are 2 blind men. The answer should be 1/3.
Your idea is good. The 100th passenger can only seat in 1st, 2nd or 100th
seat. But why the chances are equal?

goes

【在 z*******e 的大作中提到】
: The probability is 1/2. Actually the the 100th person can only sit on the
: first seat or the 100th seat. Prove it by contradiction. If say the 100th
: person sit in the 70th seat, it means that when the 100th person get into
: the plan, the 70th seat is empty, this means that when the 70th person goes
: into the plan, the 70th seat is empty, so the 70th person will seat in the
: 70th seat.
: As a result, the 100th person can only seat in either the 1st or the 100th
: seat. so the probability of seating in th

G******y
发帖数: 1831
4
There are two blinds, so you mean the probability is 1/3? Your logic is
right except one important thing: you need to show that the chance the two
or three open seat available have the same probability to be taken.
It can be shown this way: for everyone who is going to take the seats, these
three seats will be taken only when people randomly take seats. Thus it is
equally likely for each one to be taken (or not taken). The last person may
only sit on one of the three seats, with equal probabilit

【在 z*******e 的大作中提到】
: The probability is 1/2. Actually the the 100th person can only sit on the
: first seat or the 100th seat. Prove it by contradiction. If say the 100th
: person sit in the 70th seat, it means that when the 100th person get into
: the plan, the 70th seat is empty, this means that when the 70th person goes
: into the plan, the 70th seat is empty, so the 70th person will seat in the
: 70th seat.
: As a result, the 100th person can only seat in either the 1st or the 100th
: seat. so the probability of seating in th

x******e
发帖数: 1428
5
nice!!! can also be extended to multiple blinds cases.

goes

【在 z*******e 的大作中提到】
: The probability is 1/2. Actually the the 100th person can only sit on the
: first seat or the 100th seat. Prove it by contradiction. If say the 100th
: person sit in the 70th seat, it means that when the 100th person get into
: the plan, the 70th seat is empty, this means that when the 70th person goes
: into the plan, the 70th seat is empty, so the 70th person will seat in the
: 70th seat.
: As a result, the 100th person can only seat in either the 1st or the 100th
: seat. so the probability of seating in th

c**********e
发帖数: 2007
6
Guys, thank you for the good discussion and solution.
Good luck for your job search!
1 (共1页)
进入JobHunting版参与讨论
相关主题
[合集] 微软Phone Internew问题Uber Driver Allegedly Fractured His Passenger's Skull With
三四个phone interview, 写写问过得问题打车公司一题求解
job market 不错了 (转载)TITLE: Sr. Research Staff Member/Leader: IT for Green Tech Research
除了精华区,还有哪儿有brainteaser的题another GS inverview question, help!
An interview question about probability. (转载)一个概率题..
求解一道算法题请教一下一道EPI上面的题
[转帖]Passenger Service Agent - Bilingual (English / Mandarin)craziness is still going on
电梯设计题狗的无人车组怎么样
相关话题的讨论汇总
话题: seat话题: passenger话题: blind话题: 100th话题: 70th