Binary Search Trees and Balanced Trees Quiz

Binary Search Trees and Balanced Trees Quiz

University

21 Qs

quiz-placeholder

Similar activities

Quiz Struktur Data

Quiz Struktur Data

9th Grade - University

20 Qs

kuis topologi kelas xi

kuis topologi kelas xi

University

20 Qs

Data Structures and Algorithm

Data Structures and Algorithm

University

20 Qs

Data Structures Quiz

Data Structures Quiz

University

20 Qs

UH BAB II

UH BAB II

9th Grade - University

25 Qs

DSA - QA3

DSA - QA3

University

20 Qs

Decision Trees Quiz

Decision Trees Quiz

University

17 Qs

Data Structures

Data Structures

10th Grade - University

18 Qs

Binary Search Trees and Balanced Trees Quiz

Binary Search Trees and Balanced Trees Quiz

Assessment

Quiz

Computers

University

Medium

Created by

Matthew Garcia

Used 20+ times

FREE Resource

21 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the worst case, a binary search tree will take how much time to search an element?

O(n)

O(log n)

O(n^2)

O(n log n)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How much time does an AVL tree take to perform insert, insert, and delete operations in the average case as well as the worst case?

O(n)

O(log n)

O(n^2)

O(n log n)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When the left sub-tree of the tree is one level higher than that of the right sub-tree, then the balance factor is

0

1

-1

2

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which rotation is done when the new node is inserted in the right sub-tree of the right sub-tree of the critical node?

LL

LR

RL

RR

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When a node N is accessed it is splayed to make it the

Root node

Parent node

Child node

Sibling node

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a binary search tree, all the nodes in the left sub-tree have a value less than that of the root node.

True

False

7.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

To find the node with the largest value, we will find the value of the rightmost node of the ____ ____ _____.

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?