Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.

My associative container, that uses binary search tree, written in C#

Notifications You must be signed in to change notification settings

pelmesh619/my_binary_search_tree_container

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

my_binary_search_tree_container

Originally this was one of laboratory works in C++ course at ITMO University in the 2nd semester that I wanted to publish in GitHub. But code in there was shameful to publish, so I decided to rewrite an entire thing on C# for more practice 👍👍👍

Original requirements were:

  • Create an associative template container based on binary search tree
  • Create a custom bidirectional iterator to iterate through the container via three different traversal ways: inorder, preorder, postorder
  • And make tests to cover all this

As C# has "enumerators" instead of "iterators", I made in total 6 different enumerators for this. Default enumerator for my container works as inorder.

Also my container implements ISet<T> interface, so it's kinda useful. And I tried to use "all the power" of OOP of C#

Also one of additional requirements was to make an AVL-tree, so this container should be pretty fast🤔

About

My associative container, that uses binary search tree, written in C#

Resources

Stars

Watchers

Forks

Languages