Week 6 - Monday.  What did we talk about last time?  Artificial intelligence  Lab 5.

Slides:



Advertisements
Similar presentations
CSE 211 Discrete Mathematics
Advertisements

Chapter 9 Graphs.
22C:19 Discrete Math Graphs Fall 2010 Sukumar Ghosh.
22C:19 Discrete Math Graphs Fall 2014 Sukumar Ghosh.
Great Theoretical Ideas in Computer Science for Some.
Graphs Chapter 12. Chapter Objectives  To become familiar with graph terminology and the different types of graphs  To study a Graph ADT and different.
Liang, Introduction to Java Programming, Seventh Edition, (c) 2009 Pearson Education, Inc. All rights reserved Chapter 27 Graph Applications.
Midterm <  70 3.
Finding a Maximum Matching in Non-Bipartite Graphs Alicia Thilani Singham Goodwin /22/2013.
Great Theoretical Ideas in Computer Science.
1 Discrete Structures & Algorithms Graphs and Trees: II EECE 320.
1 Representing Graphs. 2 Adjacency Matrix Suppose we have a graph G with n nodes. The adjacency matrix is the n x n matrix A=[a ij ] with: a ij = 1 if.
Graphs Chapter 12. Chapter 12: Graphs2 Chapter Objectives To become familiar with graph terminology and the different types of graphs To study a Graph.
CTIS 154 Discrete Mathematics II1 8.2 Paths and Cycles Kadir A. Peker.
Graphs G = (V,E) V is the vertex set. Vertices are also called nodes and points. E is the edge set. Each edge connects two different vertices. Edges are.
Fall 2007CS 2251 Graphs Chapter 12. Fall 2007CS 2252 Chapter Objectives To become familiar with graph terminology and the different types of graphs To.
Graphs. Graph A “graph” is a collection of “nodes” that are connected to each other Graph Theory: This novel way of solving problems was invented by a.
Approximation Algorithms Motivation and Definitions TSP Vertex Cover Scheduling.
Lecture 11. Matching A set of edges which do not share a vertex is a matching. Application: Wireless Networks may consist of nodes with single radios,
22C:19 Discrete Math Graphs Spring 2014 Sukumar Ghosh.
Week 11 - Friday.  What did we talk about last time?  Exam 2 post mortem  Cycle detection  Connectivity.
Graphs CS /02/05 Graphs Slide 2 Copyright 2005, by the authors of these slides, and Ateneo de Manila University. All rights reserved Definition.
CSE, IIT KGP Matchings and Factors. CSE, IIT KGP Matchings A matching of size k in a graph G is a set of k pairwise disjoint edges.A matching of size.
The Traveling Salesman Problem Approximation
University of Texas at Arlington Srikanth Vadada Kishan Kumar B P Fall CSE 5311 Solving Travelling Salesman Problem for Metric Graphs using MST.
GRAPHS CSE, POSTECH. Chapter 16 covers the following topics Graph terminology: vertex, edge, adjacent, incident, degree, cycle, path, connected component,
Graphs Rosen, Chapter 8. Isomorphism (Rosen 560 to 563) Are two graphs G1 and G2 of equal form? That is, could I rename the vertices of G1 such that the.
Can you connect the dots as shown without taking your pen off the page or drawing the same line twice.
7.1 and 7.2: Spanning Trees. A network is a graph that is connected –The network must be a sub-graph of the original graph (its edges must come from the.
Module 5 – Networks and Decision Mathematics Chapter 23 – Undirected Graphs.
1 CS104 : Discrete Structures Chapter V Graph Theory.
Mathematics of Networks (Cont)
Data Structures & Algorithms Graphs
1 12/2/2015 MATH 224 – Discrete Mathematics Formally a graph is just a collection of unordered or ordered pairs, where for example, if {a,b} G if a, b.
CSS106 Introduction to Elementary Algorithms
5.8 Graph Matching  Example: Set of worker assign to a set of task  Four tasks are to be assigned to four workers.  – Worker 1 is qualified to do tasks.
Approximation Algorithms for TSP Tsvi Kopelowitz 1.
Graphs and MSTs Sections 1.4 and 9.1. Partial-Order Relations Everybody is not related to everybody. Examples? Direct road connections between locations.
Graph theory and networks. Basic definitions  A graph consists of points called vertices (or nodes) and lines called edges (or arcs). Each edge joins.
Graphs Chapter 12. Chapter 12: Graphs2 Chapter Objectives To become familiar with graph terminology and the different types of graphs To study a Graph.
GRAPHS. Graph Graph terminology: vertex, edge, adjacent, incident, degree, cycle, path, connected component, spanning tree Types of graphs: undirected,
MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles
Class 2: Graph Theory IST402. Can one walk across the seven bridges and never cross the same bridge twice? Network Science: Graph Theory THE BRIDGES OF.
1) Find and label the degree of each vertex in the graph.
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.
Approximation Algorithms by bounding the OPT Instructor Neelima Gupta
Indian Institute of Technology Kharagpur PALLAB DASGUPTA Graph Theory: Matchings and Factors Pallab Dasgupta, Professor, Dept. of Computer Sc. and Engineering,
Week 7 - Monday CS 113.
IOI/ACM ICPC Training 4 June 2005.
Week 6 - Wednesday CS 113.
Hamiltonian Cycle and TSP
Graph theory Definitions Trees, cycles, directed graphs.
Week 15 – Friday CS221.
Week 11 - Monday CS221.
Maximum Flow - Best algorithms
Great Theoretical Ideas in Computer Science
Graph Algorithm.
Discrete Mathematics for Computer Science
Graph Theory.
Foundations of Discrete Mathematics
Maximum Flows of Minimum Cost
Lecture 19-Problem Solving 4 Incremental Method
Graph Operations And Representation
Route Inspection Which of these can be drawn without taking your pencil off the paper and without going over the same line twice? If we introduce a vertex.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Warm Up – Monday Calculate the Redundancy of the above network.
Concepts of Computation
Graphs G = (V,E) V is the vertex set.
Week 10 - Wednesday CS221.
Lecture 24 Vertex Cover and Hamiltonian Cycle
Presentation transcript:

