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

    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 happen to the …

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

  3. 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 might be RAM or …

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

    Sep 25, 2013 · Using a heap is one way to implement a priority queue. It is a popular and efficient way, but it isn't the only way, so you could have a priority queue which was implemented without a heap.

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

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

  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 reached a node with a …

  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. My questi...