+1 vote
in Data Structures & Algorithms I by (88.2k points)
What are the siblings of smallest element of the given maximum ternary heap?

(a) 31

(b) 12

(c) 18

(d) 22

This intriguing question originated from Ternary Heap topic in portion Heap of Data Structures & Algorithms I

I had been asked this question in an online quiz.

1 Answer

+1 vote
by (672k points)
selected by
Best answer
The correct answer is (c) 18

Explanation: Maximum ternary heap has the highest element as its root node. The parent node is all either equal or greater than children node in a maximum ternary heap. The smallest element in the maximum ternary heap is 10 and its siblings are 18, 20.

Related questions

Welcome to TalkJarvis QnA, a question-answer community website for the people by the people. On TalkJarvis QnA you can ask your doubts, curiosity, questions and whatever going in your mind either related to studies or others. Experts and people from different fields will answer.