What is the child of smallest element of the given minimum ternary heap?

Huỳnh Hiền

New member
What is the child of smallest element of the given minimum ternary heap?
A. 1
B. 10
C. 22
D. 24
 
Answer: b
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. In the above minimum ternary heap, the smallest element is 1 and its children are 10, 18, 20.
 

Tìm kiếm

Back
Top