Skip to content

ValentinShakhov/words-counter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

wordsCounter

Parallel file readers reading in huge files and collecting statistics of the words in these files. Prints out words sorted by their number of occurences at the end.

How it works:

File readers scan through the files word by word, putting each word into the queue for processing. There is a queue listener, which maintains a map where each entry is a tuple of the word and its corresponding internal representaion node. Such a node contains the word itself, its count per file and references to the nodes with a larger and smaller total count. There is a node sorted list which holds the reference to the node with the least and largest count.

After readers and the listener have finished their work, the chain of nodes is printed out in a loop.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages