计算机数学基础⑤(Graphs)
文章目录
- Graph Theory(图论)
- Graphs: Useful Concepts(图:有用的概念)
- Walks and connectedness(走法和连通性)
Graph Theory(图论)
Definition 5.1. Intuitively, a graph is just a way of modeling a collection of objects and the connections between them.
直观地说,图只是为对象集合及其之间的连接建模的一种方式。
Definition 5.2. A simple undirected loopless graph G consists of
two things: a collection V of vertices, and another collection E of
edges, which we think of as distinct unordered pairs of distinct elements
in V . We think of the vertices in a graph as the objects we’re studying, and the edges in a graph as a way to describe how those objects are
connected.
To describe an edge connecting a pair of vertices a, b in our graph G, we
use our set language from earlier and write this as {a, b}. We say that
a and b are the endpoints of the edge {a, b} when this happens.
一个简单的无向无环图G由两部分组成:顶点的集合V,和边的集合E,我们认为它们是V中不同元素的不同的无序对。我们把图中的顶点看作是我们正在研究的对象,而图中的边则是描述这些对象之间如何连接的一种方式。
为了描述图G中连接顶点对a, b的一条边,我们使用之前的集合语言,将其写成{a, b}。我们说a和b是边{a, b}的端点。
例如:
根据以上的定义我们可以画出几种符合要求的图:
Definition 5.3. A simple graph with loops is just like a simple graph
G, except we no longer require the pairs of elements in E to be distinct;
that is, we can have things like {v, v} ∈ E.
A multigraph is a simple graph, except we allow ourselves to repeat
edges in E multiple times; i.e. we could have three distinct edges e1, e2, e3 ∈
E with each equal to the same pair {x, y}.
A directed graph is a simple graph, except we think of our edges as
ordered pairs: i.e. we have things like x → y ∈ E, not {x, y}.
You can mix-and-match these definitions: you can have a directed graph
with loops, or a multigraph with loops but not directions, or pretty much
anything else you’d want!
带有循环的简单图
就像简单图G一样,只是我们不再要求E中的元素对是不同的;也就是说,我们可以有{v, v}∈E。
多重图
是一个简单的图,除了我们允许我们自己多次重复E中的边;也就是说,我们有三条不同的边e1 e2 e3∈E和每一个都等于相同的一对{x, y}。
一个有向图
是一个简单的图,除了我们认为我们的边是有序对:例如,我们有x→y∈E,而不是{x, y}。
您可以混合使用这些定义:您可以使用带有循环的有向图,或者使用带有循环但没有方向的多重图,或者几乎任何您想要的东西!
我们可以看几个示例图片:
接下来列举出一些较为特殊的图:
Definition 5.4. The complete graph on n vertices Kn is defined for
any positive integer n as follows: take n vertices. Now, take every possible pair of distinct vertices, and connect them with an edge! We draw
several examples at right.
In this sense, a complete graph is a graph in which we have as manyedges as is possible for a graph on n vertices.
对于任意正整数n, n个顶点上的完整图Kn定义如下:取n个顶点。现在,取每一对可能的不同顶点,并将它们与一条边连接起来!
从这个意义上说,一个完整图
是这样一个图,它有尽可能多的边对于一个有n个顶点的图来说。
例如:
Definition 5.6. The cycle graph on n vertices Cn is defined for any
integer n ≥ 3 as follows: take n vertices, and label them 1, 2, . . . n. Now,draw edges {1, 2},{2, 3}, . . . until you get to the last edge {n− 1, n}; thenconnect this up into a closed cycle by drawing {n, 1} as an edge as well.
对于任意n≥3的整数,定义n个顶点Cn上的循环图如下:取n个顶点,标为1,2,…n.现在,绘制边{1,2},{2,3},…直到最后一条边{n−1,n};然后将其连接成一个闭合循环,将{n, 1}也画成一条边。
例如:
Graphs: Useful Concepts(图:有用的概念)
Definition 5.7. Take a graph G. We say that two vertices a, b in G are
adjacent if the edge {a, b} is in G. We say that a and b are neighbors
if they are adjacent.
以一个图G为例,如果边{a, b}在G中,我们说G中的两个顶点a, b是相邻的,我们可以说a,b两个顶点是neighbors
Definition 5.8. Take a graph G, and a vertex v in G. We say that the
degree of v, written deg(v), is the number of edges that contain v as an
endpoint.
以一个图G和G中的一个顶点v为例,我们说v的度,写成deg(v),是包含v作为端点的边的数量。
例如:对于如下的图:
顶点a的度为0,顶点b的度为1,顶点d和e的度为2,顶点c的度为3。
Claim 5.1. (The “degree-sum formula,” or “handshaking theorem.”)
Take any graph G. Then, the sum of the degrees of all of the vertices in
G is always two times the number of edges in G.
取任意图G,所有顶点的度数之和总是的边数的两倍。
Claim 5.2. You cannot have a graph on seven vertices in which the
degree of every vertex is 3.
你不可能有一个有七个顶点的图每个顶点的度数都是3。
Walks and connectedness(走法和连通性)
Definition 5.9. In a graph G, we define a walk of length n as any
sequence of n edges from G of the form
{v0, v1}, {v1, v2}, {v2, v3}, . . . , {vn−1, vn}.
We say that this walk starts at v0 and ends at vn.
We say that a walk is a circuit or closed walk if it starts where it ends;
i.e. if v0 = vn.
We say that a walk is a path if it does not repeat any vertices, with the
following exception: if the first and last vertex of path are the same and
all of the others are distinct, we allow this to be a path as well. In this
last case, we call our walk a cycle.
We often describe a walk by just listing its vertices in order: i.e.
v0 → v1 → v2 → . . . → vn−1 → vn
is a valid way to describe a walk.
在图G中,我们定义了一个长度为n的步长,即从图G出发的任意n条边的序列
对于:
{v0, v1}, {v1, v2}, {v2, v3}, . . . , {vn−1, vn}.
这段路程从v0开始,到vn结束。
如果步行从终点开始,我们就称其为环行或封闭的步行;即如果v0 = vn。
我们说一次行走是一条路径,如果它没有重复任何顶点,除了以下的例外:如果路径的第一个和最后一个顶点是相同的,并且所有其他的顶点是不同的,我们允许它也是一条路径。在最后一种情况下,我们称之为步行周期。
我们经常通过按顺序列出它的顶点来描述一次行走。
v0→v1→v2→…→vn−1→vn是描述步行的有效方法。
注意,行走可以重复边和顶点!
Definition 5.10. Given a graph G, we say that G is connected if for
every pair of vertices a, b in G, there is a path from a to b in G.
给定一个图G,如果对于G中的每一对顶点a, b,在G中有一条从a到b的路径,我们说G是连通的,
计算机数学基础⑤(Graphs)相关推荐
- 2017西南计算机数学基础,[0838]《计算机数学基础》西南大学 2017 秋学期 计算机专业 作业题目及参考答案资料讲解.docx...
[0838]<计算机数学基础>西南大学 2017 秋学期 计算机专业 作业题目及参考答案 [0838]<计算机数学基础>西南大学 2017 秋学期 计算机专业 作业题目及参考答 ...
- 计算机数学基础 课程定位图形,本科《计算机数学基础》(上)课程教学设计方案.doc...
第 PAGE 5 页 共 NUMPAGES 6页 本科<计算机数学基础>(上)课程教学设计方案 责任教师 孙继荣 一.课程设计方案的内容与要求 (一)课程说明 1.课程性质 计算机数学基础 ...
- 计算机数学基础模拟试题,计算机数学基础》模拟考试试题.doc
PAGE / NUMPAGES <计算机数学基础(2)>模拟试题(1) 一.单项选择题(每小题3分,共15分) 1. 数值x*的近似值x=0.1215×10-2,若满足( ),则称x有4位 ...
- 计算机数学基础模拟试题,计算机数学基础(A)模拟试题.doc
计算机数学基础(A)模拟试题 计算机数学基础(A)模拟试题 一.单项选择题(每小题3分,共21分) 1.设,则( ). A. B. C. D. 2.若是由及围成,则=( ) A. B. C. D. 3 ...
- 计算机数学基础 刘树利,计算机数学基础课件教学课件作者刘树利11课件.ppt
计算机数学基础课件教学课件作者刘树利11课件.ppt 第十一章 线性方程组 第十一章 线性方程组 后页 首页 前页 后页 首页 前页 基本要求.重点难点 11.1 线性方程组的消元法 11.2 线性方 ...
- 计算机数学基础 视频讲解,计算机数学基础课件
<计算机数学基础课件>由会员分享,可在线阅读,更多相关<计算机数学基础课件(37页珍藏版)>请在人人文库网上搜索. 1.计算机科学的数学基础,第一章:语言与正规语言,1.1 符 ...
- 计算机数学基础试题,计算机数学基础(A)综合练习
计算机数学基础(A)综合练习 1填空题1)点A(3,1,-2)与点B(4,3,-4)之间的距离是__2)函数z=1/lnxy的定义域是__.(3)设z=x2y,则4)二元函数z=x3-4x3y2 (本 ...
- 计算机数学基础知识点归纳,《计算机数学基础》(一)――离散数学期末复习参考...
<计算机数学基础>(一)――离散数学期末复习参考 一.关于期末考试 1.本学期的结业考核由形成性考核和期末考核构成.形成性考核由平时作业成绩构成,占结业考核成绩的20%, 期末考核成绩占结 ...
- 计算机数学基础知识点归纳,计算机数学基础--详细介绍
计算机数学基础 第1章 函数.极限与连续 11 函数的概念 111 基本初等函数 112 复合函数 113 初等函数 12 函数的极限 121 当x→∞ ...
- 计算机c语言与数学知识的联系,计算机数学基础知识
计算机数学基础是计算机专业必修的数学基础知识.以下是小编整理的关于计算机数学基础知识,希望大家认真阅读! 1.计算机数学基础 是计算机专业必修的数学基础知识.针对计算机专业的特点,加强了Mathema ...
最新文章
- 20150920 DNS服务
- 远程管理客户端--SCCM
- 会计电算化的过程 实质上是用计算机,会计电算化的过程,实质上是用计算机()的过程。A.单一地替代手工会计操作B.单一地替代对会计进行分...
- 结对编程 - 马尔科夫链
- mysql高可用架构介绍_MYSQL高可用架构
- 想旷工被单位开除领取失业金,可是单位不但不开除还给交社保,该怎么办?
- ASP.NET调用WCF服务
- ACDSee10 正版授权 许可证
- Android Studio 下载ndk
- 每个人都应该了解的金融小知识 -- 利率计算
- [模板] 洛谷 P1137 旅行计划 (拓扑排序)
- 农历阳历转换 java_Java编程实例:Java版农历和阳历转换源码
- 查看SQL语句执行耗费的时间
- 节省处理HPC数据泛滥开支的可用工具
- 计算机操作系统(第四版)第二章(进程的描述与控制)知识点整理
- 软件测试的行业现状,我们的未来在哪里?
- 项目经理为什么要做时间管理?
- java random实现机选双色球
- 生成一个6行12列的矩阵,其元素值是小于或等于20的随机数。
- MLX90640 红外热成像仪测温传感器 手机 APP 软件 RedEye 连接详细