1. Trang chủ
  2. » Tất cả

Chapter 8 graphs

35 1 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Introduction to Graphs Introduction to Graphs Huynh Tuong Nguyen, Tran Vinh Tan Contents Graph definitions Terminology Special Simple Graphs Representing Graphs and Graph Isomorphism Representing Grap[.]

Introduction to Graphs Huynh Tuong Nguyen, Tran Vinh Tan Chapter Introduction to Graphs Discrete Structures for Computing on October 27, 2015 Contents Graph definitions Terminology Special Simple Graphs Representing Graphs and Graph Isomorphism Representing Graphs Graph Isomorphism Exercise Graph Bipartie graph Isomorphism Huynh Tuong Nguyen, Tran Vinh Tan Faculty of Computer Science and Engineering University of Technology - VNUHCM 8.1 Contents Introduction to Graphs Huynh Tuong Nguyen, Tran Vinh Tan Graph definitions Terminology Special Simple Graphs Contents Graph definitions Terminology Representing Graphs and Graph Isomorphism Representing Graphs Graph Isomorphism Special Simple Graphs Representing Graphs and Graph Isomorphism Representing Graphs Graph Isomorphism Exercise Exercise Graph Bipartie graph Isomorphism Graph Bipartie graph Isomorphism 8.2 Motivations Introduction to Graphs Huynh Tuong Nguyen, Tran Vinh Tan The need of the graph • Representation/Storing • Searching/sorting • Optimization Contents Graph definitions Terminology Special Simple Graphs Its applications Representing Graphs and Graph Isomorphism Representing Graphs • Electric circuit/board Graph Isomorphism Exercise • Chemical structure Graph Bipartie graph • Networking Isomorphism • Map, geometry • 8.3 Introduction to Graphs Graph Huynh Tuong Nguyen, Tran Vinh Tan Definition A graph (đồ thị) G is a pair of (V, E), which are: Contents Graph definitions • V – nonempty set of vertices (nodes) (đỉnh) Terminology Special Simple Graphs • E – set of edges (cạnh) A graph captures abstract relationships between vertices Representing Graphs and Graph Isomorphism Representing Graphs 2 4 Graph Isomorphism Exercise Graph Bipartie graph 3 Isomorphism 8.4 Undirected Graph (Đồ thị vô hướng) Introduction to Graphs Huynh Tuong Nguyen, Tran Vinh Tan Definition (Simple graph (đơn đồ thị)) • Each edge connects two different vertices, and • No two edges connect the same pair of vertices Contents Graph definitions Terminology Special Simple Graphs An edge between two vertices u and v is denoted as {u, v} Representing Graphs and Graph Isomorphism Representing Graphs Graph Isomorphism Exercise Graph Bipartie graph Isomorphism 8.5 Undirected Graph Introduction to Graphs Huynh Tuong Nguyen, Tran Vinh Tan Definition (Multigraph (đa đồ thị)) Graphs that may have multiple edges connecting the same vertices Contents Graph definitions An unordered pair of vertices {u, v} are called multiplicity m (bội m) if it has m different edges between Terminology Special Simple Graphs Representing Graphs and Graph Isomorphism Representing Graphs Graph Isomorphism Exercise Graph Bipartie graph Isomorphism 8.6 Undirected Graph Introduction to Graphs Huynh Tuong Nguyen, Tran Vinh Tan Definition (Pseudograph (giả đồ thị)) Are multigraphs that have • loops (khuyên)– edges that connect a vertex to itself Contents Graph definitions Terminology Special Simple Graphs Representing Graphs and Graph Isomorphism Representing Graphs Graph Isomorphism Exercise Graph Bipartie graph Isomorphism 8.7 Directed Graph Introduction to Graphs Huynh Tuong Nguyen, Tran Vinh Tan Definition (Directed Graph (đồ thị có hướng)) A directed graph G is a pair of (V, E), in which: • V – nonempty set of vertices • E – set of directed edges (cạnh có hướng ) Contents Graph definitions Terminology Special Simple Graphs A directed edge start at u and end at v is denoted as (u, v) Representing Graphs and Graph Isomorphism Representing Graphs Graph Isomorphism Exercise Graph Bipartie graph Isomorphism 8.8 Terminologies For Undirected Graph Introduction to Graphs Huynh Tuong Nguyen, Tran Vinh Tan Neighborhood In an undirected graph G = (V, E), • two vertices u and v ∈ V are called adjacent (liền kề ) if they are end-points (điểm đầu mút) of edge e ∈ E, and • e is incident with (cạnh liên thuộc) u and v • e is said to connect (cạnh nối) u and v; The degree of a vertex The degree of a vertex (bậc đỉnh), denoted by deg(v) is the number of edges incident with it, except that a loop contributes twice to the degree of that vertex Contents Graph definitions Terminology Special Simple Graphs Representing Graphs and Graph Isomorphism Representing Graphs Graph Isomorphism Exercise Graph Bipartie graph Isomorphism • isolated vertex (đỉnh lập): vertex of degree • pendant vertex (đỉnh treo): vertex of degree 8.9 Introduction to Graphs Example Huynh Tuong Nguyen, Tran Vinh Tan Example What are the degrees and neighborhoods of the vertices in these graphs? b c d a c b Contents Graph definitions Terminology Special Simple Graphs a f G e g e d H Representing Graphs and Graph Isomorphism Representing Graphs Graph Isomorphism Exercise Solution Graph Bipartie graph In G, deg(a) = 2, deg(b) = deg(c) = deg(f ) = 4, deg(d) = 1, Neiborhoods of these vertices are N (a) = {b, f }, N (b) = {a, c, e, f }, In H, deg(a) = 4, deg(b) = deg(e) = 6, deg(c) = 1, Neiborhoods of these vertices are N (a) = {b, d, e}, N (b) = {a, b, c, d, e}, Isomorphism 8.10

Ngày đăng: 02/04/2023, 06:12

Xem thêm: