week 7 Flashcards

1
Q

What is a tree

A

A simple, connected undirected graph with no simple circuits

. connected- There is a unique simple path between any two distinct vertices

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

What does it mean when a tree of level n is balanced

A

The leaves are present in level n or level (n-1)

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

If v is a vertex in a tree how do you find the subtree

A

make v the root
The subtree containing v is its :
.decendents
. all edges incident to these decendents

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

What is an m -ary tree

A

Tree where every internal vertex( vertex with at least one child) has no more than m children

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

full m -ary tree

A

tree where internal vertices has exactly m children

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

What is a rooted tree

A

A tree that has one vertex designated as the root

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

2 additional things about trees

A

If we add an edge to a tree, a cycle is formed
if we remove an edge its no longer connected

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

2 trees are isopormopgic if

A

bijection takes:
. roots to roots
. edges to edges and non edges to non edges

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

what is the length of vertex v

A

The level from root to vertex v

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

height of a rooted tree

A

The maximum amount of levels that can be in the tree

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

properties of binary trees of height n

A

.left and right subtrees of root are full binary trees with height <= n-1
. At least one ( not both) has height n-1

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