About 51 results
Open links in new tab
  1. What and where are the stack and heap? - Stack Overflow

    Sep 17, 2008 · What are the stack and heap? Where are they located physically in a computer's memory? To what extent are they controlled by the OS or language run-time? What is their scope? …

  2. When would I want to use a heap? - Stack Overflow

    Apr 14, 2009 · Besides the obvious answer of a Priority Queue, when would a heap be useful in my programming adventures?

  3. How to deal with "java.lang.OutOfMemoryError: Java heap space" error?

    Here is an example of increasing maximum heap size of JVM, Also its better to keep -Xmx to -Xms ration either 1:1 or 1:1.5 if you are setting heap size in your java application.

  4. What is the use of the Heap data structure? - Stack Overflow

    A heap must have each node satisfying the heap property, the max-heap property is that for every node i other then the root, Heap [Parent (i)] >= Heap [i] So at each node, the higher nodes have higher …

  5. malloc - What is a Memory Heap? - Stack Overflow

    Feb 22, 2010 · A memory heap is a location in memory where memory may be allocated at random access. Unlike the stack where memory is allocated and released in a very defined order, individual …

  6. How is the default max Java heap size determined?

    initial heap size: Larger of 1/64th of the machine's physical memory on the machine or some reasonable minimum. Before J2SE 5.0, the default initial heap size was a reasonable minimum, which varies by …

  7. javascript - Node.js heap out of memory - Stack Overflow

    Jul 25, 2016 · Example node --max-old-space-size=16000 scripts/build.js Why size is 16000 in max-old-space-size? Basically, it varies depends on the allocated memory to that thread and your node …

  8. How can I find Java heap size and memory used (Linux)?

    How can I check heap size (and used memory) of a Java application on Linux through the command line? I have tried through jmap. But it gives information about internal memory areas, like Eden, Perm...

  9. What do I use for a max-heap implementation in Python?

    Python includes the heapq module for min-heaps, but I need a max-heap. What should I use for a max-heap implementation in Python?

  10. How can building a heap be O (n) time complexity? - Stack Overflow

    Mar 18, 2012 · 947 Can someone help explain how can building a heap be O (n) complexity? Inserting an item into a heap is O (log n), and the insert is repeated n/2 times (the remainder are leaves, and …