MHB Find the probability of being same

  • Thread starter Thread starter Diganta281
  • Start date Start date
  • Tags Tags
    Probability
AI Thread Summary
The discussion revolves around calculating the probability that two files, A and B, of 8192 bytes (65536 bits) are identical. Initially, the probability is determined to be 1/2^65536, assuming any bit sequence is possible. However, the problem becomes more complex when it is specified that both files contain 16384 bits filled with 1s and the rest with 0s, suggesting that the probability of them being the same would increase. The challenge lies in recalculating the probability given this new constraint, which complicates the initial approach. The consensus is that the question is not straightforward and requires a more nuanced analysis.
Diganta281
Messages
3
Reaction score
0
This question is somewhat related to computer but deals with a big lot of probability.I have been given two files (A and B) of size 8192 bytes and is asked to find the probability of that file B is same as file A.I know that for two files to be same, they should have same bit sequence i.e same sequence of 1s and 0s.
As the files are of 8192 bytes so they have (8192*8) i.e 65536 bits.
Now our sample space (S) includes all the probable bit sequences of file A.
Using the formulae variation^length, I got that n(S)=2 ^65536
[Since , variations are 1 and 0 i.e 2 variations and length =65536 bits]
Now , Since file B can have only one sequence of bits
\therefore n(E)=1 [let E denote the set of favourable outcomes to the event that file B is same as file A]
\therefore probability of the matching of the two files = n(E)/ n(S) =1/2^65536 = 2^-65536

Upto this it is clear to me but the real problem starts in the next part :
In the next part of problem it is given that file A as well as file B have 16384 bits filled with 1s and the rest bits filled with 0s.
Now certainly the above found probability would increase as in the above part we have considered that both file A and B can have as many 1s and 0s required to fill the complete sequence of bits.
Now I am not able to figure out what the probability of both the files being same would be!
Plz help me soon...
 
Mathematics news on Phys.org
Diganta28 said:
This question is somewhat related to computer but deals with a big lot of probability.I have been given two files (A and B) of size 8192 bytes and is asked to find the probability of that file B is same as file A.I know that for two files to be same, they should have same bit sequence i.e same sequence of 1s and 0s.
As the files are of 8192 bytes so they have (8192*8) i.e 65536 bits.
Now our sample space (S) includes all the probable bit sequences of file A.
Using the formulae variation^length, I got that n(S)=2 ^65536
[Since , variations are 1 and 0 i.e 2 variations and length =65536 bits]
Now , Since file B can have only one sequence of bits
\therefore n(E)=1 [let E denote the set of favourable outcomes to the event that file B is same as file A]
\therefore probability of the matching of the two files = n(E)/ n(S) =1/2^65536 = 2^-65536

Upto this it is clear to me but the real problem starts in the next part :
In the next part of problem it is given that file A as well as file B have 16384 bits filled with 1s and the rest bits filled with 0s.
Now certainly the above found probability would increase as in the above part we have considered that both file A and B can have as many 1s and 0s required to fill the complete sequence of bits.
Now I am not able to figure out what the probability of both the files being same would be!
Plz help me soon...

Your approach to the problem would be fair if any combination of 8192 bytes had the same probability, and this clearly is not true ... I think your question isn't easy to answer ...

Kind regards

$\chi$ $\sigma$
 
Seemingly by some mathematical coincidence, a hexagon of sides 2,2,7,7, 11, and 11 can be inscribed in a circle of radius 7. The other day I saw a math problem on line, which they said came from a Polish Olympiad, where you compute the length x of the 3rd side which is the same as the radius, so that the sides of length 2,x, and 11 are inscribed on the arc of a semi-circle. The law of cosines applied twice gives the answer for x of exactly 7, but the arithmetic is so complex that the...
Is it possible to arrange six pencils such that each one touches the other five? If so, how? This is an adaption of a Martin Gardner puzzle only I changed it from cigarettes to pencils and left out the clues because PF folks don’t need clues. From the book “My Best Mathematical and Logic Puzzles”. Dover, 1994.

Similar threads

Replies
3
Views
2K
Replies
2
Views
4K
Replies
2
Views
1K
Replies
8
Views
2K
Replies
1
Views
2K
Replies
1
Views
2K
Replies
9
Views
5K
Back
Top