Search Header Logo

11 - AVL Trees

Authored by Jason King

Computers

University

Used 73+ times

11 - AVL Trees
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

When performing trinode restructuring in an AVL tree, which node should be labeled "Z"?

the first node at which the height-balance property is violated
the first node that would be visited in an inorder traversal
the child of the node where the height-balance property is violated
the traller grandchild of the node at which the height-balance property is violated

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

The goal of trinode restructuring is to ___.

balance the subtree
move "a" to be the root
move "c" to be the root
move "y" to be the root

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

In an AVL tree, for every internal node p, the heights of the children of the node p ______.

differ by at most 1
differ by at most 2
must be equal
must be different

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

Is the following tree an AVL tree?

no

yes

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

Is the following tree an AVL tree?

yes

no

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

Assume we deleted the left child of 10 (now replaced with a sentinel node in the tree below). What node should be labeled "Z"?

10

12

15

20

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

Assume we deleted the left child of 10 (now replaced with a sentinel node in the tree below). What node should be labeled "Y"?

15

10

12

20

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?