About 12,500,000 results
Open links in new tab
  1. When vectors are allocated, do they use memory on the heap or …

    Nov 7, 2011 · About vector<Type> vect; since the elements is on the heap and header info is on the stack, when the header info is removed from memory, like function return, what will …

  2. c++ - Stack Memory vs Heap Memory - Stack Overflow

    Stack and heap memory is the abstraction over the memory model of the virtual memory ( which might swap memory between disk and RAM). So both stack and heap memory physically …

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

  4. Difference between priority queue and a heap - Stack Overflow

    Sep 25, 2013 · A heap is a data structure. It is a name for a particular way of storing data that makes certain operations very efficient. It just so happens that a heap is a very good data …

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

    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 following code. >>> from

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

  7. Why Large Object Heap and why do we care? - Stack Overflow

    Nov 10, 2022 · The essential difference of Small Object Heap (SOH) and Large Object Heap (LOH) is, memory in SOH gets compacted when collected, while LOH not, as this article …

  8. How to deal with "java.lang.OutOfMemoryError: Java heap space" …

    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.

  9. algorithm - Search an element in a heap - Stack Overflow

    You need to search through every element in the heap in order to determine if an element is inside. One optimization is possible, though (we assume a max heap here). If you have …

  10. Java heap terminology: young, old and permanent generations?

    I'm trying to understand What the concepts of young, old and permanent generations are in the Java heap terminology, and more specifically the interactions between the three generations. …