David W. answered 08/24/17
Tutor
4.7
(90)
Experienced Prof
Some reasonable assumptions are in order:
(1) Since nothing is said about "a string" and "some other string," we must assume that the MD5 hashes produced by them will have uniformly-distributed, random digits in the four positions that we select.
(2) the "digits" mentioned in the problem are hexadecimal digits (0-F), not bits (0-1).
With these assumptions, the problem may be re-worded:
Given a set of 16 digits, what is the probability of randomly selecting two groups of 4 digits that have the same 4 digits in them? [notes: repetition is permitted; now, you must determine whether order is important).