• recategorized by
226 views
1 1 vote

Which of the following is the primary property of a binary heap?

  1. The parent node is greater than its children (max-heap).
  2. The parent node is less than its children (min-heap).
  3. All nodes are arranged in a sorted order.
  4. It is always a balanced tree.

Please log in or register to answer this question.

Answer:
Position:
Show:

Related questions

3 3 votes
1 1 answer
214
214 views
Shubham Sharma 2 asked Jul 24, 2025
214 views
Which of the following operations can be performed in $\mathrm{O}(\log n)$ time in a binary heap?Deleting the root elementInserting an elementBoth $\text{(A)}$ and $\text...
2 2 votes
1 1 answer
226
226 views
Shubham Sharma 2 asked Jul 24, 2025
226 views
Which of the following is the primary operation for adding an element to a queue in $\text{C}?$EnqueueDequeuePushPop
1 1 vote
0 0 answers
145
145 views
Shubham Sharma 2 asked Jul 24, 2025
145 views
What is the time complexity for searching an element in a balanced Binary Search Tree?$\text{O}(1)$$\text{O}(\log n)$$\text{O}(n)$$\text{O}(n \log n)$ 
2 2 votes
1 1 answer
199
199 views
Shubham Sharma 2 asked Jul 24, 2025
199 views
Which traversal method can be used to print the nodes of a binary tree in ascending order?Pre-order traversalPost-order traversalIn-order traversalLevel-order traversal