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
Answers
Answered by
1
Answer: B) Complete Binary Tree
Explanation:
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.
Explanation:
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.
Similar questions