Skip to content

Generic Heap Tree in Java. It can be used as Max Heap or Min Heap.

License

Notifications You must be signed in to change notification settings

Albertpv95/HeapTree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#Heap Tree

This project implements a Generic Heap Tree in Java that can be used as a Max Heap or Min Heap.

Methods:

  • Put: adds a new element into the tree sorting it.
  • Top: returns the element on the root (max or min).
  • Extract: top method but removing the element (destructive read).

The tree starts with an initial dimension for 100 nodes. Each time the tree becomes 90% full, the data structure is resized so it can store a higher quantity of elements.

About

Generic Heap Tree in Java. It can be used as Max Heap or Min Heap.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages