Top "Heap" questions

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

What is the difference between xmx and MaxRAM JVM parameters?

MaxRAM: based on the amount of memory on the machine. The proportion of memory to use for the heap is …

java jvm heap heap-memory
When and why to declare member variables on the heap C++

Ok, so I'm very new at C++ programming, and I've been looking around for a couple days for a decisive …

c++ class heap member-variables
Priority Queue with a find function - Fastest Implementation

I am looking at implementing a priority queue with an added requirement, a find/search function which will tell whether …

optimization types heap binary-tree priority-queue
Enlarge heapsize c++

is there some way to enlarge the heapsize of a c++ program? In android you can easily do that by …

c++ heap heap-size
How many comparisons does 8 element Binary Heap need?

This is a homework question, and I'm asked to show that 8 element Binary Heap needs 8 comparisons. but when I use …

algorithm data-structures heap binary-heap
How can I avoid OutOfMemoryErrors when using Commons FileUpload's DiskFileItem to upload large files?

I am getting OutOfMemoryErrors when uploading large (>300MB) files to a servlet utilizing Commons FileUpload 1.2.1. It seems odd, because …

java servlets heap out-of-memory apache-commons-fileupload
Trying to understand max heapify

I tried watching http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-006-introduction-to-algorithms-fall-2011/lecture-videos/lecture-4-heaps-and-heap-sort/ to understand heaps and heapsort but …

algorithm sorting heap heapsort max-heap
Tomcat 7 - cannot get CATALINA_OPTS heap size to work

I am setting CATALINA_OPTS in catalina.sh but strangely this value seems to be ignored. I am on a …

java tomcat heap tomcat7 catalina
min heap in python

I'd like to store a set of objects in a min heap by defining a custom comparison function. I see …

python object heap min-heap
worst case in MAX-HEAPIFY: "the worst case occurs when the bottom level of the tree is exactly half full"

In CLRS, third Edition, on page 155, it is given that in MAX-HEAPIFY, "the worst case occurs when the bottom level …

algorithm heap clrs