It is all about interview puzzles and HR questions .

Tuesday, 20 March 2018

bob is the first person in the line

puzzle:-
People are waiting in line to board a 100-seat aeroplane. bob is the first person in the line. He gets on the plane but suddenly can’t remember what his seat number is, so he picks a seat at random. After that, each person who gets on the plane sits in their assigned seat if it’s available, otherwise they will choose an open seat at random to sit in.
The flight is full and you are last in line. What is the probability that you get to sit in your assigned seat?

Answer :-
The probability is indeed 1/2. There are two things to realize:
1. The probability that bob chooses his assigned seat is equal to the probability that he chooses your assigned seat.
2. In case that bob would choose neither his own seat nor yours, then there are two alternatives: if somebody else would choose bob’s seat at random, then you would get your assigned seat; otherwise you would be left with the bob’s seat.
With that being said, we can go on to find out the probability. With every person choosing a seat at random (including bob), there are there possible outcomes:
1. either he chooses your assigned seat, or
2. chooses the bob’s seat, or
3. chooses someone else’s seat.
Notice, that the probability of choosing bob’s seat is always equal to probability of taking your seat. That means that the probability of you getting your seat vs. not, is even. The case of a passenger choosing someone else’s seat doesn’t affect your final outcome in either way, it just passes that three possible alternatives to the next passenger.
Since the probability of someone taking your place is always equal to the probability of someone taking bob’s place (and this also applies to the penultimate passenger with only two seats left), the probability of you getting your assigned seat is in the end 50%

=====================================================================

====================================================================

0 comments:

Post a Comment

Popular Posts

Recent Posts

Categories

Unordered List

Join Us On Facebook

Please Wait 10 Seconds...!!!Skip

Text Widget

Blog Archive

Search This Blog

Powered by Blogger.

like us on facebook

Who is the man?

Puzzle :- Brother and sisters is have none but this man's father is my father's son? Who is the man? Answer :- The man is my ...

http://go.oclaserver.com/afu.php?zoneid=1633049