CSCI 4260 MATH 4150 - PowerPoint PPT Presentation

1 / 19
About This Presentation
Title:

CSCI 4260 MATH 4150

Description:

Think of the quiz as a warning: if you are having too much difficulty, you may ... Rooted trees: Child parent relationship. Theorem ... – PowerPoint PPT presentation

Number of Views:23
Avg rating:3.0/5.0
Slides: 20
Provided by: csR4
Category:
Tags: csci | math | end | quiz | relationship

less

Transcript and Presenter's Notes

Title: CSCI 4260 MATH 4150


1
CSCI 4260MATH 4150
  • GRAPH THEORY

2
A note on the quiz
  • There were some excellent solutions as well as
    some really clueless ones.
  • Think of the quiz as a warning if you are having
    too much difficulty, you may have a hard time in
    this course.
  • Solution review the proofs and ideas after every
    lecture.
  • More quizzes will be coming.
  • Special thanks to some of you for the really
    thorough grading!

3
Todays topic
  • Trees nicest graphs
  • Lets start with an example

4
Telephone network
What is nice about this structure?
5
Definition
  • Acyclic graph no cycles
  • Tree acyclic and connected
  • Rooted trees Child parent relationship

6
Theorem
  • A graph is a tree iff every two vertices of G are
    connected by a unique path.

7
Leaves
  • Definition leaves (or end vertices)
  • TheoremEvery nontrivial tree has at least 2
    leaves.

8
Trees have an inductive structure
Smaller trees
9
Theorem
  • Every tree of order n has size n-1

10
Forests
  • A forest is acyclic but not necessarily connected
  • Collection of a bunch of trees

11
Theorem
  • Every forest of order n with k components has
    size n-k

12
Theorem
  • The size of every connected graph of order n is
    at least n-1
  • Try for n 1, 2, 3
  • Suppose the theorem is false. Then there exists a
    graph with at most n-2 edges.
  • Let G be the smallest sized such graph and n be
    its order. Clearly ngt3.
  • G has a leaf proof
  • Can you find a smaller sized connected graph of
    size less than n-1?

13
Theorem
  • If G has any two properties below, then its a
    tree
  • Connected
  • Acyclic
  • m n - 1

14
Weighted Graphs
  • So far, G (V,E)
  • We can also have weights on edges (possibly on
    nodes too)
  • For example
  • Nodes cities
  • Two cities are connected by an edge if there is a
    road connecting them
  • The weight of an edge is the length of the road.

15
Spanning subgraphs
  • Definition?
  • Since trees are nice, it is common to look for
    spanning trees.
  • This raises the minimum spanning tree problem
    (MST)
  • Find the spanning tree whose weight (sum of the
    weights of its edges) is minimized.

16
Kruskals Algorithm
  • Input Graph G Output Spanning Tree T
  • Let e1, e2, ., em be the edges sorted in
    increasing weight
  • T ??, i 1
  • While T is not a spanning tree
  • If T ei has cycles
  • Throw ei away
  • Else
  • T ? T ei

17
Theorem
  • Kruskals algorithm produces an MST.
  • Proof suppose not
  • T output of Kruskal
  • Let H be an MST (Among all MSTs, pick the one
    that has a max number of edges in common with T)
  • We have w(H) lt w(T)
  • Suppose e1, e2, ., ei-1 are common

18
Proof (cont)
  • Let G0 ? H ei
  • The graph G0 has a cycle C. Let e0 be an edge
    on C, that is not on T (why does e0 exist?)
  • Let T0 ? G0 - e0
  • w(T0) w(H) w(ei) w(e0)
  • Since H is an MST w(e0) w(ei)
  • If i 1, w(ei) w(e0)

19
Proof (cont)
  • If i 1, w(ei) w(e0)
  • If i gt1
  • ei the edge added at iteration i (min weight at
    the time)
  • But we could have added e0 as well. How can this
    be?
  • In all cases T0 has more edges in common with T
    than H. A contradiction!
Write a Comment
User Comments (0)
About PowerShow.com