Spanning and weighted spanning trees A different kind of - - PowerPoint PPT Presentation

spanning and weighted spanning trees a different kind of
SMART_READER_LITE
LIVE PREVIEW

Spanning and weighted spanning trees A different kind of - - PowerPoint PPT Presentation

Spanning and weighted spanning trees A different kind of optimization (graph theory is cool.) Spanning and weighted spanning trees courtesy of dr. sarah-marie belcastro, http://www.mathily.org Spanning and weighted spanning trees A different


slide-1
SLIDE 1

Spanning and weighted spanning trees A different kind of optimization

(graph theory is cool.)

Spanning and weighted spanning trees courtesy of dr. sarah-marie belcastro, http://www.mathily.org

slide-2
SLIDE 2

Spanning and weighted spanning trees A different kind of optimization

(graph theory is cool.)

Definitions and examples

Spanning and weighted spanning trees courtesy of dr. sarah-marie belcastro, http://www.mathily.org

slide-3
SLIDE 3

Graphs

A graph is a collection of vertices (that look like dots ) and edges (that look like curves ), where each edge joins two vertices. (Formally, a graph is a pair G = (V , E), where V is a set of dots and E is a set of pairs of vertices.)

Spanning and weighted spanning trees courtesy of dr. sarah-marie belcastro, http://www.mathily.org

slide-4
SLIDE 4

Graphs

A graph is a collection of vertices (that look like dots ) and edges (that look like curves ), where each edge joins two vertices. (Formally, a graph is a pair G = (V , E), where V is a set of dots and E is a set of pairs of vertices.) Here are a few examples of graphs:

a b e f

Spanning and weighted spanning trees courtesy of dr. sarah-marie belcastro, http://www.mathily.org

slide-5
SLIDE 5

Graphs

A graph is a collection of vertices (that look like dots ) and edges (that look like curves ), where each edge joins two vertices. (Formally, a graph is a pair G = (V , E), where V is a set of dots and E is a set of pairs of vertices.) Here are a few examples of graphs:

a b e f

Two vertices joined by an edge are called adjacent (see a and b). Two edges that meet at a vertex are called incident (see e and f ).

Spanning and weighted spanning trees courtesy of dr. sarah-marie belcastro, http://www.mathily.org

slide-6
SLIDE 6

Subgraphs

A subgraph is a graph that is contained within another graph. For example, here the second graph is a subgraph of the fourth graph.

a b e f

Spanning and weighted spanning trees courtesy of dr. sarah-marie belcastro, http://www.mathily.org

slide-7
SLIDE 7

Subgraphs

A subgraph is a graph that is contained within another graph. For example, here the second graph is a subgraph of the fourth graph.

a b e f

Here is the second graph, shown as a subgraph of the fourth graph.

Spanning and weighted spanning trees courtesy of dr. sarah-marie belcastro, http://www.mathily.org

slide-8
SLIDE 8

Trees

In a connected graph, there is a way to get from any vertex to any

  • ther vertex without leaving the graph.

Spanning and weighted spanning trees courtesy of dr. sarah-marie belcastro, http://www.mathily.org

slide-9
SLIDE 9

Trees

In a connected graph, there is a way to get from any vertex to any

  • ther vertex without leaving the graph. The left graph above is not

connected.

Spanning and weighted spanning trees courtesy of dr. sarah-marie belcastro, http://www.mathily.org

slide-10
SLIDE 10

Trees

In a connected graph, there is a way to get from any vertex to any

  • ther vertex without leaving the graph. The left graph above is not

connected. A cycle is a sequence that alternates between vertices and edges, and whose only repetition is the first/last vertex.

Spanning and weighted spanning trees courtesy of dr. sarah-marie belcastro, http://www.mathily.org

slide-11
SLIDE 11

Trees

In a connected graph, there is a way to get from any vertex to any

  • ther vertex without leaving the graph. The left graph above is not

connected. A cycle is a sequence that alternates between vertices and edges, and whose only repetition is the first/last vertex. A cycle is shown by itself as the top part of the left graph above.

Spanning and weighted spanning trees courtesy of dr. sarah-marie belcastro, http://www.mathily.org

slide-12
SLIDE 12

Trees

In a connected graph, there is a way to get from any vertex to any

  • ther vertex without leaving the graph. The left graph above is not

connected. A cycle is a sequence that alternates between vertices and edges, and whose only repetition is the first/last vertex. A cycle is shown by itself as the top part of the left graph above. A tree is a graph that is connected and has no cycles. One is shown to the right above. A forest is a bunch of trees.

Spanning and weighted spanning trees courtesy of dr. sarah-marie belcastro, http://www.mathily.org

slide-13
SLIDE 13

Spanning Trees

A spanning tree is a tree that contains all the vertices of a given

  • graph. Basically, it is the largest tree contained in a graph.

Spanning and weighted spanning trees courtesy of dr. sarah-marie belcastro, http://www.mathily.org

slide-14
SLIDE 14

Spanning Trees

A spanning tree is a tree that contains all the vertices of a given

  • graph. Basically, it is the largest tree contained in a graph.

Here are spanning trees of the above-pictured graphs:

Spanning and weighted spanning trees courtesy of dr. sarah-marie belcastro, http://www.mathily.org

slide-15
SLIDE 15

Spanning Trees

A spanning tree is a tree that contains all the vertices of a given

  • graph. Basically, it is the largest tree contained in a graph.

Here are spanning trees of the above-pictured graphs:

Spanning and weighted spanning trees courtesy of dr. sarah-marie belcastro, http://www.mathily.org

slide-16
SLIDE 16

Weighted Graphs

Weights are labels on the edges and/or vertices of a graph that

  • ften denote costs or distances or energies. Here’s a weighted

graph:

2 2 2 1 1 3 3

Spanning and weighted spanning trees courtesy of dr. sarah-marie belcastro, http://www.mathily.org

slide-17
SLIDE 17

Weighted Spanning Trees

The total weight of a spanning tree is the sum of the weights on its edges. A minimum-weight spanning tree is one that has the lowest possible total weight.

Spanning and weighted spanning trees courtesy of dr. sarah-marie belcastro, http://www.mathily.org

slide-18
SLIDE 18

Weighted Spanning Trees

The total weight of a spanning tree is the sum of the weights on its edges. A minimum-weight spanning tree is one that has the lowest possible total weight. Here are a weighted graph, a spanning tree of total weight 6, and a spanning tree of total weight 7; are either of these minimum-weight spanning trees? 2 2 2 1 1 2 2 1 1 3 2 1 1 3 3

Spanning and weighted spanning trees courtesy of dr. sarah-marie belcastro, http://www.mathily.org

slide-19
SLIDE 19

Time for Worksheets!

No, really. It’s time to work on worksheets now.

Spanning and weighted spanning trees courtesy of dr. sarah-marie belcastro, http://www.mathily.org

slide-20
SLIDE 20

Final notes: MathILy

◮ intensive summer program for super-smart, super-cool

students

◮ extremely interactive and silly and inventive classes ◮ discrete and applicable college-level mathematics ◮ Root class, then Week of Chaos, then Branch classes

http://www.mathily.org

Spanning and weighted spanning trees courtesy of dr. sarah-marie belcastro, http://www.mathily.org