How do I solve the following problem in C++ using trees ?
I need to determin the frequency and location of words in a document. After that list in alphabetical order the words and the reference to each line the word is used.
peter piper picked a peck of pickled peppers. a peck of pickled
peppers peter piper picked. if peter piper picked a peck of pickeled peppers, where is the peck of that peter piper picked.
it should display the folllowing information :
peppers 3:1, 2, 3
peter 4:1, 2,3
<word> <count>:<line number>
i need to do this using trees date structure.