Discovering the authorship of certain famous pieces of literature is an interesting problem. Comparisons are made between pieces whose authorship is disputed and those of known authorship. One approach is to compare the frequency of pairs of letters. There are 26 x 26 different pairs of letters. Not all of them will appear in a piece of writing. For example, “qz” is unlikely to appear, while “th” is likely to appear often. Design a program, similar to the frequency counter of Segments 19.12 through 19.17, that counts all the pairs of letters that appear in a given piece of text.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.