Sunday 5 August 2012

Visual Binary Tree Winforms Application

Last year I created a Winforms application that uses 2D graphics to display binary trees, I have recently revisited it to make several improvements and bug fixes.  The binary tree is compiled as a DLL, which is used by the application which has the following features:

  • Node Insertion & Deletion
  • All Modes of Traversal
  • Customize-able Colour Scheme
  • Saving & Loading of Either Colour Scheme or Tree
  • Node Encryption When Saved to File

Here are some screenshots of the application (click to zoom):
Binary tree containing integers, also showing post-order traversal.
Binary tree containing strings, showing scrollbars as the tree is larger than the space provided.
Save dialog
The program demonstrates the following:

  • Dynamic Programming & Reflection (Requires .NET 4)
  • 2D Graphics (GDI+)
  • Generics
  • Class Constraints
  • File Handling (CryptoStream)
  • LINQ

You can download the executable as well as the source by going to the downloads page.