A Data Structure that organizes data according to priority. Also called Priority Queue, which makes sense because it is like a Queue except it inserts elements based on their priority.
Memory Management
The heap is a region of memory (DRAM) used for allocating variable-sized blocks of memory at runtime, allowing for flexible data structures. Unlike stack memory, which is managed automatically, memory allocated on the heap must be manually deallocated by the programmer to prevent memory leaks.