Graphs Rosen 8.1, 8.2. There Are Many Uses for Graphs! Networks Data organizations Scene graphs Geometric simplification Program structure and processes.

Slides:



Advertisements
Similar presentations
CSE 211 Discrete Mathematics
Advertisements

Chapter 8 Topics in Graph Theory
Lecture 5 Graph Theory. Graphs Graphs are the most useful model with computer science such as logical design, formal languages, communication network,
Graph-02.
 期中测验时间:本周五上午 9 : 40  教师 TA 答疑时间 : 周三晚上 6 : 00—8 : 30  地点:软件楼 315 房间,  教师 TA :李弋老师  开卷考试.
1 Slides based on those of Kenneth H. Rosen Slides by Sylvia Sorkin, Community College of Baltimore County - Essex Campus Graphs.
Discrete Mathematics and Its Applications
1 Section 8.1 Introduction to Graphs. 2 Graph A discrete structure consisting of a set of vertices and a set of edges connecting these vertices –used.
1 Section 8.2 Graph Terminology. 2 Terms related to undirected graphs Adjacent: 2 vertices u & v in an undirected graph G are adjacent (neighbors) in.
Graph Theory in CS Route Search in Online Map Services
Discrete Structures Chapter 7A Graphs Nurul Amelina Nasharuddin Multimedia Department.
CTIS 154 Discrete Mathematics II1 8.2 Paths and Cycles Kadir A. Peker.
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,
Selected Topics in Data Networking Graph Representation.
Applied Discrete Mathematics Week 12: Trees
KNURE, Software department, Ph , N.V. Bilous Faculty of computer sciences Software department, KNURE Discrete.
Let us switch to a new topic:
9.2 Graph Terminology and Special Types Graphs
GRAPH Learning Outcomes Students should be able to:
Graphs Chapter 10.
© by Kenneth H. Rosen, Discrete Mathematics & its Applications, Sixth Edition, Mc Graw-Hill, 2007 Chapter 9 (Part 1): Graphs  Introduction to Graphs (9.1)
Graph Theoretic Concepts. What is a graph? A set of vertices (or nodes) linked by edges Mathematically, we often write G = (V,E)  V: set of vertices,
1 Graphs Chapters 9.1 and 9.2 University of Maryland Chapters 9.1 and 9.2 Based on slides by Y. Peng University of Maryland.
Module #19: Graph Theory: part I Rosen 5 th ed., chs. 8-9 내년 3 월 ? 교환 학생 프로그램 영어 점수 미리미리 준비하세요.
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
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.
© by Kenneth H. Rosen, Discrete Mathematics & its Applications, Sixth Edition, Mc Graw-Hill, 2007 Chapter 9 (Part 2): Graphs  Graph Terminology (9.2)
1 CS104 : Discrete Structures Chapter V Graph Theory.
Spring 2007Graphs1 ORD DFW SFO LAX
GRAPHS THEROY. 2 –Graphs Graph basics and definitions Vertices/nodes, edges, adjacency, incidence Degree, in-degree, out-degree Subgraphs, unions, isomorphism.
Graphs.  Definition A simple graph G= (V, E) consists of vertices, V, a nonempty set of vertices, and E, a set of unordered pairs of distinct elements.
Graphs What are Graphs? General meaning in everyday math: A plot or chart of numerical data using a coordinate system. Technical meaning in discrete.
9 Graphs. A graph G = (V, E) consists of V, a nonempty set of vertices (or nodes) and E, a set of edges. Each edge has either one or two vertices associated.
Chapter 5 Graphs  the puzzle of the seven bridge in the Königsberg,  on the Pregel.
© by Kenneth H. Rosen, Discrete Mathematics & its Applications, Sixth Edition, Mc Graw-Hill, 2007 Chapter 9 (Part 1): Graphs  Introduction to Graphs (9.1)
Graphs 9.1 Graphs and Graph Models أ. زينب آل كاظم 1.
 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.
