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

(a) An array with three elements

(b) Linked list with three elements

(c) Tree with three children

(d) Heap with all nodes having three children

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

The question was asked in an interview for job.

1 Answer

+1 vote
by (672k points)
selected by
Best answer
Right option is (d) Heap with all nodes having three children

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. So, it follows all the property of heap. Therefore, all the nodes in the ternary heap have 3 nodes.

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.