GATE CS 2020 Min heap
Consider the array representation of a binary min-heap containing 1023 elements. The minimum number of comparisons required to find the maximum in the heap is … Read more
Consider the array representation of a binary min-heap containing 1023 elements. The minimum number of comparisons required to find the maximum in the heap is … Read more
Which one of the following sequences, when stored in an array at locations A[1],…,A[10] forms a max-heap? Practice Problem Which one of the following sequences when stored … Read more
Consider the following sequence of operations on an empty stack. Push(54); push(52); pop(); push(55); push(62); s=pop(); Consider the following sequence of operations on an empty … Read more
The result evaluating the postfix expression 10 5 + 60 6 / ∗ 8 − is Practice Problem The result evaluating the postfix expression 10 5 + 60 … Read more
Consider a sequence a of elements a0=1, a1=5, a2=7, a3=8, a4=9, and a5=2. The following operations are performed on a stack S and a queue Q, both of which are initially empty. The … Read more
Program 1: Program 2: Program 03: Program 04: Program 05: Program 06: Program 07: Program 08: Program 09: Program 10: Program 11: Program 12: Program … Read more
Options A 1 2 310 11 1219 20 21 B 1 4 710 13 1619 22 25 C 1 2 34 5 67 8 9 … Read more
In Previous Years Questions Data Structure A data structure organizes data items by considering both the stored elements and their relationships. It represents the logical … Read more
In Previous Years Questions Building Materials Building materials play a pivotal role in the construction industry, constituting a significant portion of the overall construction cost. … Read more