Is there a built-in binary search tree in .NET 4.0, or do I need to build this abstract data type from scratch?
Edit
This is about the binary search tree specifically, and not abstract data type "trees" in general.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I think the
SortedSet<T>class inSystem.Collections.Genericis what you’re looking for.From this CodeProject article:
Source code https://github.com/dotnet/corefx/blob/master/src/System.Collections/src/System/Collections/Generic/SortedSet.cs