Trees Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Defintion

A

Connected, undirected graph with no cycles.

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

What is a cycle

A

a closed path in which all the edges are different and all the intermediate vertices are different.

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

A closed path/circuit definition

A

Succession of edges that star and end at the same vertex.

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

Vertex definition

A

The objects that a graph is composed of aka nodes.

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

Edge defintion

A

The link between the vertices aka arc.

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

Degree definition

A

The number of edges connection to a node.

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

Neighbour definition

A

Vertex x is a neighbour of vertex y if an edge directly links them.

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

Path definition

A

A sequence of edges leading from one vertex to another.

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

Design of a tree

A

All the nodes are connected.
Edges are undirected.
There are no cycles.

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

Define a rooted tree (RT)

A

Has a root node from which all other nodes stem.

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

Parent node definition (RT)

A

A node from which all other nodes stem from.

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

Do root nodes have parents? (RT)

A

No

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

Child node definition (RT)

A

Nodes with a parent.

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

Leaf nodes definition (RT)

A

Child nodes with no children.

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

Binary tree definition (BT)

A

A rooted tree in which every parent node has no more than two child nodes.

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

What can rooted trees (including binary trees) be used to represent?

A

Family trees, or file systems on a computers hard drive.