Basic properties Continuation
Discrete Structures CISC 2315 FALL 2010 Graphs & Trees.
Graphs Basic properties.
1 Graphs Terminology By: Sandeep Tuli Astt. Prof. CSE.
Chapter 9: Graphs.
Department of Computer Engineering Faculty of Engineering, Prince of Songkla University Graphs Original Slides by Rada Mihalcea.
Chap 7 Graph Def 1: Simple graph G=(V,E) V : nonempty set of vertices E : set of unordered pairs of distinct elements of V called edges Def 2: Multigraph.
1 GRAPH Learning Outcomes Students should be able to: Explain basic terminology of a graph Identify Euler and Hamiltonian cycle Represent graphs using.
رياضيات متقطعة لعلوم الحاسب MATH 226. Chapter 10.
1 Graphs Chapters 10.1 and 10.2 University of Maryland Chapters 10.1 and 10.2 Based on slides by Y. Peng University of Maryland.
Chapter Chapter Summary Graphs and Graph Models Graph Terminology and Special Types of Graphs Representing Graphs and Graph Isomorphism Connectivity.
Graphs.
Chapter 9 (Part 1): Graphs
Applied Discrete Mathematics Week 14: Trees
Applied Discrete Mathematics Week 13: Graphs
Graphs: Definitions and Basic Properties
Chapter 9 (Part 2): Graphs
Lecture 19: CONNECTIVITY Sections
Graph Graphs and graph theory can be used to model:
Chapters 8.1 and 8.2 Based on slides by Y. Peng University of Maryland
Agenda Lecture Content: Introduction to Graph Path and Cycle
Taibah University College of Computer Science & Engineering Course Title: Discrete Mathematics Code: CS 103 Chapter 10 Graphs Slides are adopted from “Discrete.
Graphs and Graph Models
Graphs Chapters 10.1 and 10.2 Based on slides by Y. Peng University of Maryland.
Chapter 13 (Part 1): Graphs
Chapters 8.1 and 8.2 Based on slides by Y. Peng University of Maryland
CS100: Discrete structures
10.1 Graphs and Graph Models
Graphs ORD SFO LAX DFW Graphs Graphs
Let us switch to a new topic:
Graphs By Rajanikanth B.
Graphs G = (V, E) V are the vertices; E are the edges.
Chapter 5 Graphs the puzzle of the seven bridge in the Königsberg,
Presentation transcript:

Graphs Rosen 8.1, 8.2

There Are Many Uses for Graphs! Networks Data organizations Scene graphs Geometric simplification Program structure and processes Lots of others…. Also applications (e.g., species structure— phylogeny tree)

Definitions A simple graph G = (V,E) consists of V, a nonempty set of vertices, and E, a set of unordered pairs of distinct elements of V called edges. A multigraph G = (V,E) consists of a set V of vertices, a set E of edges, and a function f from E to {{u,v} | u,v  V, u ≠ v}. The edges e 1 and e 2 are called multiple or parallel edges if f(e 1 ) = f(e 2 ).

Properties Simple graph –Undirected –Single edges –No loops Multigraph –Undirected –Multiple edges –No loops

Examples San Francisco Los Angeles Denver Chicago Detroit Atlanta New York Simple Graph (computer backbone) San Francisco Los Angeles Denver Chicago Detroit Atlanta New York MultiGraph (computer backbone with redundant connections)

Directed Graph A directed graph consists of a set of vertices V and a set of edges E that are ordered pairs of V –Loops are allowed –Multiple edges are allowed Digraph for equivalence relation on {1,4,7}

Adjacency and Degree Two vertices u and v in an undirected graph are called adjacent (or neighbors) in G if e = {u,v} is an edge of G. The edge e is said to connect u and v. The vertices u and v are called the endpoints of e. The degree of a vertex in an undirected graph is the number of edges that are incident with (or connect) it, except that a loop at a vertex contributes twice to the degree. The degree of the vertex v is denoted by deg(v).

Handshaking Theorem Let G = (V,E) be an undirected graph with e edges. Then (Note that this applies even if multiple edges and loops are present.)

How many edges are there in a graph with ten vertices each of degree 6? Since the sum of the degrees of the vertices is 6·10 = 60, it follows that 2e =60. Therefore, e = 30.

Prove that an undirected graph has an even number of vertices of odd degree. Let V 1 and V 2 be the set of vertices of even degree and the set of vertices of odd degree, respectively, in an undirected graph G = (V,E). Then Since deg(v) is even for v  V 1, this term is even.

Prove that an undirected graph has an even number of vertices of odd degree. Furthermore, the sum of these two terms is even, since the sum is 2e. Hence, the second term in the sum is also even. (Why?) Since all the terms in the sum are odd, there must be an even number of such terms. (Why?) Thus there are an even number of vertices of odd degree. What can we say about the vertices of even degree?

Cycles The cycle C n, n≥3, consists of n vertices v 1, v 2,…, v n, and edges {v 1, v 2 }, {v 2, v 3 },…, {v n-1, v n }, {v n, v 1 }. C3C3 C4C4 C5C5

Tree A circuit is a path of edges that begins and ends at the same vertex. A path or circuit is simple if it does not contain the same edge more than once. A tree is a connected undirected graph with no simple circuits. A forest is a set of trees that are not connected.

Q QQQQ Q QQQQ Q QQQQ QQQQ Linked Global Quadtrees Example: Quadtree

} 22 levels Regular Triangularization (128 x 128 grid points) Q QQQQ Q QQQQ Q QQQQ QQQQ Linked Global Quadtrees

Quadtree: Terrain Global Terrain (elevation & imagery) Multiresolution Scalable (multiple terabyte databases) Efficient (100 to1or more reduction)

View-Dependent Simplification

Building a Vertex Hierarchy Quadric Simplification Original Mesh Base Mesh Vertex Tree

Meshing From a Vertex Hierarchy Original Mesh Base Mesh Geometry & Appearance Metric