Docsity

Trees - Applied Graph Theory - Lecture Slides, Slides of Computer Science

Partial preview of the text

Download Trees - Applied Graph Theory - Lecture Slides and more Slides Computer Science in PDF only on Docsity!

Trees

Trees

Trees and Spanning Trees

Trees and Spanning Trees

A graph having no cycles is A graph having no cycles is

acyclic acyclic.

A

A

forest forest

is an

is an acyclic

acyclic graph.

graph.

A

A

leaf leaf

is a vertex of degree 1. is a vertex of degree 1.

A

A

spanning sub

spanning sub-

-graph

graph

of G is a sub of G is a sub-

-graph

graph

with vertex set V(G). with vertex set V(G).

A

A

spanning tree

spanning tree

is a spanning sub is a spanning sub-

-graph

graph

that is a tree. that is a tree.

Tree: Characterization

Tree: Characterization

An n An n-

-vertex graph G (with n

vertex graph G (with n

  1. is a tree
  2. is a tree iff

iff:

  • G is connected and has no cycles

G is connected and has no cycles

  • G is connected and has n

G is connected and has n

− −

1 edges 1 edges

  • G has

G has n

n

− −

1 edges and no cycles 1 edges and no cycles

  • For

For

u,v u,v

∈ ∈

V(G), V(G),

G has exactly one G has exactly one

u,v u,v-

-

path path

Docsity.com

Some results …

Some results …

Every tree with at least two vertices has at Every tree with at least two vertices has at

least two leaves. least two leaves.

  • Deleting a leaf from a tree with

Deleting a leaf from a tree with

n n

vertices vertices

produces a tree with produces a tree with

n n-

-

1

vertices. vertices.

If T is a tree with If T is a tree with

k

k

edges and G is a simple edges and G is a simple

graph with graph with

δ

δ

(G)

(G)

k, k,

then T is a sub then T is a sub-

-graph

graph

of G. of G.

Diameter and Radius

Diameter and Radius

The The

eccentricity eccentricity

of a vertex

of a vertex

u, u,

written written

(u), (u),

is the maximum of its distances to other is the maximum of its distances to other

vertices. vertices.

In a graph G, the In a graph G, the

diameter, diameter,

diamG diamG, and the

, and the

radius, radius,

radG radG, are the maximum and

, are the maximum and

minimum of the vertex eccentricities minimum of the vertex eccentricities

respectively. respectively.

The The

center center

of G is the of G is the subgraph

subgraph induced by

induced by

the vertices of minimum eccentricity. the vertices of minimum eccentricity.

Counting Trees

Counting Trees

There are There are

n n

n n

− −

2 2

trees with vertex set [n]. trees with vertex set [n].