I am currently working on a Binary search tree Class which I need for counting the number of times each term in a bunch of lines appear.
I have set up the structure, and I want it to be outlined as follows
Public Interface Term_Count ' Starts the iteration through the terms. Sub StartIteration() ' Returns true if there are more terms. Function HasMore() As Boolean ' Returns the next TermCount pair. Function GetNext() As TermCount ' Increments the count of the given term. ' If the term does not yet exist in the TermCounter, ' the count is set to 1 for the term. Sub IncrementCount(ByVal term As String) End Interface
Can you please guide me as to how I should implement this algorithm in a time efficient manner?

New Topic/Question
This topic is locked




MultiQuote


|