What is the time complexity of searching for an element in a BST?

DSA + System design - 15

Quiz
•
Computers
•
Professional Development
•
Hard
Puneet Kansal
Used 1+ times
FREE Resource
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
O(n)
O(log n)
O(n log n)
O(1)
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Given a BST, what is the result of an inorder traversal?
Nodes are visited in ascending order.
Nodes are visited in descending order.
Nodes are visited in random order.
Nodes are visited level by level.
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is not a self-balancing binary search tree?
AVL Tree
Red-Black Tree
B-Tree
Binary Heap
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
In a BST, which node has the smallest value?
The root node
The leftmost node
The rightmost node
Any leaf node
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which technique is used to maintain balance in an AVL tree?
Hashing
Dynamic Programming
Rotation
Backtracking
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the time complexity of finding the minimum value in a BST?
O(1)
O(log n)
O(n)
O(n log n)
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following operations is not supported efficiently by a BST?
Search
Insertion
Deletion
Random Access
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Friday Fun

Quiz
•
Professional Development
13 questions
Day2- IoT STC

Quiz
•
Professional Development
15 questions
Network Plus Pre Assessment

Quiz
•
Professional Development
10 questions
Linked List Reversal

Quiz
•
Professional Development
10 questions
Blockchain Day 2 Final Quiz

Quiz
•
Professional Development
15 questions
Linked List

Quiz
•
Professional Development
15 questions
Week 11 Networks and Routing

Quiz
•
10th Grade - Professi...
10 questions
ADS QUIZ FOR MECH1

Quiz
•
Professional Development
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade