英文词频统计程序
使用C语言实现。
原理:
使用改进的二叉查找树储存单词及其出现的次数(具体见源代码)
测试:
使用莎士比亚戏剧文章进行了测试,这里附上测试样例以及测试结果
English Word Frequency Statistics Program
English Word Frequency Statistics Program realized by C
Principle:
Use the improved two fork search tree to store words and the number of times they appear (see source code for details).
Test:
Test using Shakespeare's drama. Here are the sample and test result.