CMSC420 Exam 3

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/12

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 1:20 PM on 3/5/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

13 Terms

1
New cards

What is a left-right rotation?

Left rotation at the left child, right rotation at the root

2
New cards

How to fix left-left heavy tree?

Right rotation

3
New cards

How to fix left-right heavy tree?

Left right rotation

4
New cards

If a tree becomes LL heavy after deletion, and not LR heavy, will the height change?

Yes

5
New cards

Does height change after doing LR rotation for LR heavy tree after deletion?

Yes

6
New cards

Time complexity of insertion into AVL?

O(log(n))

7
New cards

Time complexity of deletion in AVL?

O(log(n))

8
New cards

What is the mimimum amount of keys non root can have in a B-Tree?

Ceiling(m/2) - 1 minimum, m - 1 maximum

9
New cards

How many children must each node have in a B Tree?

0, or k + 1

10
New cards

Do all leaves have to be at the same level in a B Tree?

Yes

11
New cards

What is the minimum number of keys in a tree of order m, height h?

knowt flashcard image
12
New cards

Max number of keys?

knowt flashcard image
13
New cards