Skip to content

spbu-coding-2023/trees-8

Repository files navigation

MegaLinter CI_Test License: GPL v3 CodeFactor Coverage Test

Binary Trees Project

Team #8's project on binary trees.

About

Three trees are implemented in this library: Red-Black, AVL and Binary Search Tree.

Authors

Technologies

Library information

Three trees are implemented, choose which one you want. Standard methods are implemented in each tree:

  • set(key,value) - Associates the specified value with the specified key in the tree.
  • remove(key) - Removes the specified key and its corresponding value from the tree.
  • get(key) - Returns the value corresponding to the given key
  • iterator() - Iteration by key-value pairs in order of keys

There are also many others methods:

  • setIfAbsent(key,value)
  • getOrDefault(key, defaultValue)
  • getOrSet(key,defaultValue)
  • min()
  • max()
  • isEmpty()
  • isNotEmpty()
  • containsKey(key)
  • clear()

AVL and Red-Black trees are self-balancing

Suggestions and wishes

Suggestions can be made in code review or Issues on GitHub

Licence

The library is distributed under the GNU GPLv3 licence

About

trees-8 created by GitHub Classroom

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages