You can add elements to it.
We can test if it is empty.
You can get the smallest element in the heap.
You can remove the smallest element in the heap.
17. Priority Queues
Get Introduction to Computational Thinking: Problem Solving, Algorithms, Data Structures, and More now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.