Find the k most frequent words from a file

Revision en1, by rahul_1234, 2017-06-11 21:18:05

Can somebody suggest a approach.

Link : In the given link it says if the word is in min heap, then also you can increase the count but it is slightly confusing. Can somebody suggest an approach for this or another way for updation if the word already exists in min_heap.

Tags trie, min heap, updation

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English rahul_1234 2017-06-11 21:18:05 396 Initial revision (published)