The interviewer asked you a very large English text to count the word frequency, what algorithm should be used and how to answer it?

the interviewer asked you a very large English text to count the word frequency, what algorithm should be used and how to answer it?

Mar.11,2021

go through the text and divide the word with appropriate characters (such as space punctuation). Put the words into hashmap, and then sort the hashmap.


Hadoop,MR.


you can use dictionary trees.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e543de-452b5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e543de-452b5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?