What is a splay operation?

Category: QuestionsWhat is a splay operation?
Editor">Editor Staff asked 1 month 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 1 month 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.