An open API service indexing awesome lists of open source software.

https://github.com/hollowman6/english-word-frequency-statistics-program

English Word Frequency Statistics Program realized by C. (英文词频统计程序)
https://github.com/hollowman6/english-word-frequency-statistics-program

c word-frequency

Last synced: 8 months ago
JSON representation

English Word Frequency Statistics Program realized by C. (英文词频统计程序)

Awesome Lists containing this project

README

          

# 英文词频统计程序

[![last-commit](https://img.shields.io/github/last-commit/HollowMan6/English-Word-Frequency-Statistics-Program)](../../graphs/commit-activity)
[![release-date](https://img.shields.io/github/release-date/HollowMan6/English-Word-Frequency-Statistics-Program)](../../releases)
![C/C++ CI](https://github.com/HollowMan6/English-Word-Frequency-Statistics-Program/workflows/C/C++%20CI/badge.svg)

[![Followers](https://img.shields.io/github/followers/HollowMan6?style=social)](https://github.com/HollowMan6?tab=followers)
[![watchers](https://img.shields.io/github/watchers/HollowMan6/English-Word-Frequency-Statistics-Program?style=social)](../../watchers)
[![stars](https://img.shields.io/github/stars/HollowMan6/English-Word-Frequency-Statistics-Program?style=social)](../../stargazers)
[![forks](https://img.shields.io/github/forks/HollowMan6/English-Word-Frequency-Statistics-Program?style=social)](../../network/members)

[![Open Source Love](https://img.shields.io/badge/-%E2%9D%A4%20Open%20Source-Green?style=flat-square&logo=Github&logoColor=white&link=https://hollowman6.github.io/fund.html)](https://hollowman6.github.io/fund.html)
[![GPL Licence](https://img.shields.io/badge/license-GPL-blue)](https://opensource.org/licenses/GPL-3.0/)
[![Repo-Size](https://img.shields.io/github/repo-size/HollowMan6/English-Word-Frequency-Statistics-Program.svg)](../../archive/master.zip)

使用C语言实现。

## 原理:

使用改进的二叉查找树储存单词及其出现的次数(具体见[源代码](英文词频统计程序.c))

## 测试:

使用莎士比亚戏剧文章进行了测试,这里附上[测试样例](test/shakespeare.txt)以及[测试结果](test/count.txt)

# 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](英文词频统计程序.c) for details).

## Test:

Test using Shakespeare's drama. Here are the [sample](test/shakespeare.txt) and [test result](test/count.txt).