Docsity

Graph Theory & Shannon Switching Game Discussion Slides - Univ. of Michigan, Nov. 14, 2007, Study notes of Algorithms and Programming

Partial preview of the text

Download Graph Theory & Shannon Switching Game Discussion Slides - Univ. of Michigan, Nov. 14, 2007 and more Study notes Algorithms and Programming in PDF only on Docsity!

Discussion slides: November 14, 2007

The University of Michigan

Agenda^ โ—^ Questions on anything^ โ—^ Review: Graph terminology^ โ—^ Shannon Switching Game^ โ—^ Graph problems^ โ—^ Branch & Bound

Graph Terminology^ โ—^ What is a graph (formally)?^ โ—^ What kinds of graphs can we have?

Graph Terminology^ โ—^ Order of a graph^ โ—^ Order of a node^ โ—^ Complete graph^ โ€“

How many edges does K

have (contrary to yesterday's lecture)?n

-^ Examples โ— Spanning subgraph โ— Induced subgraph โ— Example of spanning subgraph, which is not induced? โ— Example of induced subgraph, which is not spanning? โ— Example of spanning, induced โ€œsubgraphโ€?

Graph Terminology^ โ—^ Closed and open walks^ โ€“

x0-x1-x2-...-xm โ— Eulerian trail โ€“ Konigsberg bridge problem โ€“ Let's try it out โ€“ Can we find any generalizations?

When does such a trail exist?

Graph Terminology^ โ—^ Eularian trail (continued)^ โ€“

Closed: all even degree vertices โ€“ Open: exactly two even degree vertices โ— Hamilton cycle (with nodes this time)

Shannon Switching Game^ โ—^ Yeah, he's that guy outside the building (the statue)^ โ—^ Rules^ โ€“

Two players, positive and negative โ€“ Let G=(V, E) โ€“ U and V have been distinguished โ€“ Negative player goal:^ โ—^ Destroy paths โ€“ Positive player goal:^ โ—^ Connect U and V โ— Never ends in draw.

Why?

โ—^ Let's try playing for a bit

Shannon Switching Game^ โ—^ Postive game, neutral game, negative game^ โ—^ What's an easy way to convert a neutral game to a positive game?^ โ—^ When does G produce a positive game?

Graph Questions^ โ—^ Draw a connected graph whose degree sequence equals^ โ€“

(5, 4, 3, 3, 3, 3, 3, 2, 2) โ— Does a graph of order n with at least (n-1)(n-2)/2 + 1 edges have to beconnected?

Is it possible to have a disconnected graph of order n with one fewer edge?

Why?

Branch and Bound^ โ—^ How is BFS better than DFS?^ โ—^ How is DFS better than BFS?^ โ—^ Sometimes called Best-first search

Questions?^ โ—^ That's all for today^ โ—^ Any questions?