I'm looking for a well tested simple in-memory binary tree implementation for c#. I would appreciate any pointers...
A:
You could try this implementation found at CodeProject. Has worked for me.
Mikael Svenson
2010-04-10 15:54:45
+3
A:
The .NET framework already contains them, they are just not advertised as such. Probably because of the inherent ambiguity in the three different ways to iterate a tree. SortedDictionary uses a self-balancing red-black tree under the hood and has the same time and space complexity as a binary tree. You'll need SortedList if your tree contains duplicates.
Hans Passant
2010-04-10 16:04:59
Excellent just what I was after!
Lee Alexander
2010-04-10 16:18:55