Of the following tree structure, which is, efficient considering space and time complexities?

(a) Incomplete Binary Tree

(b) Complete Binary Tree

(c) Full Binary Tree

(b) Complete Binary Tree.

Answer Posted / sandeep vimal

By the method of elimination:

Full binary tree loses its nature when operations of insertions and deletions are done. For incomplete binary trees, extra storage is required and overhead of NULL node checking takes place. So complete binary tree is the better one since the property of complete binary tree is maintained even after operations like additions and deletions are done on it.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does set allow null values?

465


What is time complexity of arrays sort?

524


Will this code give error if I try to add two heterogeneous elements in the arraylist? And why?

501


What is the best case time complexity of bubble sort?

560


Is hashmap an object?

499






Explain linear linked implementation of Stack and Queue?

518


Define a set?

566


Define primary clustering?

543


In what scenario, binary search can be used?

563


Write a program to reverse a link list.

543


What are the advantages and disadvantages of linked list?

430


When new data are to be inserted into a data structure?

487


Explain the common uses of threaded binary tree.

601


What is indexing an array?

458


What are lists?

528