Statistic Program
Usage
statistic
Reads text from stdin that contains only space, newline and lowercase
letters and writes a mongram,bigram and trigram statistic to
stdout. The following encoding is used to represent the possibles
characters. Newlines in the input are ignored.
Encoding
space a b c d e f g h i j k l m n o p q r s t u v w x y z
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
Format of the Output
The output consists of 27 lines of integer tuples describing the 27
possible characters and their frequency; followed by 27^2 lines of
integer triples describing the 27^2 possible character pairs and their
frequency; followed by 27^3 lines of integer quadruples describing the
27^2 possible character triples and their frequency.
*