Two-Three Trees & Red Black Trees Flashcards

1
Q

Two-three trees maintains constant depth for every leaf.

A

True.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Red black trees allow depth of every leaf to vary by at most a factor of 2.

A

True.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the max depth of a two three tree?

A

O(logn)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the worst case complexity of searching in a BST?

A

theta(N)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the worst case complexity of inserting into a BST?

A

theta(N)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the worst case complexity of searching in a 2-3 tree? (red black implementation)

A

theta(2 lg N)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the worst case complexity of insterting into a 2-3 tree? (red black implementation)

A

theta(2 lg N)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Are red black trees BSTs?

A

Yes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Are red black trees 2-3 trees?

A

Yes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly