I'm looking for an implementation of a Red-Black Tree in C#, with the following features:
T
by different fields in it.T
, but it'll accept the field type sorting it.Thank you.
You mostly just described SortedDictionary<T, U>
, except for the next-lowest/next-highest value binary search, which you could implement on your own without much difficulty.
Are there specific reasons that SortedDictionary
is insufficient for you?