Use the above ideas to define a function psuccessperm(k,p) to compute
the permuted probability of success in k guesses. Check your function by computing the permuted probability of success for k=5 and 7.
(in R studio)
p<-c(0.22, 0.13,0.15, 0.02, 0.08, 0.1, 0.1, 0.1, 0.05, 0.05)
#apply the function here
 0.6  0.8
Discuss how the cryptographer could use these ideas to generate a better key if p is the distribution vector he has to work with?
367,984 students got unstuck by Course
Hero in the last week
Our Expert Tutors provide step by step solutions to help you excel in your courses