Question

In: Statistics and Probability

Compute the number of passwords of each type below along with how long it would take...

  1. Compute the number of passwords of each type below along with how long it would take to test all possible such passwords if it takes 1 nanosecond to test a password. Report the times in the most convenient human understandable form. In all of these, unless noted otherwise, order matters and repetition of characters is allowed.
    1. Passwords of length 8 with any combination of lowercase letters, uppercase letters, and numbers.
    2. Passwords that start with a capital letter, have 10 lowercase letters, and end with a number.
    3. Passwords that start with a capital letter, have between 10 and 20 lowercase letters, and end with a number.
    4. Passwords that have four words in them, where the words come from a list of 20,000 words.
    5. Passwords using the word ‘password’ with different uses of upper case and lower case letters, and also allowing for a substitution of a number for the letters such as ‘96553014’; each letter is uniquely represented by a number, e.g., p can be replaced with 9 but with no other number. Basically, we have 3 choices per letter in ‘password’. No reordering allowed.
    6. Which of these schemes would you use for your bank account?

Solutions

Expert Solution

Solution

Back-up Theory

If an Activity 1 can be done in n ways, another Activity 2 can be done in m ways and for every one way of doing Activity 1, there are m ways of doing Activity 2, then Activity 1 and Activity 2 can be simultaneously done in

(n x m) ways. This is the Rule of Multiplication applicable to both Permutations and Combinations........................... (1)

Number of ways of arranging n distinct things among themselves (i.e., permutations)

= n!

= n(n - 1)(n - 2) …… 3.2.1…………………………………………………………………................................................................................….(2)

Number of ways of arranging n distinct things taking only r at a time = nPr = (n!)/(n – r)! ……................................….(2a)

Values of n!can be directly obtained using Excel Function: Math & Trig FACT (Number).......................................... (2b)

Number of ways of arranging r things out of n things when the same thing can be selected any number of times

(i.e., with replacement or repetition is allowed) is given by nr..................................................................................... (2c)

Now, to work out the solution,

Trivial, but for clarity, there are 26 lowercase letters [a, b, ….., y, z], 26 uppercase letters [A, B, ….., Y, Z], and 10 numbers [0,1 , 2, ……, 8, 9]……………………………………………………………............................................… (4)

Order matters and repetition of characters is allowe…………………………………………………....................... (5)

One nanosecond = 10-9 x 1 second………………………………………………………………….....................…….. (6)

Part (a)

In total there are (26 + 26 + 10) = 62 characters available. Arranging any 8 out of these 62 characters can be done in 628 = 218340105584896 [vide (2c)]

So, number of passwords of length 8 with any combination of lowercase letters, uppercase letters, and numbers = 218340105584896 Answer 1

At the rate of 1 nanosecond per password, time taken to test

= 218340.1056 s = 60.65 hours [vide (6)] Answer 2

Part (b)

First character can be any one of 26 capital letters in 26 ways, last character can be any one of 10 numbers in 26 ways and intervening 10 characters can be any 10 of 26 lowercase letters in 2610 [vide (2c)] ways.

So, vide (1),

number of passwords that start with a capital letter, have 10 lowercase letters, and end with a number

= 26 x 10 x 2610

= 36703444869877800 Answer 3

At the rate of 1 nanosecond per password, time taken to test

= 36703444.869877800 s = 10195.40135 hours [vide (6)] Answer 4

Part (c)

Following the same analysis as in Part (b),

Number of passwords that start with a capital letter, have between 10 and 20 lowercase letters, and end with a number

= 26 x 10 x (2610 + 2611 + 2612 + 2613 + 2614 + 2615 + 2616 + 2617 + 2618 + 2619 + 2620 )

= 5.39E+30 Answer 5

At the rate of 1 nanosecond per password, time taken to test

= 1.49683E+18 hours [vide (6)] Answer 6

Part (d)

This is just permuting 20000 words taking any 4 with repetition and in any order = 2000004

