Skip to content

Implements min-heap data structure and the heap sort sorting algorithm.

Notifications You must be signed in to change notification settings

optimalsword/heap-sort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Heap Sort Data Structure

The min-heap data structure provided is implemented such that for each node in the binary tree, each node in its subtree is less than it. This is true recursively for every subtree. It is mostly exception safe and efficient Can be used to make many algorithms, such as Dijskstra's algorithm for the shortest path, more efficient

Implemented using a vector rather than trying to implement a simulated binary tree with nodes

Heap Sort

The actual algorithm to sort a given container. Uses the min-heap data structure to keep track of the minimum element in an efficient manner O(nlogn) run time.

About

Implements min-heap data structure and the heap sort sorting algorithm.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published