Chapter 14 Graphs © 2011 Pearson Addison-Wesley. All rights reserved.

Slides:



Advertisements
Similar presentations
CS 253: Algorithms Chapter 22 Graphs Credit: Dr. George Bebis.
Advertisements

Analysis of Algorithms CS 477/677
Chapter 8 Topics in Graph Theory
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,
Graph-02.
Section 14.1 Intro to Graph Theory. Beginnings of Graph Theory Euler’s Konigsberg Bridge Problem (18 th c.)  Can one walk through town and cross all.
Graphs Chapter 20 Data Structures and Problem Solving with C++: Walls and Mirrors, Carrano and Henry, © 2013.
Graphs Chapter 30 Carrano, Data Structures and Abstractions with Java, Second Edition, (c) 2007 Pearson Education, Inc. All rights reserved X.
© 2006 Pearson Addison-Wesley. All rights reserved14 A-1 Chapter 14 excerpts Graphs (breadth-first-search)
Data Structures Chapter 12 Graphs Andreas Savva. 2 Definition A graph consists of a set of vertices together with a set of edges. If e = (v,w) is an edge.
 Graph Graph  Types of Graphs Types of Graphs  Data Structures to Store Graphs Data Structures to Store Graphs  Graph Definitions Graph Definitions.
Graphs Chapter 30 Slides by Steve Armstrong LeTourneau University Longview, TX  2007,  Prentice Hall.
© 2006 Pearson Addison-Wesley. All rights reserved14 A-1 Chapter 14 Graphs.
1 Section 8.4 Connectivity. 2 Paths In an undirected graph, a path of length n from u to v, where n is a positive integer, is a sequence of edges e 1,
Graphs Chapter 20 Data Structures and Problem Solving with C++: Walls and Mirrors, Frank Carrano, © 2012.
Graphs Chapter 28 Copyright ©2012 by Pearson Education, Inc. All rights reserved.
Chapter 4 Graphs.
Chapter 11 Graphs and Trees This handout: Terminology of Graphs Eulerian Cycles.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Graphs CS /02/05 Graphs Slide 2 Copyright 2005, by the authors of these slides, and Ateneo de Manila University. All rights reserved Definition.
© 2006 Pearson Addison-Wesley. All rights reserved14 A-1 Chapter 14 Graphs.
Graphs Chapter 12.
Chapter 14 Graphs. © 2004 Pearson Addison-Wesley. All rights reserved Terminology G = {V, E} A graph G consists of two sets –A set V of vertices,
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.
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
COSC 2007 Data Structures II Chapter 14 Graphs I.
© 2010 Pearson Prentice Hall. All rights reserved. CHAPTER 15 Graph Theory.
Graph Theory. A branch of math in which graphs are used to solve a problem. It is unlike a Cartesian graph that we used throughout our younger years of.
CSCI 115 Chapter 8 Topics in Graph Theory. CSCI 115 §8.1 Graphs.
Graphs Chapter Chapter Contents Some Examples and Terminology Road Maps Airline Routes Mazes Course Prerequisites Trees Traversals Breadth-First.
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.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley. Ver Chapter 13: Graphs Data Abstraction & Problem Solving with C++
Graph theory and networks. Basic definitions  A graph consists of points called vertices (or nodes) and lines called edges (or arcs). Each edge joins.
© 2006 Pearson Addison-Wesley. All rights reserved 14 A-1 Chapter 14 Graphs.
 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.
Graphs. Contents Terminology Graphs as ADTs Applications of Graphs.
Graphs Chapter 28 © 2015 Pearson Education, Inc., Upper Saddle River, NJ. All rights reserved. Data Structures and Abstractions with Java, 4e Frank Carrano.
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.
Leda Demos By: Kelley Louie Credits: definitions from Algorithms Lectures and Discrete Mathematics with Algorithms by Albertson and Hutchinson graphics.
رياضيات متقطعة لعلوم الحاسب MATH 226. Chapter 10.
Graphs Chapter 20.
Csc 2720 Instructor: Zhuojun Duan
Grade 11 AP Mathematics Graph Theory
Discrete Structures – CNS2300
Introduction (with applications) ADT & terminology
Chapter 17 Linked Lists.
Chapter 19 Binary Search Trees.
Chapter 4 Inheritance.
Chapter 14 Graphs and Paths.
Can you draw this picture without lifting up your pen/pencil?
Graphs Chapter 13.
Chapter 10 Datapath Subsystems.
Copyright ©2012 by Pearson Education, Inc. All rights reserved
Walks, Paths, and Circuits
Chapter 20 Hash Tables.
Chapter 14 Graphs © 2006 Pearson Addison-Wesley. All rights reserved.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
The Facts to Be Explained
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Graphs G = (V, E) V are the vertices; E are the edges.
Introduction: Some Representative Problems
Chapter 14 Graphs © 2011 Pearson Addison-Wesley. All rights reserved.
Copyright ©2012 by Pearson Education, Inc. All rights reserved
Chapter 10 Graphs and Trees
Graph Vocabulary.
Circuit Characterization and Performance Estimation
Chapter 2 Reference Types.
GRAPHS.
Chapter 4 Greedy Algorithms.
Presentation transcript:

Chapter 14 Graphs © 2011 Pearson Addison-Wesley. All rights reserved

Sone Applications of Graphs Medical Graph Facebook Connections Graph Commubnity Detection Graph Flight Route Graph

Terminology G = {V, E} A graph G consists of two sets A subgraph A set V of vertices, or nodes A set E of edges A subgraph Consists of a subset of a graph’s vertices and a subset of its edges Adjacent vertices Two vertices that are joined by an edge © 2011 Pearson Addison-Wesley. All rights reserved

Terminology Figure 14-2 a) A campus map as a graph; b) a subgraph © 2011 Pearson Addison-Wesley. All rights reserved

Terminology A path between two vertices A simple path A cycle A sequence of edges that begins at one vertex and ends at another vertex May pass through the same vertex more than once A simple path A path that passes through a vertex only once A cycle A path that begins and ends at the same vertex A simple cycle A cycle that does not pass through a vertex more than once © 2011 Pearson Addison-Wesley. All rights reserved

Terminology A connected graph A disconnected graph A complete graph A graph that has a path between each pair of distinct vertices A disconnected graph A graph that has at least one pair of vertices without a path between them A complete graph A graph that has an edge between each pair of distinct vertices © 2011 Pearson Addison-Wesley. All rights reserved

Terminology Figure 14-3 Graphs that are a) connected; b) disconnected; and c) complete © 2011 Pearson Addison-Wesley. All rights reserved