Search code examples
c#data-structuresbinary-treebinary-search-treebinary-heap

C# BinaryTree, BinarySearchTree and BinaryHeap


For my exam next week I've to learn how to build a BinaryTree, BinarySearchTree and BinaryHeap. The only problem is, the most examples on the web are not simple enough to understand. They are just a bunch of code without documentation. I am looking for an easy example to build the three datastructures. Think about an example with some documentation for the functions. How everything works. Does anybody know some good tutorials for the three datastructures or have a good example for me?


Solution

  • First, try to see in pseudocode how can be use this data structures. The C# is a similar to Java, so you can easily see some tutorial about this data structures in Java. Some similar questions is Binary Search Tree in C# Implementation and Is there a built-in Binary Search Tree in .NET 4.0?. Some tutorial is A Quick and Dirty Binary Search Tree in C#, Binary Search Trees (BSTs) in C#, Binary Search Tree implemented in C# and BST (Binary Search Tree) and C# Binary Search Tree.