《数据结构的算法在C++中的应用》(英文版)Chapter 12 Graphs

Chapter 12 G raphs
Chapter 12 Graphs

Main topics Definition of graphs and some terminology Three common graph representations Some algorithms
Main topics • Definition of graphs and some terminology • Three common graph representations • Some algorithms

12.1 Definition and terminologies 1. Definition of graphs Graph=(v,e) V: nonempty finite vertice set E: edge set Undirected prapl oh If the tuple denoting an edge is unordered then (v1, v2)and(v2, vl)are the same edge
12.1 Definition and terminologies 1. Definition of graphs: Graph=(V, E) V: nonempty finite vertice set E: edge set • Undirected praph: If the tuple denoting an edge is unordered, then (v1,v2) and (v2,v1) are the same edge

12.1 Definition and terminologies oh Directed grap If the tuple denoting an edge is ordered. then (VI, v2)and(v2, v I)are different edges
12.1 Definition and terminologies • Directed graph: If the tuple denoting an edge is ordered, then (v1,v2) and (v2,v1) are different edges

12.1 Definition and terminologies Example V(G1)={V12V2V32V4} v3E(G1)={(V1,V2)V1V3),(V12V 4)(V2,3)(V2,V4)(V3,V4)} V(G2)={V1V2,V3} E(G2){V1V2>2<Ⅴ2V3}
12.1 Definition and terminologies • Example: V2 V4 V3 V1 V(G1 )={V1 ,V2 ,V3 ,V4} E(G1 )={(V1 ,V2 ),(V1 ,V3 ),(V1 ,V 4 ),(V2 ,V3 ),(V2 ,V4 ),(V3 ,V4 )} V1 V2 V(G2 )={V1 ,V2,,V3} E(G2 )={,,} V3

12.1 Definition and terminologies We will not discuss graphs of the following types
12.1 Definition and terminologies • We will not discuss graphs of the following types

12.1 Definition and terminologies 2. Complete graph In an undirected graph with n nodes, the number of edges <=n*(n-1)/2.If=is satisfied then it is called a complete undirect graph
12.1 Definition and terminologies 2.Complete graph In an undirected graph with n nodes, the number of edges <=n*(n-1)/2. If “=“ is satisfied, then it is called a complete undirect graph. V2 V4 V3 V1

12.1 Definition and terminologies In a directed graph with n nodes, the number of edges <=n (n-1).If=is satisfied, then it is called a complete directed graph
12.1 Definition and terminologies In a directed graph with n nodes, the number of edges <=n*(n-1). If “=“ is satisfied, then it is called a complete directed graph

12.1 Definition and terminologies 3.degree d, of vertex 1, TD(v) is the number of edges incident on vertex i In a directed grap h in-degree of vertex i is the number of edges incident to 1, ID(v) out-degree of vertex i is the number of edges from the 1, OD(v)
12.1 Definition and terminologies 3.degree di of vertex i, TD(v): is the number of edges incident on vertex i. In a directed graph : • in-degree of vertex i is the number of edges incident to i, ID(v). • out-degree of vertex i is the number of edges from the i, OD(v)

12. 1 Definition and terminologies TD(V=ID(V+OD(V) v3ID(v2)=1 OD(v2 =2 TD(v2)=3 Generally if there are n vertices and e edges in a graph, the en e=(XTD(vi))/2
12.1 Definition and terminologies • TD(v)=ID(v)+OD(v) Generally,if there are n vertices and e edges in a graph, then e=(TD(vi ))/2 v1 v2 v3 ID(v2 )=1 OD(v2 )=2 TD(v2 )=3 i=1 n
按次数下载不扣除下载券;
注册用户24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
- 《数据结构的算法在C++中的应用》(英文版)Chapter 11 Search Trees.ppt
- 《数据结构的算法在C++中的应用》(英文版)Chapter 9 Priority Queues.ppt
- 《数据结构的算法在C++中的应用》(英文版)Chapter 8 Binary and other trees.ppt
- 《数据结构的算法在C++中的应用》(英文版)Chapter 7 Hashing.ppt
- 《数据结构的算法在C++中的应用》(英文版)Chapter 6 Queue.ppt
- 《数据结构的算法在C++中的应用》(英文版)Chapter 5 Stack.ppt
- 《数据结构的算法在C++中的应用》(英文版)Chapter 4 Arrays and Matrix.ppt
- 《数据结构的算法在C++中的应用》(英文版)Chapter 3 Linear List.ppt
- 《数据结构的算法在C++中的应用》(英文版)Chapter 2 Program performance.ppt
- 《数据结构的算法在C++中的应用》(英文版)Chapter 1 preface.ppt
- 《数据结构的算法在C++中的应用》(英文版)Textbook.ppt
- 《Access数据库应用教程》教学资源(PPT课件讲稿)第9章 宏.ppt
- 《Access数据库应用教程》教学资源(PPT课件讲稿)第8章 数据访问页.ppt
- 《Access数据库应用教程》教学资源(PPT课件讲稿)第7章 建立Access报表.ppt
- 《Access数据库应用教程》教学资源(PPT课件讲稿)第6章 Access窗体的操作.ppt
- 《Access数据库应用教程》教学资源(PPT课件讲稿)第5章 查询的创建及应用.ppt
- 《Access数据库应用教程》教学资源(PPT课件讲稿)第4章 建构Access数据库表.ppt
- 《Access数据库应用教程》教学资源(PPT课件讲稿)第3章 创建Access数据库.ppt
- 《Access数据库应用教程》教学资源(PPT课件讲稿)第2章 Access 2002应用基础.ppt
- 《Access数据库应用教程》教学资源(PPT课件讲稿)第1章 数据库原理及基本概念.ppt
- 四川电力职业技术学院:《ASP网络程序设计》目录.ppt
- 四川电力职业技术学院:《ASP网络程序设计》第五章 数据库基础知识.ppt
- 四川电力职业技术学院:《ASP网络程序设计》第二章 ASP初步.ppt
- 四川电力职业技术学院:《ASP网络程序设计》第一章 网络程序设计概述.ppt
- 四川电力职业技术学院:《ASP网络程序设计》第三章 ASP脚本语 VBScript.ppt
- 四川电力职业技术学院:《ASP网络程序设计》第四章 ASP常用内部对象.ppt
- 四川电力职业技术学院:《ASP网络程序设计》第六章 ASP数据库编程.ppt
- 四川电力职业技术学院:《ASP网络程序设计》第八章 使用第三方组件.ppt
- 四川电力职业技术学院:《ASP网络程序设计》第七章 文件存取组件及其它组.ppt
- 四川电力职业技术学院:《ASP网络程序设计》第一章 网络程序设计概述.ppt
- 《ASP动态网页设计》电子教案.doc
- 《ASP动态网页设计》教学大纲.doc
- 《ASP动态网页设计》教学进度表.doc
- 《ASP动态网页设计》进度计划.doc
- 《ASP动态网页设计》课程设计指导书.doc
- 《ASP动态网页设计》课程综合习题集.doc
- 《ASP动态网页设计》实验指导书.doc
- 《动态网页制作》第一章 动态网页概论.ppt
- 《动态网页制作》第三章 表格与表单(组件)目录2.ppt
- 《动态网页制作》第五章 常用对象与组件.ppt