About 23,700,000 results
Open links in new tab
  1. 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?

  2. c# - Memory allocation: Stack vs Heap? - Stack Overflow

    I am getting confused with memory allocation basics between Stack vs Heap. As per the standard definition (things which everybody says), all Value Types will get allocated onto a Stack and …

  3. algorithm - Heap vs Binary Search Tree (BST) - Stack Overflow

    May 27, 2011 · What is the difference between a heap and BST? When to use a heap and when to use a BST? If you want to get the elements in a sorted fashion, is BST better over heap?

  4. java.lang.OutOfMemoryError: Java heap space - Stack Overflow

    If you want to increase your heap space, you can use java -Xms<initial heap size> -Xmx<maximum heap size> on the command line. By default, the values are based on the JRE …

  5. 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?

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

    Mar 18, 2012 · 945 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 …

  7. Why are two different concepts both called "heap"? [duplicate]

    Why are the runtime heap used for dynamic memory allocation in C-style languages and the data structure both called "the heap"? Is there some relation?

  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 …

  9. How is the java memory pool divided? - Stack Overflow

    Heap memory The heap memory is the runtime data area from which the Java VM allocates memory for all class instances and arrays. The heap may be of a fixed or variable size. The …

  10. Heap Memory in C Programming - Stack Overflow

    Apr 6, 2017 · The heap is part of your process's address space. The heap can be grown or shrunk; you manipulate it by calling brk(2) or sbrk(2). This is in fact what malloc(3) does. …