What is a splay operation?

Category: QuestionsWhat is a splay operation?
Editor">Editor Staff asked 5 months ago

What is a splay operation?
 
(a) moving parent node to down of child
 
(b) moving a node to root
 
(c) moving root to leaf
 
(d) removing leaf node
 
My enquiry is from Splay Tree in portion Binary Trees of Data Structures & Algorithms I
 
This question was addressed to me by my school principal while I was bunking the class.

1 Answers
Editor">Editor Staff answered 5 months ago

Right choice is (b) moving a node to root
 
For explanation: Splay trees mainly work using splay operations. wheneve we insert, delete and search for a node we splay the respective nodes to root. we have zig-zag and zig-zig operations.


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