Homework 6
Due on Dec 9 Friday



For this homework, you only need to submit a Haskell file containing your solution functions. You can start your work from the provided script.

In class, we described histograms, $\chi$-square test, and index of coincidence over strings that contain only upper-case letters. The following questions ask you to generalize those constructions to strings of both upper and lower case letters.

1. Text Sanitization and Histograms

2. Chi-Square Test

From the beginning of Apple’s fight with the FBI, there’s been an inconvenient question: why can’t the NSA just break into the San Bernardino iPhone?

The cryptologic history of the NSA is layed out in several (internal) publications that have been written over the years by NSA historians. In recent years, the NSA has (partly) declassified some of these publications, regarding WWII, the Cold War and some other events.

3. Index of Coincidence