计算机问题求解(PPT讲稿)图的计算机表示以及遍历

计算机问题求解-论题3-6 图的计算机表示以及遍历 2018年10月25日
计算机问题求解 – 论题3-6 -图的计算机表示以及遍历 2018年10月25日

12345 3-4Z210111 2345 301010 401101 问题1 你能否根据这两组图解释计算机 中量主要的图表示方式 3000011 4|010000 5000100 00001

问题2 我们讨论表示方法是否合 适主要根据什么? 你能否结合上述两种方式 给以说明? 关键操作的效率ⅴs.存储需求
关键操作的效率 vs. 存储需求

公 图中与应周关期 侗恳有么?他们网求示 方法的逝有么影腐?

问题49 图的搜蒙是什么意恩? 为什么它是用图模型解 决题的基本操作? 图搜索经常被称为“遍历"( traversal)
图搜索经常被称为“遍历”(traversal)

广度优先 Given a graphG=(,E)and a distinguished source vertex s, breadth-first search systematiclly explores the edges of G to discover every vertex that is reachable from s, It computes the distance(smallest number of edges) from s to each reachable vertex. It also produces a"breadth-first tree" with root s that contains all reachable vertices. For any vertex v reachable from s, the simple path on both directed and undirected graphs 两关键动H0W?
广度优先 两组关键的动词 How?

广度优先 G6定是树址i t reachable from s. It computes the distance (sm number of edges) from s in the breadth-first tree from s to v corresponds to a"shortest path"from s to u 定最短吗?
广度优先 一定是棵树 吗? 一定最短吗? 显然?

问题5 图楼索时用什么办法来跟 踪拽索的进度? 白=》灰=》黑
白=》灰=》黑

BES(G, S) I for each vertex uE G V-s 234 u color= WHITE 5 s color= gray 问题6 8Q=6 队列的使用,起到了什么作用? 9 ENQUEUE(.)链表 10lile≠ u= dEqueue(Q) 实现了系统地探索”,达成了 12 for each v∈GAdd “发现每一个” if v, color== WHITE v color= grAY 16 ENQUEUE(Q, v) 18 u color= BlACK
链表

BES(G, S) I for each vertex uE G V-s 234 u color= WHITE U. NIL 5 s color= gray 问题7: 7 SI= NIL 8Q=0 T,起到了什么作用? 9 ENQUEuE(Q 10lile≠ I1 W= DEQUEUE(Q 除了s节点的前驱是m外,每个 12 for each v∈GAdd if v, color== WHITE 节点,有且仅有一个“前驱节点” v color= grAY 任意节点v,沿其wm,必定找到 16 条从s到v的路径Pat ENQUEUE(Q, v) 18 u color= BlACK
按次数下载不扣除下载券;
注册用户24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
- 系统软件与软件安全(PPT讲稿)构造安全、高效的系统软件.pptx
- 中国科学技术大学:《计算机体系结构》课程教学资源(PPT课件讲稿)第3章 流水线技术.ppt
- 合肥学院:《数据库原理与应用》课程教学资源(PPT课件)第4章 数据库的创建与管理.ppt
- 四川大学:《数据库技术》课程教学资源(PPT课件讲稿)第9章 数据库系统开发工具VB.ppt
- 上海交通大学:IT项目管理(PPT讲稿)讲座6 软件项目工作量估算.ppt
- 《操作系统》课程PPT教学课件(英文)内存管理 Memory Management.ppt
- 湖南生物机电职业技术学院:《电子商务概论》课程教学资源(PPT课件)第八章 电子商务安全.ppt
- 电子科技大学:《计算机操作系统》课程教学资源(PPT课件讲稿)第四章 设备管理 Device Management and Disk Scheduling.ppt
- 南京大学:模型检测(PPT课件讲稿)Model Checking.pptx
- 《计算机网络》课程教学大纲 Computer Networks.pdf
- 中国科学技术大学:《Linux操作系统分析》课程教学资源(PPT课件讲稿)Linux的进程(1/3).ppt
- 合肥工业大学:《数据库系统概论》课程教学资源(PPT课件)第四章 并发控制.ppt
- Phase Change Memory Aware Data Management and Application.pptx
- 《高级程序语言》课程教学资源(PPT课件讲稿)第09章 平台无关语言.ppt
- 并行算法 Parallel Algorithms(PPT讲稿)现状与展望 status and prospects.ppt
- 上海交通大学:Network Coding for Wireless Networks(PPT讲稿).pptx
- 西安电子科技大学:《现代密码学》课程教学资源(PPT课件讲稿)第七章 密码协议.pptx
- 北京大学:网络搜索引擎原理(PPT讲稿)Web Graph & Link Analysis.ppt
- 《数据结构 Data Structure》课程教学资源(PPT课件讲稿)第二章 线性表.ppt
- 大庆职业学院:《计算机网络技术基础》课程电子教案(PPT教学课件)第3章 网络体系结构与协议.ppt
- 《The C++ Programming Language》课程教学资源(PPT课件讲稿)Lecture 03 Standard Template Library & Generic Programming.ppt
- Scanning Electron Microscopy(SEM).ppt
- 《C语言程序设计》课程教学资源(PPT课件)第6章数据类型和表达式.ppt
- 面向对象编程 Object-Oriented Programming(PPT课件讲稿)继承 Inheritance.ppt
- 《单片机应用技术》课程PPT教学课件(C语言版)第7章 定时器/计数器.ppt
- 清华大学:《计算机导论》课程电子教案(PPT教学课件)第8章 计算机领域的典型问题.ppt
- 《网站设计与建设 Website design and developments》课程教学资源(PPT课件讲稿)第三部分 网站设计技术 第10章 HTML基础.ppt
- 山东大学:《面向对象程序设计》课程教学资源(PPT课件讲稿)第四章 编写对象接口.ppt
- 中国科学技术大学:《机器学习》课程PPT教学课件(讲稿)第二章 模型评估与选择.pptx
- 《C语言程序设计》课程电子教案(PPT课件)第三章 控制语句.ppt
- 安徽理工大学:《计算机网络》课程PPT教学课件(第4版)第1章 概述(编著:谢希仁).ppt
- 中国人民大学:《数据库系统概论 An Introduction to Database System》课程教学资源(PPT课件讲稿)第九章 关系查询处理和查询优化.ppt
- 《人工智能技术导论》课程教学资源(PPT课件讲稿)第8章 不确定性知识的表示与推理.ppt
- 福建工程学院:《C#程序设计》课程教学资源(实验指导书).doc
- 《计算机网络技术》课程教学资源(PPT课件讲稿)Chapter 03 物理层.ppt
- 沈阳理工大学:《网站建设与维护》课程教学资源(PPT课件讲稿)第四章 动态网页基础.ppt
- 东南大学:《操作系统概念 Operating System Concepts》课程教学资源(PPT课件讲稿)13 文件系统 I/O Systems.ppt
- 《C语言程序设计》课程教学资源(PPT课件讲稿)第6章 函数.ppt
- 《高级语言程序设计》课程教学资源(试卷习题)试题一(无答案).doc
- 中国科学技术大学:《密码学导论》课程教学资源(PPT课件讲稿)第4章 数论基础(主讲:李卫海).pptx