Top "Heap" questions

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

Proper stack and heap usage in C++?

I've been programming for a while but It's been mostly Java and C#. I've never actually had to manage memory …

c++ memory-management stack heap c++-faq
How to make heapq evaluate the heap off of a specific attribute?

I wish to hold a heap of objects, not just numbers. They will have an integer attribute in them that …

python data-structures heap
Arrays, heap and stack and value types

int[] myIntegers; myIntegers = new int[100]; In the above code, is new int[100] generating the array on the heap? From what …

c# arrays memory stack heap
How do I find the median of numbers in linear time using heaps?

Wikipedia says: Selection algorithms: Finding the min, max, both the min and max, median, or even the k-th largest element …

algorithm heap time-complexity median
Setting JVM heap size at runtime

Is there a way to set heap size from a running Java program?

java jvm runtime heap
Calling delete on variable allocated on the stack

Ignoring programming style and design, is it "safe" to call delete on a variable allocated on the stack? For example: …

c++ stack heap delete-operator
addressSanitizer: heap-buffer-overflow on address

I am at the very beginning of learning C. I am trying to write a function to open a file, …

c memory-leaks heap buffer-overflow
Ant: passing compilerarg into javac

I have ant script that compiles: <javac srcdir="${test.src.dir}" destdir="${test.dist.dir}"> ... <compilerarg value="…

java memory ant heap javac
When would I want to use a heap?

Besides the obvious answer of a Priority Queue, when would a heap be useful in my programming adventures?

data-structures heap
Suggestions to avoid bitmap Out of Memory error

I am working on an android application. The application has a view containing lots of image. I had an error, …

android bitmap heap out-of-memory