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.



Of the following tree structure, which is, efficient considering space and time complexities? (a)..

Answer / 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

More Data Structures Interview Questions

When will you sort an array of pointers to list elements, rather than sorting the elements themselves?

5 Answers  


What are some of the best practices relating to the java collection framework?

0 Answers  


What is the bucket size, when the overlapping and collision occur at the same time?

1 Answers  


Does hashmap maintain insertion order?

0 Answers  


What is data type explain?

0 Answers  






What is a data structure?

12 Answers   Keane India Ltd,


Write an algorithm that counts number of nodes in the circular linked list

0 Answers  


What is array traversing?

0 Answers  


How do stacks work?

0 Answers  


What data structure underlies a python list?

0 Answers  


Does treeset allow null values?

0 Answers  


What is the time complexity of arrays sort?

0 Answers  


Categories