Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Questions  >  Suppose that we have numbers between 1 and 10... Start Learning for Free
Suppose that we have numbers between 1 and 100 in a binary search tree and want to search for the number 55. Which of the following sequences CANNOT be the sequence of nodes examined?
  • a)
    {10, 75, 64, 43, 60, 57, 55}
  • b)
    {90, 12, 68, 34, 62, 45, 55}
  • c)
    {9, 85, 47, 68, 43, 57, 55}
  • d)
    {79, 14, 72, 56, 16, 53, 55}
Correct answer is option 'C'. Can you explain this answer?
Verified Answer
Suppose that we have numbers between 1 and 100 in a binary search tree...
In BST on right side of parent number should be greater than it, but in C after 47, 43 appears that is wrong.
View all questions of this test
Most Upvoted Answer
Suppose that we have numbers between 1 and 100 in a binary search tree...
Explanation:

To search for the number 55 in a binary search tree, we start at the root node and move down the tree, comparing the value at each node to 55. We can eliminate any sequence of nodes that does not follow the rules of a binary search tree, such as visiting a node with a value smaller than the current node when searching for a larger value.

Sequence that cannot be the sequence of nodes examined:

C) {9, 85, 47, 68, 43, 57, 55}

This sequence starts at the root node with a value of 9, which is smaller than the value we are searching for (55). The sequence then moves to a node with a value of 85, which is larger than the value we are searching for. This violates the rules of a binary search tree, where we should only move to the left subtree if the value is smaller than the current node and move to the right subtree if the value is larger.

The other sequences follow the rules of a binary search tree and could be valid sequences for searching for the number 55.
Explore Courses for Computer Science Engineering (CSE) exam

Similar Computer Science Engineering (CSE) Doubts

Top Courses for Computer Science Engineering (CSE)

Suppose that we have numbers between 1 and 100 in a binary search tree and want to search for the number 55. Which of the following sequences CANNOT be the sequence of nodes examined?a){10, 75, 64, 43, 60, 57, 55}b){90, 12, 68, 34, 62, 45, 55}c){9, 85, 47, 68, 43, 57, 55}d){79, 14, 72, 56, 16, 53, 55}Correct answer is option 'C'. Can you explain this answer?
Question Description
Suppose that we have numbers between 1 and 100 in a binary search tree and want to search for the number 55. Which of the following sequences CANNOT be the sequence of nodes examined?a){10, 75, 64, 43, 60, 57, 55}b){90, 12, 68, 34, 62, 45, 55}c){9, 85, 47, 68, 43, 57, 55}d){79, 14, 72, 56, 16, 53, 55}Correct answer is option 'C'. Can you explain this answer? for Computer Science Engineering (CSE) 2025 is part of Computer Science Engineering (CSE) preparation. The Question and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus. Information about Suppose that we have numbers between 1 and 100 in a binary search tree and want to search for the number 55. Which of the following sequences CANNOT be the sequence of nodes examined?a){10, 75, 64, 43, 60, 57, 55}b){90, 12, 68, 34, 62, 45, 55}c){9, 85, 47, 68, 43, 57, 55}d){79, 14, 72, 56, 16, 53, 55}Correct answer is option 'C'. Can you explain this answer? covers all topics & solutions for Computer Science Engineering (CSE) 2025 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for Suppose that we have numbers between 1 and 100 in a binary search tree and want to search for the number 55. Which of the following sequences CANNOT be the sequence of nodes examined?a){10, 75, 64, 43, 60, 57, 55}b){90, 12, 68, 34, 62, 45, 55}c){9, 85, 47, 68, 43, 57, 55}d){79, 14, 72, 56, 16, 53, 55}Correct answer is option 'C'. Can you explain this answer?.
Solutions for Suppose that we have numbers between 1 and 100 in a binary search tree and want to search for the number 55. Which of the following sequences CANNOT be the sequence of nodes examined?a){10, 75, 64, 43, 60, 57, 55}b){90, 12, 68, 34, 62, 45, 55}c){9, 85, 47, 68, 43, 57, 55}d){79, 14, 72, 56, 16, 53, 55}Correct answer is option 'C'. Can you explain this answer? in English & in Hindi are available as part of our courses for Computer Science Engineering (CSE). Download more important topics, notes, lectures and mock test series for Computer Science Engineering (CSE) Exam by signing up for free.
Here you can find the meaning of Suppose that we have numbers between 1 and 100 in a binary search tree and want to search for the number 55. Which of the following sequences CANNOT be the sequence of nodes examined?a){10, 75, 64, 43, 60, 57, 55}b){90, 12, 68, 34, 62, 45, 55}c){9, 85, 47, 68, 43, 57, 55}d){79, 14, 72, 56, 16, 53, 55}Correct answer is option 'C'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of Suppose that we have numbers between 1 and 100 in a binary search tree and want to search for the number 55. Which of the following sequences CANNOT be the sequence of nodes examined?a){10, 75, 64, 43, 60, 57, 55}b){90, 12, 68, 34, 62, 45, 55}c){9, 85, 47, 68, 43, 57, 55}d){79, 14, 72, 56, 16, 53, 55}Correct answer is option 'C'. Can you explain this answer?, a detailed solution for Suppose that we have numbers between 1 and 100 in a binary search tree and want to search for the number 55. Which of the following sequences CANNOT be the sequence of nodes examined?a){10, 75, 64, 43, 60, 57, 55}b){90, 12, 68, 34, 62, 45, 55}c){9, 85, 47, 68, 43, 57, 55}d){79, 14, 72, 56, 16, 53, 55}Correct answer is option 'C'. Can you explain this answer? has been provided alongside types of Suppose that we have numbers between 1 and 100 in a binary search tree and want to search for the number 55. Which of the following sequences CANNOT be the sequence of nodes examined?a){10, 75, 64, 43, 60, 57, 55}b){90, 12, 68, 34, 62, 45, 55}c){9, 85, 47, 68, 43, 57, 55}d){79, 14, 72, 56, 16, 53, 55}Correct answer is option 'C'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice Suppose that we have numbers between 1 and 100 in a binary search tree and want to search for the number 55. Which of the following sequences CANNOT be the sequence of nodes examined?a){10, 75, 64, 43, 60, 57, 55}b){90, 12, 68, 34, 62, 45, 55}c){9, 85, 47, 68, 43, 57, 55}d){79, 14, 72, 56, 16, 53, 55}Correct answer is option 'C'. Can you explain this answer? tests, examples and also practice Computer Science Engineering (CSE) tests.
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Explore Courses
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev