binary heap data structure

A binary heap data structure is a complete binary tree where each node has a value greater than or equal to its children (max heap) or less than or equal to its children (min heap). It is commonly used to implement priority queues and graph algorithms like Dijkstra's shortest path algorithm.

Requires login.