Lecture 11 CSE 331 Sep 23, 2011.

Slides:



Advertisements
Similar presentations
What is a graph ? G=(V,E) V = a set of vertices E = a set of edges edge = unordered pair of vertices
Advertisements

Coloring Warm-Up. A graph is 2-colorable iff it has no odd length cycles 1: If G has an odd-length cycle then G is not 2- colorable Proof: Let v 0, …,
Discrete Mathematics University of Jazeera College of Information Technology & Design Khulood Ghazal Connectivity Lecture _13.
CS 253: Algorithms Chapter 22 Graphs Credit: Dr. George Bebis.
Analysis of Algorithms CS 477/677
Simple Graph Warmup. Cycles in Simple Graphs A cycle in a simple graph is a sequence of vertices v 0, …, v n for some n>0, where v 0, ….v n-1 are distinct,
Every edge is in a red ellipse (the bags). The bags are connected in a tree. The bags an original vertex is part of are connected.
Graph-02.
 Graph Graph  Types of Graphs Types of Graphs  Data Structures to Store Graphs Data Structures to Store Graphs  Graph Definitions Graph Definitions.
Lecture 38 CSE 331 Dec 7, The last few days Today: Solutions to HW 9 (end of lecture) Wednesday: Graded HW 9 (?), Sample final, Blog post on the.
Lecture 13 CSE 331 Oct 2, Announcements Please turn in your HW 3 Graded HW2, solutions to HW 3, HW 4 at the END of the class Maybe extra lectures.
Lecture 16 CSE 331 Oct 9, Announcements Hand in your HW4 Solutions to HW4 next week Remember next week I will not be here so.
Lecture 34 CSE 331 Nov 19, HW 9 due today Q1 in one pile and Q 2+3 in another I will not take any HW after 1:15pm.
Lecture 33 CSE 331 Nov 20, Homeworks Submit HW 9 by 1:10PM HW 8 solutions at the end of the lecture.
Lecture 10 CSE 331 Sep 22, Acceptable formats for blog posts Plain text LaTeX HTML.
CSE 321 Discrete Structures Winter 2008 Lecture 25 Graph Theory.
Lecture 17 CSE 331 Oct 8, HW 4 due today Q1 and Q2 in one pile Q3 in another pile I will not take any HW after 1:15pm.
Lecture 32 CSE 331 Nov 15, Feedback Forms Link for the survey on the blog.
Lecture 28 CSE 331 Nov 5, HW 7 due today Q1 in one pile and Q 2+3 in another I will not take any HW after 1:15pm.
Lecture 11 CSE 331 Sep 25, Homeworks Please hand in your HW 2 now HW 3 and graded HW 1 at the end of class.
Lecture 8 CSE 331 Sep 17, HW 1 due today Place Q1 and Q2 in separate piles I will not accept HWs after 1:15pm.
Lecture 23 CSE 331 Oct 24, Reminder 2 points for Piazza participation 3 points for mini-project.
Graphs A graphs is an abstract representation of a set of objects, called vertices or nodes, where some pairs of the objects are connected by links, called.
Lecture 5 CSE 331. Graphs Problem Statement Algorithm Problem Definition “Implementation” Analysis A generic tool to abstract out problems.
 Quotient graph  Definition 13: Suppose G(V,E) is a graph and R is a equivalence relation on the set V. We construct the quotient graph G R in the follow.
