Top "Heap" questions

A heap (data structure) is a tree that is ordered with respect to depth.

Python: delete element from heap

Python has heapq module which implements heap data structure and it supports some basic operations (push, pop). How to remove …

python heap
What is a contiguous memory block?

Just like in the title, what is a contiguous memory block?

c memory heap heap-fragmentation
Is there an easy way to make a min heap in C++?

I'm very new to C++, and I was wondering if there was a way to make a min heap in …

c++ data-structures heap min
What's the time complexity of functions in heapq library

My question is from the solution in leetcode below, I can't understand why it is O(k+(n-k)log(k)). …

python heap
heap corruption detected | C++

I get this "heap corruption detected" message after running this code : uli& uli::operator =(char* n) { char* buffer = new …

c++ heap corruption
How do I turn off the fault tolerant heap?

I've recently started seeing this line in my Visual Studio 2005 output window when launching my application: FTH: (7156): *** Fault tolerant heap …

windows-7 heap fault-tolerant-heap
How can I use binary heap in the Dijkstra algorithm?

I am writing code of dijkstra algorithm, for the part where we are supposed to find the node with minimum …

heap dijkstra
Min Heapify method- Min heap algorithm

I am trying to build a min heap. I have already done the insert, delete,swap, up-heap, down-heap and it …

java algorithm heap min-heap
Android Understanding Heap Sizes

I'm fairly new to Android development and I can't seem to grasp the Java Out of Memory exception. I know …

android heap virtual-machine dalvik ddms
Difference between priority queue and a heap

It seems that a priority queue is just a heap with normal queue operations like insert, delete, top, etc. Is …

c++ algorithm heap priority-queue