11.1 Trees Flashcards

1
Q

Definition of a Tree graph

A

A tree is an undirected graph with no simple circuits

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

Definition of a Forest

A

A (not-necessarily-connected) undirected graph without simple circuits is called a forest.

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

Rooted Trees

A

A rooted tree is a tree in which one vertex has been designated as the root and every edge is directedaway from the root.

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

Parent

A

Suppose that T is a rooted tree. If v is a vertex in T other than the root, the parent of v is the uniquevertex u such that there is a directed edge from u to v.

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

Child

A

If u is the parent of v, then v is called a child of u.

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

Siblings

A

Vertices with the same parent are called siblings.

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

Ancestors

A

The ancestors of a vertex other than the root are the vertices in the path from the root to this vertex,excluding the vertex itself and including the root.

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

Descendants

A

The descendants of a vertex v are those vertices that have v as an ancestor.

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

Leaf

A

A vertex of a tree is called a leaf if it has no children.

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

Internal Vertices

A

Vertices that have children are called internal vertices.

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

Subtree

A

If a is a vertex in a tree, the subtree with a as its root is the subgraph of the tree consisting of a andits descendants and all edges incident to these descendants.

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

m-ary Tree

A

A rooted tree is called an m-ary tree if every internal vertex has no more than m children. The tree is called a full m-ary tree if every internal vertex has exactly m children.

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

Binary Tree

A

An m-ary tree with m = 2 is called a binary tree.

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

Ordered Root Tree

A

An ordered rooted tree is a rooted tree where the children of each internal vertex are ordered

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

Left and Right Child

A

In an ordered binary tree, the first child is called the left child and the second child is called theright child

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

Left and Right Subtree

A

The tree rooted at the left child is called the left subtree and the tree rooted at the right child iscalled the right subtree

17
Q

How many edges in trees if have vertices? (Theorem 2)

A

A tree with n vertices has n − 1 edges.

18
Q

How many vertices in tree if have internal vertices? (Theorem 3)

A

A full m-ary tree with i internal vertices contains n = mi + 1 vertices.

19
Q

If only have vertices (Theorem 4)

A
  1. n vertices has i = n − 1/ m internal vertices andL = (m − 1)n + 1 / m leaves.
20
Q

if only have internal vertices (Theorem 4)

A

i internal vertices has n = mi + 1 vertices andL = (m − 1)i + 1 leaves.

21
Q

if only have leaves (Theorem 4)

A

L leaves has n = mL − 1 / m − 1 vertices andi = L − 1 / m − 1internal vertices