Top "Heap" questions

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

Difference between sampling and profiling in jVisualVM

VisualVM has two separate tabs for sampling and profiling. What is the difference between sampling and profiling in VisualVM?

java jvm heap jvisualvm
Is there a reason to call delete in C++ when a program is exiting anyway?

In my C++ main function, for example, if I had a pointer to a variable which uses heap memory (as …

c++ memory-management dynamic heap
Detailed memory usage analysis of windows crash dump file?

We have received a native (full) crash dump file from a customer. Opening it in the Visual Studio (2005) debugger shows …

c++ debugging heap windbg crash-dumps
Peeking in a heap in python

What is the official way of peeking in a python heap as created by the heapq libs? Right now I …

python heap peek
What's the advantage of using std::allocator instead of new in C++?

I've just read about std::allocator. In my opinion, it is more complicated to use it instead of using new …

c++ heap alloc
Where are all the static members stored?

I'm trying to learn how C# manages memory. I am stuck on static elements, I read numerous blogs and articles …

c# .net static stack heap
Kth largest element in a max-heap

I'm trying to come up with something to solve the following: Given a max-heap represented as an array, return the …

algorithm data-structures heap pseudocode
Setting Java Heap Size under Apache Karaf

I apologize if this is a duplicate, but I can't seem to find this answered anywhere. What is the best …

java heap apache-karaf
How can I implement decrease-key functionality in Python's heapq?

I know it is possible to realize decrease-key functionality in O(log n) but I don't know how?

python heap
Encourage the JVM to GC rather than grow the heap?

(Note that when I say "JVM", I really mean "Hotspot", and I'm running the latest Java 1.6 update.) Example situation: My …

java jvm heap jvm-hotspot jvm-arguments