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

(a) 31

(b) 10

(c) 18

(d) 20

The doubt is from Ternary Heap in chapter Heap of Data Structures & Algorithms I

I got this question in unit test.

1 Answer

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

Explanation: Ternary heap is a type of data structure in the field of computer science. It is a part of the Heap data structure family. 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.

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.