Number of passwords that have four words in them, where the words come from a list of 20,000 words.

= 1.60E+17 Answer 7

At the rate of 1 nanosecond per password, time taken to test

= 11555555.56 hours [vide (6)] Answer 8

DONE


Related Solutions

Compute the number of passwords for the problem below along with how long it would take...
Compute the number of passwords for the problem below along with how long it would take to test such password if it takes 1 nanosecond to test a password. Report the times in hours. -Passwords using the word ‘password’ with different uses of upper case and lower case letters, and also allowing for a substitution of a number for the letters such as ‘96553014’; each letter is uniquely represented by a number, e.g., p can be replaced with 9 but...
Find the number of passwords that use each of the digits 3,4,5,6,7,8,9 exactly once. IN how...
Find the number of passwords that use each of the digits 3,4,5,6,7,8,9 exactly once. IN how many of the passwords: 1. are the four odd digits consecutive? 2. are no two odd digits consecutive? 3. are the first three digits even? 4. are the three even digits consecutive?
How many passwords are possible? Passwords must: be more than 8 characters long but no more...
How many passwords are possible? Passwords must: be more than 8 characters long but no more than 30 Use lower case, upper case, a number, and a special character [like ~ ! @ # $ % ^ & * ( ) _ + = ? > < . , / ] A mathematical expression is fine. What kind of PMF will be used?
What are the phases of fracture healing? How long does each stage take for a long...
What are the phases of fracture healing? How long does each stage take for a long bone vs a distal/small bone? How will this knowledge come into action when working with orthopedic patients?
If the economy is initially at a long run equilibrium, take each situation given below one...
If the economy is initially at a long run equilibrium, take each situation given below one by one and answer all four following questions for each of them by filling the blanks in the table below. (Hint: Always compare the change in the variable from initial position. Drawing the graphs for each situation should help to understand the change in variables.) Which curve is going to shift in which direction? (2×4) Explain how each of these will affect the economy...
At the speed of NASA’s fastest space probes, how long would it take to reach the...
At the speed of NASA’s fastest space probes, how long would it take to reach the nearest solar systems outside of our own?
1. a.) how long would it take in minutes to replicate the E. coli chromosome if...
1. a.) how long would it take in minutes to replicate the E. coli chromosome if it used unidirectional rather than bidirectional replication? Explain how you calculated this answer. b.) not accounting for individual chromosomes and telomeres, i.e., use genome size, polyerization rate, and number of origins, how long should it take in hours to replicate the diploid human genome? Explain how you calculated this answer. why is this calculated time less than the observed time?
How long would it take from the time you feel an earthquake for it to reach...
How long would it take from the time you feel an earthquake for it to reach another city 92.0 km away, if it shakes you with a frequency of 10 Hz and a has a wavelength of 600 m? 2. Two trains (on separate tracks) travel toward each other, the first at 60.0 km/s and the second at 40.0 km/s. Both turn on their whistle, the first one emitting a frequency of 200 Hz and the second one emitting a...
(a) How long (in s) would it take a 1.00 ✕ 105 kg airplane with engines...
(a) How long (in s) would it take a 1.00 ✕ 105 kg airplane with engines that produce of 100 MW of power to reach a speed of 200 m/s and an altitude of 12.0 km if air resistance were negligible? _? s (b) If it actually takes 950 s, what is the power applied, in megawatts? _? MW (c) Given this power, what is the average force (in kN) of air resistance if the airplane takes 1200 s? (Hint:...
(a) How long (in s) would it take a 1.00 ✕ 105 kg airplane with engines...
(a) How long (in s) would it take a 1.00 ✕ 105 kg airplane with engines that produce of 100 MW of power to reach a speed of 200 m/s and an altitude of 12.0 km if air resistance were negligible? _? s (b) If it actually takes 950 s, what is the power applied, in megawatts? _? MW (c)Given this power, what is the average force (in kN) of air resistance if the airplane takes 1200 s? (Hint: You...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT