Search Header Logo

10 - Binary Search Trees

Authored by Jason King

Computers

University

Used 26+ times

10 - Binary Search Trees
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the MAXIMUM number of nodes in a binary search tree with height = 5 ?

26-1

25-1

25

26

6

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the MINIMUM number of nodes in a binary search tree with height = 5?

6

5

26-1

25-1

25

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the worst-case runtime of lookUp/get in a binary search tree?

O(n)

O(logn)

O(1)

O(n2)

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the worst-case runtime of lookUp/get in a *perfectly balanced* binary search tree?

O(logn)

O(n)

O(1)

O(n2)

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

When deleting from a binary search tree, if the node being deleted has 2 children, we replace the entry with ____.

the inorder successor
null
the left child
the right child
the parent

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?