Question
Tree_node function(Tree_node x)
{
Tree_node y = x.left;
x.left = y.right;
y.right = x;
return y;
}
a.
right rotation of subtree
b.
left rotation of subtree
c.
zig-zag operation
d.
zig-zig operation
Posted under Data Structures and Algorithms
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. What output does the below pseudo code produces?
Similar Questions
Discover Related MCQs
Q. What is the disadvantage of using splay trees?
View solution
Q. What is a threaded binary tree traversal?
View solution
Q. What are the disadvantages of normal binary tree traversals?
View solution
Q. What may be the content of a node in threaded binary tree?
View solution
Q. What are null nodes filled with in a threaded binary tree?
View solution
Q. The null left pointer pointing to predecessor and null right pointer pointing to successor. how many types of threaded tree are possible with this convention?
View solution
Q. What are double and single threaded trees?
View solution
Q. In a max-heap, element with the greatest key is always in the which node?
View solution
Q. Heap exhibits the property of a binary tree?
View solution
Q. What is the complexity of adding an element to the heap.
View solution
Q. The worst case complexity of deleting any arbitrary node value element from heap is
View solution
Q. Heap can be used as ________________
View solution
Q. An array consist of n elements. We want to create a heap using the elements. The time complexity of building a heap will be in order of
View solution
Q. What is the space complexity of searching in a heap?
View solution
Q. What is the best case complexity in builading a heap?
View solution
Q. What is the location of parent node for any arbitary node i?
View solution
Q. Given an array of element 5,7,9,1,3,10,8,4. Tick all the correct sequences of elements after inserting all the elements in a min-heap.
View solution
Q. Choose the correct properties of weak-heap.
View solution
Q. Left child of parent node has value lesser than the parent node.
View solution
Q. What is the other name of weak heap?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Data Structures and Algorithms? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!