Pls Help! Need binary search tree module

Steve Mak stevemak at softhome.net
Sun Feb 18 16:38:54 EST 2001


I was wondering if anyone had a simple binary search tree module I could
use? I need to write a program that counts the number of occurrences of each
word in a file, and outputs the word and corresponding counts
alphabetically. And it is required that one of the data structure is a
binary search tree.

 Eg: if the inputs is:

"How are you. How are you. How are you."

the output is:

are 3
how 3
you 3

Thanks in advance!!!!!!!!

JJ






More information about the Python-list mailing list