1.

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 nodeMy enquiry is from Splay Tree in portion Binary Trees of Data Structures & Algorithms IThis question was addressed to me by my school principal while I was bunking the class.

Answer»

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.



Discussion

No Comment Found

Related InterviewSolutions