Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

why do tree always takes o(log n) time?

Answer Posted / hanuman

Not all tree takes O(logn) time. but only BST takes O(logn) time just because it search,insert, delete node using mid element that means complexity of that tree is O(logn).

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantages of linked list over array (static data structure)?

1276


Which data structures are used in bfs and dfs algorithm?

976


How does linkedhashset work internally?

879


Can arraylist store primitives?

874


Define 2-3-4 tree?

836


Explain how is linked list implemented?

868


What is the difference between a stack and an array?

997


What is the use of prototype?

853


Does arraylist have a tostring?

843


What are the different binary tree traversal techniques?

965


Can treeset contain null?

830


What is integer max_value?

816


Explain the uses of b+ tree.

866


What are the advantages of merge sort?

787


What are the tasks performed during postorder traversal?

889