The Gateway to Computer Science Excellence
+1 vote
144 views
which is an efficient tree structure in terms of space and time complexity?

a) AVL Tree

b)Full Binary tree

c)Complete binary tree

d)Binary tree
in DS by | 144 views

1 Answer

+2 votes
in terms of space, complete binary tree is efficient

therefore option B and D are eliminated, but option A can't, due to it is also a type of complete binary tree

W.r.to Time complexity, AVL is better than Complete Binary tree

due to it is BST and operations like insertion, deletion and search can be performed in O(log N) time

Option A is right
by Boss
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
52,215 questions
60,025 answers
201,249 comments
94,712 users