deletemin
deletemin is an operation used on priority queues and heap-based data structures to remove and typically return the smallest element, the minimum, currently stored. It is a key primitive in algorithms that repeatedly extract the next cheapest item, such as Dijkstra’s and Prim’s algorithms.
In a binary min-heap, deletemin is implemented by removing the root of the heap, replacing it with
Deletemin is often referred to as extract-min or delete-min in various libraries and texts; the exact naming
Overall, deletemin is a fundamental tool for implementing efficient priority queues, enabling greedy and shortest-path algorithms