(i) Code1: It has 6 digits chosen from 0 to 9. So the total available combinations are . In one attempt a person can only try one combination, so the probability that this combination is the correct code is
Code 2: The second code has 3 digits taken from 0 to 9, and 2 letters taken from 24 alphabets (Since I and O are excluded). So total available combinations are multiplied by 242. So 576,000 combinations. In one attempt a person can only try one combination, so the probability that this combination is the correct code is which is equal to
Since the probability for breaking the code in one try is more for code2, Code1 is the better code for preventing unauthorized access.
Comments