The Gateway to Computer Science Excellence
+1 vote
104 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 (105 points) | 104 views

1 Answer

+1 vote
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 Veteran (64k points)
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
50,650 questions
56,185 answers
193,939 comments
94,694 users