Rupert harrison wrote:
How would I approach the implementation of a BST that gives a statistical
I don't know how you would approach it.
I would start with:
forget about statistical information and the BST at the moment and start
with identifying words in the input stream. I would use some code which
will be deleted later to convince myself that the reading part works
the way I want it to be.
Once that works I would start the implementation of a BST (without statistical
information, just the BST). I would continue with feeding the words from
step 1 into the BST and use that to debug the BST code. Again: Some later
to deleted debug-code, such as an output function for the whole BST will come
in handy.
Once that BST is working I would add to the nodes whatever is needed to enable the
statistical evaluation.
Home-work assignment done.
But that's just me. Your way of working may differ.
--
Karl Heinz Buchegger
kb******@gascad.at