PDS - 04225 Balanced Trees - Chapter 7

PDS - 04225 Balanced Trees - Chapter 7

University

10 Qs

quiz-placeholder

Similar activities

rbtq

rbtq

University

5 Qs

Linked List - Implementation

Linked List - Implementation

University

15 Qs

PDS - 04225 Lists, Stacks and Queues - Chapter 5

PDS - 04225 Lists, Stacks and Queues - Chapter 5

University

10 Qs

BCSC0006 Trees

BCSC0006 Trees

University

10 Qs

Trees in Data Structure

Trees in Data Structure

University

15 Qs

Trees

Trees

University

10 Qs

Quiz despre B Tree

Quiz despre B Tree

University

10 Qs

DQXC

DQXC

University

15 Qs

PDS - 04225 Balanced Trees - Chapter 7

PDS - 04225 Balanced Trees - Chapter 7

Assessment

Quiz

Computers

University

Medium

Created by

Rafael Orta

Used 371+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Indicate whether the tree is an AVL tree

Yes

No

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Indicate whether the tree is an AVL tree

Yes

No

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Indicate whether the tree is an AVL tree

Yes

No

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the minimum possible height of an AVL tree with 7 nodes?

2

3

5

7

Answer explanation

Media Image

The minimum depth is the number of nodes along the shortest path from the root node down to the nearest leaf node. The minimum would be a perfect tree

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the maximum possible height of an AVL tree with 7 nodes?

2

3

5

7

Answer explanation

If there are n nodes in AVL Tree, its maximum height can not exceed 1.44log2n. Approximately 1.5 times the minimum, since the minimum is 2 , then 2 * 1.5 = 3

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

An AVL tree maintains the minimum possible height.

True

False

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which red-black tree requirement does this BST not satisfy?

Root node must be black

None

A red node's children cannot be red.

All paths from a node to a null leaf nodes must have the same number of black nodes.

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?