Top "Heap" questions

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

Heap vs Stack vs Perm Space

What are the differences between the Java memory spaces (Perm Space, Space Stack, Heap Space)? When does the JVM use …

java memory jvm heap
Worst case in Max-Heapify - How do you get 2n/3?

In CLRS, third Edition, on page 155, it is given that in MAX-HEAPIFY, The children’s subtrees each have size at …

algorithm tree heap time-complexity
Specifically, how does fork() handle dynamically allocated memory from malloc() in Linux?

I have a program with a parent and a child process. Before the fork(), the parent process called malloc() and …

c linux malloc heap fork
How to use mmap to allocate a memory in heap?

Just the question stated, how can I use mmap() to allocate a memory in heap? This is my only option …

c memory-management heap mmap
MemoryError in R while read.xlsx

I am using the following R code (that utilizes the Java parameter to increase memory as well): library(xlsx) options(…

java r out-of-memory heap r-xlsx
Swift stack and heap understanding

I want to understand what is stored in the stack and heap in swift. I have a rough estimation: Everything …

ios memory swift stack heap
Using arrow -> and dot . operators together in C

I was under the impression that it was possible to access data from a sub-node of a linked list or …

c heap binary-tree
string.c_str() deallocation necessary?

My code converts C++ strings to CStrings somewhat often, and I am wondering if the original string is allocated on …

c++ string memory-management stack heap
Difference between heap table and temporary table in MySQL?

I am very new to MySQL. My question may wrong, if it is please correct or explain it. I Just …

mysql heap temp-tables
Program stack and heap, how do they work?

I know that every running process has pages associated with it in virtual memory and few of them will be …

stack kernel heap