About 4,650,000 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 …

  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. 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 …

  4. Understanding how to create a heap in Python - Stack Overflow

    Oct 5, 2012 · The heap is represented internally in an array where if a node is at k, it's children are at 2*k and 2*k + 1. The first element of the array is not used, to make the math more …

  5. Is there a Heap in java? - Stack Overflow

    Jan 4, 2013 · I am porting a C++ library to Java and I need a heap data structure. Is there a standard implementation or will I need to do it myself?

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

    May 25, 2012 · 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 …

  7. heap - python, heapq: difference between heappushpop () and …

    Nov 13, 2015 · I couldn't figure out the difference (other than ordinality of push/pop actions) between functions heapq.heappushpop () and heapq.heapreplace () when i tested out the …

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

    Mar 23, 2010 · 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?

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

  10. What's the relationship between "a" heap and "the" heap?

    Jun 22, 2009 · A heap is a tree data structure where higher levels of the tree always contain greater (or lesser, if it's set up that way) values than lower levels. "The" heap is a bunch of free …

Refresh