CMSC420 Exam 4

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

1/14

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 9:04 PM on 3/26/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

15 Terms

1
New cards

How does demote and merge work?

Pick one of the minimum full siblings, demote the parent of those 2 and form a new node

2
New cards

What is time complexity of all operations in B-tree?

O(log k)

3
New cards

When does a node become a scapegoat?

When size(x.child)/size(x) > alpha

4
New cards

Is a scape goat tree one with no scapegoats?

False, scapegoat trees have scapegoats

5
New cards

Which median do you pick when rebuilding a tree?

The upper median

6
New cards

What is the rebuilding time?

O(k)

7
New cards

When during insertion is there a depth violation and we have to check upwards for a scapegoat?

If d > log(1/alpha)(n) where n = number of nodes in the tree

8
New cards

What is the height of a scapegoat tree in terms of big O

O(log(n))

9
New cards

How expensive is an insertsion and deletion in scapegoat tree without accounting for rebuilding?

O(log(k))

10
New cards

How does deletion amortized cost work?

Insert 3 everytime you delete, O(1) amortized per operation cost

11
New cards

How does insertion amortized cost work?

Insert 3 tokens into the path onto the inserted node, including the inserted node, or deleted node/replacement

12
New cards

What does splay(x) do?

Bring x, or the parent of what would’ve been x to the top

13
New cards

What is a zig?

Rotating to root

14
New cards

What is a zig-zig?

Two left/right rotations at parent of x?

15
New cards

What is a zig-zag?

Rotating x one up at it’s parent, then rotating x up to the grand parent

Explore top flashcards

flashcards
Cô Yến 5/12/2024
22
Updated 480d ago
0.0(0)
flashcards
EXAM 2 - part 6
22
Updated 250d ago
0.0(0)
flashcards
Einheit 1 Freunde
75
Updated 229d ago
0.0(0)
flashcards
Biology Honors Evolution
51
Updated 1096d ago
0.0(0)
flashcards
Matiekos egzas
73
Updated 819d ago
0.0(0)
flashcards
Livy 2.10 Vocab
20
Updated 1215d ago
0.0(0)
flashcards
Cô Yến 5/12/2024
22
Updated 480d ago
0.0(0)
flashcards
EXAM 2 - part 6
22
Updated 250d ago
0.0(0)
flashcards
Einheit 1 Freunde
75
Updated 229d ago
0.0(0)
flashcards
Biology Honors Evolution
51
Updated 1096d ago
0.0(0)
flashcards
Matiekos egzas
73
Updated 819d ago
0.0(0)
flashcards
Livy 2.10 Vocab
20
Updated 1215d ago
0.0(0)