We are given the following word counts relating to the keywords algorithm and computer, for documents of the classes, in the informatics and mathematics subject classifications:
Algorithm words per 1,000 |
Computer words per 1,000 |
Subject classification |
153 |
150 |
Informatics |
105 |
97 |
Informatics |
75 |
125 |
Informatics |
81 |
84 |
Informatics |
73 |
77 |
Informatics |
90 |
63 |
Informatics |
20 |
0 |
Mathematics |
33 |
0 |
Mathematics |
105 |
10 |
Mathematics |
2 |
0 |
Mathematics |
84 |
2 |
Mathematics |
12 |
0 |
Mathematics |
41 |
42 |
? |
Â
Those documents having a high incidence of the words algorithm and computer are in the informatics class. The mathematics class happens to contain documents with a high incidence of the word algorithm in some cases, for example, a document concerned with the Euclidean algorithm from the field of number theory. But, since the mathematics class tends to be applied less than informatics in the area of algorithms, the word computer comes up less frequently in the documents.
We would like to classify a document that has 41 instances of the word algorithm per 1,000 words, and 42 instances of the word computer per 1,000 words: