Hi, I recently learned about different data structures and I have an assignment where I have to make a word frequency counter.
Basically, I need to read in a text file and print out to stdout a list of all the unique words in the file and how many times they appear in descending order. I was wondering what people would think is the best data structure to use to implement this as I would also need to sort the structures when printing out the frequencies in descending order.
Any ideas would be appreciated.
Thanks.



LinkBack URL
About LinkBacks



