After the insertion operation, is the resultant tree a splay tee?

Category: QuestionsAfter the insertion operation, is the resultant tree a splay tee?
Editor">Editor Staff asked 1 month ago

After the insertion operation, is the resultant tree a splay tee?
 
(a) true
 
(b) false
 
My question is taken from Splay Tree topic in portion Binary Trees of Data Structures & Algorithms I
 
This question was addressed to me in an online interview.

1 Answers
Editor">Editor Staff answered 1 month ago

Right option is (a) true
 
Easiest explanation – There is a zig-zag and right operation(zig) which gives the right hand side tree. refer splay operations for insertion in splay tree.