Skip to content
Official PYQ · 2005

GATE CS 2005 Q52 — Probability: Random Variables and Distributions

Explain with AI

A random bit string of length n is constructed by tossing a fair coin n times and setting a bit to 0 or 1 depending on outcomes head and tail, respectively. The probability that two such randomly generated strings are not identical is:

Choose one option
View worked solution

Answer: D

Let S1S_1 and S2S_2 be two randomly generated bit strings of length nn.

Since each bit is generated independently by tossing a fair coin, there are 2n2^n possible unique bit strings of length nn, each equally likely to be generated.

For the two strings to be identical (S1=S2S_1 = S_2), whatever string is chosen for S1S_1, the second string S2S_2 must match it exactly. Since there is only 11 such matching string out of 2n2^n possibilities:

P(Strings are identical)=12nP(\text{Strings are identical}) = \frac{1}{2^n}

The probability that the two strings are not identical is the complement of this event:

P(Strings are not identical)=1−P(Strings are identical)=1−12nP(\text{Strings are not identical}) = 1 - P(\text{Strings are identical}) = 1 - \frac{1}{2^n}

Therefore, the correct option is D.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Probability: Random Variables and Distributions questions