Week 6 - Monday

 What did we talk about last time?  Artificial intelligence  Lab 5

 Vertices (Nodes)  Edges

 Friendships on Facebook  Nodes: People  Edges: Friendship  Routes between cities  Nodes: Cities  Edges: Streets  Steps in a task  Nodes: Subtasks  Edges: Decisions  6 degrees of Kevin Bacon  Nodes: Actors  Edges: Whether or not they've been in a movie together

 Labeled  Weighted ColoredColoredColoredColored  Multigraphs E E A A D D B B F F C C E A D B F C

 When a weighted graph obeys the triangle inequality, the direct route to a node is always fastest

 Some graphs have edges with direction  Example: One way streets  Reachability? ONE WAY

 Often we talk about connected graphs  But, not all graphs have to be connected

 Complete graphs  Every node is connected to every other  How many edges?  |E| = ½(n(n – 1)) = ½(n 2 – n) is O(n 2 )

 We can talk about a part of a graph  For example, what is the largest complete subgraph in this graph? E E A A D D B B F F C C

 A path is a sequence of connected nodes  The cost or weight of the path is usually the sum of the edge weights  This path from A to C costs 5 E E A A D D B B F F C C

 A cycle is a path that starts at a node and comes back to the same node  How many cycles of length 3 does this graph have?  What about 4? 5? 6? E E F F C C A A D D B B A A D D B B

 A tour is a path that visits every node and (usually) returns to its starting node  In other words, it's a cycle that visits every node  This tour costs 24 E E A A D D B B F F C C

 A bipartite graph is one whose nodes can be divided into two disjoint sets X and Y  There can be edges between set X and set Y  There are no edges inside set X or set Y  A graph is bipartite if and only if it contains no odd cycles

A A B B C C D D E E F F A A B B C C D D E E F F X Y

 A perfect matching is when every node in set X and every node in set Y is matched  It is not always possible to have a perfect matching  We can still try to find a maximum matching in which as many nodes are matched up as possible

1. Come up with a legal, maximal matching 2. Take an augmenting path that starts at an unmatched node in X and ends at an unmatched node in Y 3. If there is such a path, switch all the edges along the path from being in the matching to being out and vice versa 4. If there is another augmenting path, go back to Step 2

A A B B C C D D E E F F A A B B C C D D E E F F X Y Anna Becky CaitlinDaisyErinFiona Adam Ben CarlosDanEvanFred

 Stable marriage  Euler paths and tours  Minimum spanning trees  Lab 6

 Lab is Wednesday this week!  Start working on Project 2  Read Python Chapter 5  Think about what you want to do for your Final Project  Proposal due by 10/28