+1 vote
in Data Structures & Algorithms I by (88.2k points)
What is the height of a given minimum ternary heap?

(a) 1

(b) 10

(c) 2

(d) 24

The question is from Ternary Heap in portion Heap of Data Structures & Algorithms I

I have been asked this question in a national level competition.

1 Answer

+1 vote
by (672k points)
selected by
 
Best answer
Right option is (a) 1

Explanation: Minimum ternary heap has the smallest element as its root node. The parent node is all either equal or less than children node in a minimum ternary heap. Height is the total length from the root node to the leaf node. So the height of the minimum ternary heap is 1.

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.

Categories

...