Search Header Logo

12 - Splay Trees

Authored by Jason King

Computers

University

Used 63+ times

12 - Splay Trees
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

Is the following tree a valid splay tree?

no

yes

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is TRUE about splay trees?

Splay trees implement the move-to-front heuristic<br />
Splay trees are perfectly balanced
Inserting an entry into a splay tree has worst-case cost of O(logn)
Splay trees are proper binary trees

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

When splaying X, what is the first rotation performed?

zig-zig

zig-zag

zig

zag

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

When splaying X, which node do you rotate FIRST?

rotate T left around L

rotate X left around T

rotate S right around T

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

When splaying S, what is the first rotation performed?

zig-zag

zig-zig

zig

zag

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

When splaying S, which node do you rotate FIRST?

rotate S right around T

rotate T left around L

rotate X left around T

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?