...
NIC-NIELIT Scientist-B 2020
October 5, 2023
Computer-Organization
October 5, 2023
NIC-NIELIT Scientist-B 2020
October 5, 2023
Computer-Organization
October 5, 2023

ISRO CS 2020

Question 7
What is the in-order successor of 15 in the given binary search tree?
A
18
B
6
C
17
D
20
Question 7 Explanation: 
In Binary Tree, Inorder successor of a node is the next node in Inorder traversal of the Binary Tree. Inorder Successor is NULL for the last node in Inorder traversal.
In Binary Search Tree, Inorder Successor of an input node can also be defined as the node with the smallest key greater than the key of input node. So, it is sometimes important to find next node in sorted order.
Hence next node in sorted order for 15 is 17.
Correct Answer: C
Question 7 Explanation: 
In Binary Tree, Inorder successor of a node is the next node in Inorder traversal of the Binary Tree. Inorder Successor is NULL for the last node in Inorder traversal.
In Binary Search Tree, Inorder Successor of an input node can also be defined as the node with the smallest key greater than the key of input node. So, it is sometimes important to find next node in sorted order.
Hence next node in sorted order for 15 is 17.
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!