Suppose you have 3 dice with the following numbers on their faces:
Die | Faces | |||||
---|---|---|---|---|---|---|
A | 6 | 3 | 3 | 3 | 3 | 3 |
B | 5 | 5 | 5 | 2 | 2 | 2 |
C | 4 | 4 | 4 | 4 | 4 | 1 |
Suppose I have an unfair coin with Pr[HEADS]=0.4. I also have a fair coin. You can't tell which is which.
You choose one coin and flip it 20 times. Describe how you would use the outcomes to decide if it is fair.
The cracking program on the course web page uses a
function called
The code is designed so you can swap these around, recompile
the code and compare them. Give this a try.
At the top of the source file,
you will see:
You can change this one line and recompile.
For this problem, choose a plain text of about 200 characters. Encrypt it with a short keyword, and run the cracking program on keyword lenghts 1 through 10. Now recompile the program to use the other test functions, and do the same. Provide your test results.
Note that the other tests do not provide an estimate of the keyword. Only the likelihood ratio test does this.