Top "Heap" questions

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

Do Java primitives go on the Stack or the Heap?

I just know that the non-primitives (the objects) go on the heap, and methods go on the stack, but what …

java stack heap
Why is the default size of PermGen so small?

What would be the purpose of limiting the size of the Permgen space on a Java JVM? Why not always …

java heap heap-memory permgen
Get heap dump from a remote application in Java using JVisualVM

I run JVisualVM (Windows XP, Sun Java 1.6.0.13, 32 bit client VM) to monitor a distant application (Linux, Sun Java 1.6.0.07, 64 bit server …

java monitoring heap jvisualvm
Max-Heapify A Binary Tree

This is one of the interview questions I recently came across. Given the root address of a complete or almost …

algorithm data-structures heap binary-tree binary-heap
Why in a heap implemented by array the index 0 is left unused?

I'm learning data structures and every source tells me not to use index 0 of the array while implementing heap, without …

algorithm heap
SQL Server heap v.s. clustered index

I am using SQL Server 2008. I know if a table has no clustered index, then it is called heap, or …

sql-server sql-server-2008 heap clustered-index
Increase JVM heap size for Scala?

I have a Scala data processing tool which is failing with a java.lang.OutOfMemoryError exception. The tool needs to …

command-line scala jvm heap
Comparator for min-heap in C++

I am trying to make a min-heap1 of longs in C++ using the STL make_heap, etc., but my comparator …

c++ stl heap comparator min-heap
C++ Multi-dimensional Arrays on the Heap

How would I go about dynamically allocating a multi-dimensional array?

c++ arrays memory heap allocation
what happens in the kernel during malloc?

I was asked this question during an interview. What they wanted to know was when the user calls malloc(4) to …

c linux process system heap