Top "Heap" questions

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

Eclipse runs out of heap space on ant build

ext-Myself and two co-workers have been working on a GWT project and coding in eclipse. The project is growing and …

java eclipse gwt heap gxt
C++ - Allocating memory on heap using "new"

If I have the following statement: int *x = new int; In this case, I have allocated memory on the heap …

c++ heap new-operator dynamic-memory-allocation memory-address
Is it ever OK to *not* use free() on allocated memory?

I'm studying computer engineering, and I have some electronics courses. I heard, from two of my professors (of these courses) …

c++ c memory-management memory-leaks heap
What are the differences between heap and red-black tree?

We know that heaps and red-black tree both have these properties: worst-case cost for searching is lgN; worst-case cost for …

data-structures heap red-black-tree
Free heap size does not increase in Maven

When I run maven-jetty-plugin, I run next command: mvn -DMAVEN_OPTS="-Xmx1024m -Xms512m" -Djetty.port=8080 jetty:run but …

java maven heap jetty maven-jetty-plugin
Convert a maximum heap to a binary search tree

We are given an array of 2m - 1 distinct, comparable elements, indexed starting from 1. We can view the array as …

c algorithm heap binary-tree
Where do malloc() and free() store allocated sizes and addresses?

Where do malloc() and free() store the allocated addresses and their sizes (Linux GCC)? I've read that some implementations store …

c memory free heap
Objects added to a PriorityQueue are not ordered by their priority

I'm trying to implement a heap using a PriorityQueue as follows: PriorityQueue<Node> heap = new PriorityQueue<Node&…

java heap priority-queue compareto
Java memory allocation on stack vs heap

I feel like a novice for asking this question -- but why is it that when I pass the Set …

java stack heap allocation
what is the best way to close a ByteArrayOutputStream?

I need to optimize a application that uses too much heap memory. I'm having problem in close a ByteArrayOutputStream variable …

java memory stream heap bytearrayoutputstream