In which of the following self – balancing binary search tree the recently accessed element can be accessed quickly?

Category: QuestionsIn which of the following self – balancing binary search tree the recently accessed element can be accessed quickly?
Editor">Editor Staff asked 5 months ago

In which of the following self – balancing binary search tree the recently accessed element can be accessed quickly?
 
(a) AVL tree
 
(b) AA tree
 
(c) Splay tree
 
(d) Red – Black tree
 
This intriguing question originated from Binary Trees in section Binary Trees of Data Structures & Algorithms I
 
The question was asked during an online exam.

1 Answers
Editor">Editor Staff answered 5 months ago

Right answer is (c) Splay tree
 
For explanation: In a Splay tree, the recently accessed element can be accessed quickly. In Splay tree, the frequently accessed nodes are moved towards the root so they are quick to access again.


Notice: Trying to get property 'ID' of non-object in /home/fvckxqmi/public_html/wp-content/themes/blocksy/inc/single/single-helpers.php on line 17

Notice: Trying to get property 'ID' of non-object in /home/fvckxqmi/public_html/wp-content/themes/blocksy/inc/single/single-helpers.php on line 17

Notice: Trying to get property 'ID' of non-object in /home/fvckxqmi/public_html/wp-content/themes/blocksy/inc/single/single-helpers.php on line 17

Notice: Trying to get property 'ID' of non-object in /home/fvckxqmi/public_html/wp-content/themes/blocksy/inc/single/single-helpers.php on line 17
Articles: 40702