Prepare
Practice
Interview
Aptitude
Reasoning
English
GD
Placement papers
HR
Current affairs
Engineering
MCA
MBA
Online test
Login
Online Practice Test
>
Data Structure
« Previous
Next »
AVL trees have a faster __________
Options
- Insertion
- Deletion
- Updation
- Retrieval
CORRECT ANSWER : Retrieval
Discussion Board
Avl tree
Retrieval
Sujata junare 07-28-2020 09:57 AM
tini kurchodam
pakkakelli aduko
hema and ganesh 02-1-2020 02:38 AM
AVL trees have a faster retrieval.
Hi, @Joe!!! As you said, "WRONG ANSWER!! All options have a runtime of Log(n), both average and worst cases. There needs to be an all of the above answers." But, the given answer is correct. AVL trees have a faster retrieval.
The first balanced binary tree in computing history was the AVL tree which introduced the wide area of balanced binary search trees. An AVL tree is a binary search tree which has an additional balanced condition. Balanced condition of the AVL tree ensures the depth of the tree is O(log n) which ensures the depth of the tree is logarithmic. The height of the left and right subtrees can differ at most 1.
Search, insert, and delete operations of the AVL tree take O(log n) time in both average and worst-cases, whereas in a binary search tree, these operations' worst-cases take O(n) time.
An AVL tree is faster than a Red-Black tree when it comes to retrieval of an item but slower in insertion and deletion.
AVL trees are often compared with red–black trees because both support the same set of operations and take O(log n) time for the basic operations. For lookup-intensive applications, AVL trees are faster than red–black trees because they are more strictly balanced. Similar to red–black trees, AVL trees are height-balanced.
Both AVL trees and red–black trees are self-balancing binary search trees and they are related mathematically. AVL trees are more rigidly balanced than red–black trees, leading to faster retrieval but slower insertion and deletion.
Retrieval of element is fast in AVL tree. The number of steps required to find an item depends on the distance between the item and the root node. An AVL tree is balanced binary search tree in which the difference between the height of any node’s left and right subtree is at most one. That’s why retrieval is faster in AVL tree.
For more information you can visit : http://www.tutorialride.com/data-structures/data-structure-tutorial.htm
Thank you...
Prajakta Pandit 03-6-2017 01:25 AM
Data Structure - AVL Trees
AVL tree is a height balanced tree. AVL tree is another balanced binary search tree. It was invented by Adelson-Velskii and Landis. It is a self-balancing binary search tree. AVL trees have a faster retrieval.
Prajakta Pandit 01-31-2017 12:32 AM
« Previous
Next »
Write your comments
*
*
Email must be in the form someone@domain.com
*
*
Enter the code shown above:
Please enter the code shown above
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)
Related Content
C test (42)
C (12)
C++ for beginners (10)
C++ (20)
C++ (24)
C++ (18)
C++ (14)
C++ (12)
C++ (15)
C++ (15)
Data structure (20)
Data structure (10)
Data structure (10)
Data structure (10)
PERL (25)
VC++ (11)
Oops (30)
Mainframe (41)
Mainframe (15)
Embedded systems (15)
OOAD (49)
Advertisement
▲