home
The number of ways , in which numbers 1,2,3,4,5 can be inserted into binary heap, such that...
The number of possible min-heaps containing each value from {1,1,1,1,1,1,1} exactly once is...
Let H1 and H2 be two complete binary trees that are heaps as well. Assume H1 and H2 are max-heaps,...
Thanks, RunOrVeith for writing the original question (Check if x is bigger than k-th smallest...
I'm trying to prove that given a min heap with n distinct number with at least 3 nodes, that the...
I tried to set MALLOC_ARENA_MAX=4 in tomcat setenvsh file. But I am not sure whether it was...
We are trying to read a big hive table and the table is of RCFile format. It is processing all the...
Consider the process of inserting an element into a MaxHeap, where the MaxHeap is represented by an...
An array of integers of size n can be converted into a heap by adjusting the heaps rooted at each...
So I have a application with 10GB Heap and what I see is a small memory leakage after each CMS....
In a binary Heap of 100 elements time taken to find the 99th element? or in a binary heap on "n"...
I've read and been told that Heapsort can only be applied on Max heap, but this article here states...
In a min-heap with n elements with the smallest element at the root, the 7th smallest element can...
This question already has an answer here: What is the difference...
Let's say we're given with a MAX Heap and we want to delete any of the leaf node, then how much...
Compared to non-script languages such as C, python makes extensive use of data structure such as...
In one of the interview, they asked me to write your own memory leak detection program. so i have...
Suppose I have a set of objects in a PriorityQueue, so that I can conveniently determine and remove...
I am encountering a compiler error for something that I feel should work. I tried this code (note...
I have a java.lang.OutOfMemoryError:GC Overhead limit exceeded. There is no...
We're using Spark at work to do some batch jobs, but now that we're loading up with a larger set of...
Are there any specific situations in which it would not be practical nor necessary to delete the...
This question already has an answer here: How to Increase Java Heap...
I have a structure whose objects are to be pushed into the boost::heap::priority_queue. typedef...
This question already has an answer here: java free memory usages ...
I made a heap sort function but it doesn't work properly. It shows a wrong order. What I want is...
We've got an AngularJS app using .NET Web API, hosted on an ihost server. Our app is one of several...
enter image description herei am getting java.lang.OutOfMemoryError: Java heap space at...
2 weeks ago

Binary heap indexing

In the algorithms course by Wayne and Sedgewick, the following question is asked: "Suppose that an...
There is a drastic performance hit when using a keyfunc in heapq.nlargest: >>> from...