• retagged by
35,239 views
65 65 votes
Two numbers are chosen independently and uniformly at random from the set $\{1,2,\ldots,13\}.$
The probability (rounded off to $3$ decimal places) that their $4\text{-bit}$ (unsigned) binary representations have the same most significant bit is ___________.

10 Answers

3 3 votes
1 to 7 have the most significant digit as 0. Rest 6 have 1 as MSB.

 

So, $((7*7) + (6 * 6) )/ (13 * 13)$

which is 0.5029
1 1 vote

Answer : 0.503

the word "chosen independently and uniformly at random" makes big impact on approach,

0001 , 0010 , 0011 , 0100 , 0101 , 0110 , 0111   total=7  :- have 0 at MSB

1000 , 1001 , 1010 , 1011 , 1100 , 1101              total=6 :- have 1 at MSB

(C(7,1)*C(7,1) + C(6,1)*C(6,1)) / ( C(13,1) * C(13,1) )

= ((7*7)+(6*6)) / (13*13) = 0.503

0 0 votes

We determine the probability that two numbers selected independently and uniformly from $\{1, 2, \dots, 13\}$ have the same most significant bit (MSB) in their 4-bit unsigned binary representation.

In 4-bit binary, the MSB is the $2^3 = 8$'s place:  

  • Numbers 1 to 7 have MSB = 0 → 7 numbers.  
  • Numbers 8 to 13 have MSB = 1 → 6 numbers.

1. First selection:  

  • Choose a number with MSB = 0 with probability $\frac{7}{13}$.  
  • Choose a number with MSB = 1 with probability $\frac{6}{13}$.

2. Second selection (independent):  

  • From the MSB = 0 branch, the second number has MSB = 0 with probability $\frac{7}{13}$ → path leads to same MSB.  
  • From the MSB = 1 branch, the second number has MSB = 1 with probability $\frac{6}{13}$ → path leads to same MSB.

According to the arrow method, the probability of each complete path is the product of the probabilities along its edges.

Thus:  

  • Probability of both having MSB = 0: $\frac{7}{13} \times \frac{7}{13} = \frac{49}{169}$  
  • Probability of both having MSB = 1: $\frac{6}{13} \times \frac{6}{13} = \frac{36}{169}$

Adding the probabilities of the two “same MSB” paths gives:  
$$
\frac{49 + 36}{169} = \frac{85}{169} \approx 0.503
$$

Therefore, the required probability, rounded to three decimal places, is 0.503.

Answer:
Position:
Show:

Related questions

31 31 votes
5 answers 5 answers
17.5k
17.5k views
Arjun asked Feb 7, 2019
17,538 views
In $16$-bit $2$’s complement representation, the decimal number $-28$ is:$1111 \: 1111 \: 0001 \: 1100$$0000 \: 0000 \: 1110 \: 0100$$1111 \: 1111 \: 1110 \: 0100$$1000 \...
50 50 votes
7 answers 7 answers
23.3k
23.3k views
Arjun asked Feb 7, 2019
23,261 views
Consider $Z=X-Y$ where $X, Y$ and Z are all in sign-magnitude form. X and Y are each represented in $n$ bits. To avoid overflow, the representation of $Z$ would require a...
80 80 votes
13 answers 13 answers
53.2k
53.2k views
Arjun asked Feb 7, 2019
53,173 views
What is the minimum number of $2$-input NOR gates required to implement a $4$ -variable function expressed in sum-of-minterms form as $f=\Sigma(0,2,5,7, 8, 10, 13, 15)?$ ...
60 60 votes
6 answers 6 answers
31.3k
31.3k views
Arjun asked Feb 7, 2019
31,317 views
An array of $25$ distinct elements is to be sorted using quicksort. Assume that the pivot element is chosen uniformly at random. The probability that the pivot element ge...