Exam 2 Flashcards
how do you get p[4|O] in the dice problem?
Consider all odd cases, look for sums of 4 within those cases
how do you get p[a|1]?
Use bayes theorem:
p[a|1] = ( p[1|a] p[a] ) / p[1]
how do you get p[1|a]?
refer to the table, look for 1 under a, add up the probabilities of the keys with 1
formula for joint probability
p[x,y]=p[x|y]p[y]
OR
p[x, y]=p[y|x]p[x]
how to get l(f)
multiply the number of bits with the probability
(if only the frequency was provided, calculate the probability by dividing by the total)
find H[P|1]
-1/ln2(p[a|1]ln(p[a|1])+p[b|1]ln(p[b|1])+…)
information gain
( H(P)-H(P|C) ) / H(P)
what is |P| and |K| for a substitution cipher?
|P|=26, |K|=26!
what is |P| and |K| for a vigenere cipher?
|P|=26^m, |K|=26^m
what is |P| and |K| for a hill cipher?
|P|=26^m, |K|=26^m^2
what is |P| and |K| for a affine cipher?
|P|=26, |K|=312
R_L = ?
0.75
formula for unicity distance?
ln|K| / (R_L ln|P|)
formula for the number of spurious keys? s_n
|K|/ (|P|^nR_L) - 1
n = size of the cipher text
memory requirement for s-box?
l2^l
l = number of inputs