Exam 3 Flashcards

1
Q

What is a binary tree?

A

A rooted tree which has either (A) a left child (B) a right child (C) a left child and a right child or (D) no children

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

What is a full binary tree?

A

A binary tree in which every vertex has either a left and a right child or no children at all

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

What is the maximum number of nodes on level i of a binary tree?

A

2^i

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

What is the maximum number of nodes in a binary tree of height k?

A

2^(k+1) - 1

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

What is a binary search tree?

A

A binary tree in which L

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

What is pre-order traversal?

A

rLR

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

What is in-order traversal?

A

LrR

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

What is post-order traversal?

A

LRr

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

What is an in-order expression?

A

a + b

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

What is a pre-order expression?

A

+ a b

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

What is a post-order expression

A

a b +

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