CSE 421 Algorithms Richard Anderson Winter 2009 Lecture 5.
Lecture 12 CSE 331 Sep 28, Upcoming Important Dates Tuesday Oct 8 (~1.5 weeks) Mini Project group compositions Monday Oct 12 (2 weeks) Quiz 1 Monday.
Graphs Definition: a graph is an abstract representation of a set of objects where some pairs of the objects are connected by links. The interconnected.
CSE 421 Algorithms Richard Anderson Autumn 2015 Lecture 5.
CSE373: Data Structures & Algorithms Lecture 19: Spanning Trees
Lecture 20 CSE 331 Oct 15, 2010.
Lecture 23 CSE 331 Oct 26, 2016.
Lecture 17 CSE 331 Oct 3, 2014.
Lecture 10 CSE 331 Sep 21, 2016.
Lecture 10 CSE 331 Sep 20, 2017.
Lecture 15 CSE 331 Oct 5, 2012.
Lecture 15 CSE 331 Sep 29, 2014.
Connected Components Minimum Spanning Tree
Lecture 13 CSE 331 Sep 29, 2010.
Lecture 14 CSE 331 Sep 30, 2011.
Lecture 17 CSE 331 Oct 10, 2012.
Lecture 13 CSE 331 Oct 1, 2012.
Lecture 24 CSE 331 Oct 25, 2013.
Lecture 9 CSE 331 Sep 18, 2017.
Lecture 23 CSE 331 Oct 25, 2017.
Lecture 23 CSE 331 Oct 24, 2011.
Lecture 12 CSE 331 Sep 28, 2012.
Lecture 12 CSE 331 Sep 26, 2011.
Lecture 9 CSE 331 Sep 19, 2016.
Lecture 10 CSE 331 Sep 21, 2011.
Lecture 12 CSE 331 Sep 27, 2010.
Lecture 11 CSE 331 Sep 19, 2014.
Lecture 10 CSE 331 Sep 21, 2012.
Lecture 24 CSE 331 Oct 24, 2014.
Lecture 36 CSE 331 Nov 30, 2012.
Lecture 11 CSE 331 Sep 21, 2017.
Lecture 8 CSE 331 Sep 15, 2011.
Lecture 12 CSE 331 Sep 22, 2014.
Graphs G = (V, E) V are the vertices; E are the edges.
Lecture 17 CSE 331 Oct 7, 2011.
Lecture 26 CSE 331 Nov 1, 2010.
Lecture 5 CSE 331 Sep 9, 2011.
Lecture 11 CSE 331 Sep 22, 2016.
Lecture 25 CSE 331 Oct 28, 2011.
Richard Anderson Winter 2019 Lecture 6
Richard Anderson Lecture 5 Graph Theory
Lecture 15 CSE 331 Oct 4, 2010.
Richard Anderson Autumn 2015 Lecture 6
Lecture 11 CSE 331 Sep 20, 2013.
Lecture 24 CSE 331 Oct 29, 2018.
Presentation transcript:

Lecture 11 CSE 331 Sep 23, 2011

HW 2 due today I will not take any HW after 1:15pm Q2, Q3 and Q4 in different piles I will not take any HW after 1:15pm

Solutions to HW 2 Handed out at the END of the lecture

HW 3 Has been posted (link on the blog) Start early

Graded HW 1 Pick up from recitation/TA office hours next week

Graphs Representation of relationships between pairs of entities/elements # vertices = n #edges = m Edge Vertex

Paths , , Sequence of vertices connected by edges Connected Path length 3 ,

Connectivity u and v are connected iff there is a path between them A graph is connected iff all pairs of vertices are connected

Connected Graphs Every pair of vertices has a path between them

Cycles Sequence of k vertices connected by edges, first k-1 are distinct ,

Puzzle # 3 How many distinct graphs on n vertices? How many distinct trees on n vertices?

HW 2 due today I will not take any HW after 1:15pm Q1, Q2 and Q3 in different piles I will not take any HW after 1:15pm

Tree Connected undirected graph with no cycles

Rooted Tree

How many rooted trees can an n vertex tree have? A rooted tree How many rooted trees can an n vertex tree have? AC’s child=SG Pick any vertex as root SG’s parent=AC Let the rest of the tree hang under “gravity”

Rest of Today’s agenda Prove n vertex tree has n-1 edges Algorithms for checking connectivity

Checking by inspection

What about large graphs? Are s and t connected?

Brute-force algorithm? List all possible vertex sequences between s and t nn such sequences Check if any is a path between s and t

Algorithm motivation all